@promster/metrics
Version:
Metrics utilities used by all other server integrations
27 lines (26 loc) • 960 B
TypeScript
import type { TDefaultedPromsterOptions, THttpMetrics } from '@promster/types';
declare const createHttpMetrics: {
(options: TDefaultedPromsterOptions): THttpMetrics;
defaultOptions: {
getLabelValues: () => {};
labels: never[];
metricPrefix: string;
metricTypes: string[];
metricNames: {
httpRequestsTotal: string[];
httpRequestDurationPerPercentileInSeconds: string[];
httpRequestDurationInSeconds: string[];
httpRequestContentLengthInBytes: string[];
httpResponseContentLengthInBytes: string[];
};
metricBuckets: {
httpRequestContentLengthInBytes: number[];
httpRequestDurationInSeconds: number[];
};
metricPercentiles: {
httpRequestDurationPerPercentileInSeconds: number[];
httpResponseContentLengthInBytes: number[];
};
};
};
export { createHttpMetrics };