Debian Codegraph @

README.md

raw symbols SCIP
1 ## go-metrics-prometheus
2
3 This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of exporting the metrics is still your responsibility.
4
5 Usage:
6
7 ```go
8 import(
9 "github.com/deathowl/go-metrics-prometheus"
10 "github.com/prometheus/client_golang/prometheus"
11 )
12
13 prometheusRegistry := prometheus.NewRegistry()
14 metricsRegistry := metrics.NewRegistry()
15 pClient := NewPrometheusProvider(metricsRegistry, "test", "subsys", prometheusRegistry, time.Second)
16 go pClient.UpdatePrometheusMetrics()
17 ```
18