Skip to content

Commit

Permalink
Merge pull request #245 from digitalocean/ceph_exporter-fail-if-no-co…
Browse files Browse the repository at this point in the history
…nnect

Fail to start if any rados connection fails on startup
  • Loading branch information
baergj authored Nov 23, 2023
2 parents e858f2e + a257136 commit 545836d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 545836d

Please sign in to comment.