Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + func ErrorRate(prefix string) *prometheus.CounterVec + func ExposeMetrics(component string, pushGateway config.PushGateway, port int) + func ExposeMetricsWithRegistry(component string, pushGateway config.PushGateway, port int, ...) + func HttpRequestDuration(prefix string, min, max float64) *prometheus.HistogramVec + func HttpResponseSize(prefix string, min, max int) *prometheus.HistogramVec + func RecordError(label string, errorRate *prometheus.CounterVec) + func TraceHandler(simplifier simplifypath.Simplifier, ...) func(h http.Handler) http.Handler + type CreateServer func(http.Handler) interrupts.ListenAndServer + type Metrics struct + ErrorRate *prometheus.CounterVec + HTTPRequestDuration *prometheus.HistogramVec + HTTPResponseSize *prometheus.HistogramVec + func NewMetrics(namespace string) *Metrics