Categorygithub.com/tumani1/go-metrics-prometheus
modulepackage
0.0.0-20191004092832-e0241123c00a
Repository: https://github.com/tumani1/go-metrics-prometheus.git
Documentation: pkg.go.dev

# README

go-metrics-prometheus Build Status

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"
	import "github.com/prometheus/client_golang/prometheus"

    	prometheusRegistry := prometheus.NewRegistry()
        metricsRegistry := metrics.NewRegistry()
        pClient := NewPrometheusProvider(metricsRegistry, "test", "subsys", prometheusRegistry, 1*time.Second)
        go pClient.UpdatePrometheusMetrics()

# Functions

No description provided by the author
NewPrometheusProvider returns a Provider that produces Prometheus metrics.

# Structs

for collecting prometheus.constHistogram objects.
No description provided by the author