UNPKG

@libp2p/prometheus-metrics

Version:

Collect libp2p metrics for scraping by Prometheus or Graphana

12 lines 475 B
import type { PrometheusCalculatedMetricOptions } from './index.js'; import type { Metric, StopTimer } from '@libp2p/interface'; export declare class PrometheusMetric implements Metric { private readonly gauge; constructor(name: string, opts: PrometheusCalculatedMetricOptions); update(value: number): void; increment(value?: number): void; decrement(value?: number): void; reset(): void; timer(): StopTimer; } //# sourceMappingURL=metric.d.ts.map