Merge pull request #245 from digitalocean/ceph_exporter-fail-if-no-connect
Fail to start if any rados connection fails on startup
This commit is contained in:
commit
545836d5da
3
main.go
3
main.go
|
@ -127,8 +127,7 @@ func main() {
|
|||
logger)
|
||||
|
||||
if err != nil {
|
||||
logger.WithError(err).WithField("cluster", cluster.ClusterLabel).Error("unable to create rados connection for cluster")
|
||||
continue
|
||||
logger.WithError(err).WithField("cluster", cluster.ClusterLabel).Fatal("unable to create rados connection for cluster")
|
||||
}
|
||||
|
||||
prometheus.MustRegister(ceph.NewExporter(
|
||||
|
|
Loading…
Reference in New Issue