diff --git a/cmd/collector/main.go b/cmd/collector/main.go index 976ede79374..66e19cd4e12 100644 --- a/cmd/collector/main.go +++ b/cmd/collector/main.go @@ -96,7 +96,9 @@ func main() { HealthCheck: svc.HC(), }) collectorOpts := new(app.CollectorOptions).InitFromViper(v) - c.Start(collectorOpts) + if err := c.Start(collectorOpts); err != nil { + logger.Fatal("Failed to start collector", zap.Error(err)) + } svc.RunAndThen(func() { if err := c.Close(); err != nil {