UNPKG

@gati-framework/observability

Version:

Observability stack for Gati framework - Prometheus, Grafana, Loki, and Tracing

12 lines (11 loc) 584 B
import type { IMetricsProvider } from '@gati-framework/contracts'; import { PrometheusMetrics } from '../prometheus/metrics.js'; export declare class PrometheusAdapter implements IMetricsProvider { private metrics; constructor(); incrementCounter(name: string, labels?: Record<string, string>, value?: number): void; setGauge(name: string, value: number, labels?: Record<string, string>): void; recordHistogram(name: string, value: number, labels?: Record<string, string>): void; getMetrics(): Promise<string>; getPrometheusMetrics(): PrometheusMetrics; }