Versions in this module Expand all Collapse all v0 v0.0.5 Feb 29, 2024 v0.0.4 Feb 28, 2024 Changes in this version + const Endpoint + const ProfileEndpoint + const ProfilingCmdEndpoint + const ProfilingIndexEndpoint + const ProfilingSymbolEndpoint + const ProfilingTraceEndpoint + func Counter(name string) (counter prometheus.Counter, exist bool) + func CounterAdd(name string, value float64) + func CounterInc(name string) + func CounterVec(name string) (counterVec *prometheus.CounterVec, exist bool) + func CounterVecAdd(name string, label string, value float64) + func CounterVecInc(name string, label string) + func Gauge(name string) (gauge prometheus.Gauge, exist bool) + func GaugeDec(name string) + func GaugeInc(name string) + func GaugeSet(name string, value float64) + func Handler() http.Handler + func Histogram(name string) (histogram prometheus.Histogram, exist bool) + func HistogramObserve(name string, value float64) + func HistogramVec(name string) (histgramVec *prometheus.HistogramVec, exist bool) + func HistogramVecObserve(name string, label string, value float64) + func Init() + func RegisterCounterVecs(opts ...CounterVecOpts) + func RegisterCounters(opts ...prometheus.CounterOpts) + func RegisterGauges(opts ...prometheus.GaugeOpts) + func RegisterHistogramVecs(opts ...HistogramVecOpts) + func RegisterHistograms(opts ...prometheus.HistogramOpts) + func RegisterSummaries(opts ...prometheus.SummaryOpts) + func Summary(name string) (summary prometheus.Summary, exist bool) + func UnregisterCounterVecs(names ...string) + func UnregisterCounters(names ...string) + func UnregisterGauges(names ...string) + func UnregisterHistogram(names ...string) + func UnregisterHistogramVecs(names ...string) + func UnregisterSummaries(names ...string) + type Config struct + Enabled bool + Host string + Port int + ProfilingEnabled bool + ProfilingHost string + ProfilingPort int + type CounterVecOpts struct + Labels []string + type HistogramVecOpts struct + Labels []string