UNPKG

@libp2p/prometheus-metrics

Version:

Collect libp2p metrics for scraping by Prometheus or Graphana

10 lines 475 B
import type { PrometheusCalculatedMetricOptions } from './index.js'; import type { CounterGroup } from '@libp2p/interface'; export declare class PrometheusCounterGroup implements CounterGroup { private readonly counter; private readonly label; constructor(name: string, opts: PrometheusCalculatedMetricOptions<Record<string, number>>); increment(values: Record<string, number | unknown>): void; reset(): void; } //# sourceMappingURL=counter-group.d.ts.map