@mollitia/prometheus
Version:
Prometheus Mollitia Addon
20 lines (18 loc) • 663 B
TypeScript
import { PrometheusLabels, PrometheusMetric, PrometheusMetricLabelValues, PrometheusMetricType } from './index.js';
interface PrometheusCounterOptions {
description: string;
labels?: PrometheusLabels;
}
export declare class PrometheusCounter implements PrometheusMetric {
key: string;
type: PrometheusMetricType;
labels: PrometheusLabels;
values: PrometheusMetricLabelValues;
description?: string;
constructor(key: string, options?: PrometheusCounterOptions);
inc(value: number | undefined, circuitName: string): number;
reset(circuitName: string): number;
scrapHelp(): string;
scrapValues(): string;
}
export {};