UNPKG

@libp2p/prometheus-metrics

Version:

Collect libp2p metrics for scraping by Prometheus or Graphana

10 lines 424 B
import type { PrometheusCalculatedHistogramOptions } from './index.js'; import type { StopTimer, Histogram } from '@libp2p/interface'; export declare class PrometheusHistogram implements Histogram { private readonly histogram; constructor(name: string, opts: PrometheusCalculatedHistogramOptions); observe(value: number): void; reset(): void; timer(): StopTimer; } //# sourceMappingURL=histogram.d.ts.map