Versions in this module Expand all Collapse all v8 v8.0.3 Jan 27, 2022 v8.0.2 Jan 27, 2022 Changes in this version + const FormatDefault + const FormatPrometheus + const FormatText + const MetricKeyBeginBlocker + const MetricKeyEndBlocker + const MetricLabelNameModule + func IncrCounter(val float32, keys ...string) + func IncrCounterWithLabels(keys []string, val float32, labels []metrics.Label) + func MeasureSince(start time.Time, keys ...string) + func ModuleMeasureSince(module string, start time.Time, keys ...string) + func ModuleSetGauge(module string, val float32, keys ...string) + func NewLabel(name, value string) metrics.Label + func SetGauge(val float32, keys ...string) + func SetGaugeWithLabels(keys []string, val float32, labels []metrics.Label) + type Config struct + EnableHostname bool + EnableHostnameLabel bool + EnableServiceLabel bool + Enabled bool + GlobalLabels [][]string + PrometheusRetentionTime int64 + ServiceName string + type GatherResponse struct + ContentType string + Metrics []byte + type Metrics struct + func New(cfg Config) (*Metrics, error) + func (m *Metrics) Gather(format string) (GatherResponse, error)