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