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)
|
logger)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.WithError(err).WithField("cluster", cluster.ClusterLabel).Error("unable to create rados connection for cluster")
|
logger.WithError(err).WithField("cluster", cluster.ClusterLabel).Fatal("unable to create rados connection for cluster")
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.MustRegister(ceph.NewExporter(
|
prometheus.MustRegister(ceph.NewExporter(
|
||||||
|
|
Loading…
Reference in New Issue