From ba0b901e967680aafc17380dbd8b2bc37559ac54 Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 2 Feb 2020 19:05:40 -0800 Subject: [PATCH] add log entry when disabled --- integrations/promunifi/collector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integrations/promunifi/collector.go b/integrations/promunifi/collector.go index e4a239df..304e56f8 100644 --- a/integrations/promunifi/collector.go +++ b/integrations/promunifi/collector.go @@ -96,6 +96,7 @@ func init() { // Should be run in a Go routine. Returns nil if not configured. func (u *promUnifi) Run(c poller.Collect) error { if u.Config == nil || u.Disable { + c.Logf("Prometheus config missing (or disabled), Prometheus HTTP listener disabled!") return nil }