import { gauge, Gauge } from '@biorate/prometheus';class Test { @gauge({ name: 'test_gauge', help: 'Test gauge', labelNames: ['label1', 'label2'], }) protected gauge: Gauge; public metric() { this.gauge.labels({ label1: 1, label2: 2 }).set(10); }}const test = new Test();test.metric(); Copy
import { gauge, Gauge } from '@biorate/prometheus';class Test { @gauge({ name: 'test_gauge', help: 'Test gauge', labelNames: ['label1', 'label2'], }) protected gauge: Gauge; public metric() { this.gauge.labels({ label1: 1, label2: 2 }).set(10); }}const test = new Test();test.metric();
Generated using TypeDoc
Example