@libp2p/prometheus-metrics
Version:
Collect libp2p metrics for scraping by Prometheus or Graphana
11 lines • 525 B
TypeScript
import type { PrometheusCalculatedHistogramOptions } from './index.js';
import type { HistogramGroup, StopTimer } from '@libp2p/interface';
export declare class PrometheusHistogramGroup implements HistogramGroup {
private readonly histogram;
private readonly label;
constructor(name: string, opts: PrometheusCalculatedHistogramOptions<Record<string, number>>);
observe(values: Record<string, number>): void;
reset(): void;
timer(key: string): StopTimer;
}
//# sourceMappingURL=histogram-group.d.ts.map