Support metric prefix change
Some checks failed
Build and Publish / release (push) Failing after 40s
Some checks failed
Build and Publish / release (push) Failing after 40s
This commit is contained in:
parent
86653cf589
commit
c23177b62d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user