diff --git a/collector.go b/collector.go index c4aa256..1e8dc1b 100644 --- a/collector.go +++ b/collector.go @@ -49,6 +49,8 @@ func (p *pingCollector) UpdateConfig(cfg *config.Config) { p.mutex.Lock() defer p.mutex.Unlock() p.cfg.Targets = cfg.Targets + p.customLabels = newCustomLabelSet(cfg.Targets) + p.createDesc() } func (p *pingCollector) Describe(ch chan<- *prometheus.Desc) {