diff --git a/telemetry/metrics.go b/telemetry/metrics.go index ca9bf7890883..53235e012bc8 100644 --- a/telemetry/metrics.go +++ b/telemetry/metrics.go @@ -64,11 +64,13 @@ type Metrics struct { prometheusEnabled bool } +// GatherResponse is the response type of registered metrics type GatherResponse struct { Metrics []byte ContentType string } +// New creates a new instance of Metrics func New(cfg Config) (*Metrics, error) { if !cfg.Enabled { return nil, nil diff --git a/telemetry/wrapper.go b/telemetry/wrapper.go index 62f50eeacb93..24722a7d63cc 100644 --- a/telemetry/wrapper.go +++ b/telemetry/wrapper.go @@ -13,6 +13,7 @@ const ( MetricLabelNameModule = "module" ) +// NewLabel creates a new instance of Label with name and value func NewLabel(name, value string) metrics.Label { return metrics.Label{Name: name, Value: value} }