diff --git a/metric-collector.go b/metric-collector.go index bd6faeb..70a7607 100644 --- a/metric-collector.go +++ b/metric-collector.go @@ -243,9 +243,11 @@ func main() { err = col.Init([]byte(conf)) if err != nil { log.Print("SKIP ", col.Name(), " (", err.Error(), ")") - } else { - log.Print("Start ", col.Name()) - tmp = append(tmp, c) + } else if !col.Initialized() { + log.Print("SKIP ", col.Name(), " (Not initialized)") + } else { + log.Print("Start ", col.Name()) + tmp = append(tmp, c) } } config.Collectors = tmp