@biorate/prometheus
v1.76.3
Published
Prometheus DI module
Downloads
112
Readme
Prometheus
Allows you to create prometheus metrics easily using dependency injection mechanism
Example:
import { counter, Counter } from '@biorate/prometheus';
class Test {
@counter({
name: 'test_counter',
help: 'Test counter',
labelNames: ['label1', 'label2'],
})
protected counter: Counter;
public metric() {
this.counter.labels({ label1: 1, label2: 2 }).inc();
}
}
const test = new Test();
test.metric();
Learn
- Documentation can be found here - docs.
Release History
See the CHANGELOG
License
Copyright (c) 2021-present Leonid Levkin (llevkin)