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