/
View dependency graph
Depends on
- dh-golang (dh-golang)
- golang-defaults (golang-any)
- golang-github-prometheus-client-golang (golang-github-prometheus-client-golang-dev)
- golang-github-rcrowley-go-metrics (golang-github-rcrowley-go-metrics-dev)
- golang-testify (golang-github-stretchr-testify-dev)
- debhelper-compat
Used by
README (full)
go-metrics-prometheus
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.
Usage:
import(
"github.com/deathowl/go-metrics-prometheus"
"github.com/prometheus/client_golang/prometheus"
)
prometheusRegistry := prometheus.NewRegistry()
metricsRegistry := metrics.NewRegistry()
pClient := NewPrometheusProvider(metricsRegistry, "test", "subsys", prometheusRegistry, time.Second)
go pClient.UpdatePrometheusMetrics()
| dir | .github/ |
| dir | debian/ |
| file | LICENSE |
| file | Makefile |
| file | README.md |
| file | go.mod |
| file | go.sum |
| file | prometheusmetrics.go |
| file | prometheusmetrics_test.go |