Debian Codegraph @

/

debian golang-github-nbrownus-go-metrics-prometheus 0.0~git20210712.974a626-6debian golang-github-nbrownus-go-metrics-prometheus-dev debiangoinimakemakefilemarkdownshellyaml 18 files · 50 symbols
View dependency graph

Depends on

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