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:
Joshua Baergen 2023-11-23 09:50:40 -07:00 committed by GitHub
commit 545836d5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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(