diff --git a/pkg/ambient/ambient.go b/pkg/ambient/ambient.go index 878b839..fc22fe4 100644 --- a/pkg/ambient/ambient.go +++ b/pkg/ambient/ambient.go @@ -97,6 +97,9 @@ func (aw *AmbientWeather) handleProviderRequest( // Update metrics if aw.metrics == nil { + if aw.config.MetricPrefix != "" { + weather.MetricPrefix = aw.config.MetricPrefix + } aw.metrics = weather.MustInitMetrics(aw.appCtx) } aw.metrics.Update(update)