Skip to content

Commit

Permalink
chore: refactor masterCkquorumMsq
Browse files Browse the repository at this point in the history
  • Loading branch information
om-goto committed Aug 25, 2022
1 parent beece9d commit 9391f0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exporter/sentinels.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ func (e *Exporter) extractSentinelMetrics(ch chan<- prometheus.Metric, c redis.C
}
masterAddr := masterIp + ":" + masterPort

masterCkquorum, err := redis.String(doRedisCmd(c, "SENTINEL", "CKQUORUM", masterName))
log.Debugf("Sentinel ckquorum status for master %s: %s %s", masterName, masterCkquorum, err)
masterCkquorumMsg, err := redis.String(doRedisCmd(c, "SENTINEL", "CKQUORUM", masterName))
log.Debugf("Sentinel ckquorum status for master %s: %s %s", masterName, masterCkquorumMsg, err)
masterCkquorumStatus := 1
masterCkquorumMsg := masterCkquorum
if err != nil {
masterCkquorumStatus = 0
masterCkquorumMsg = err.Error()
Expand Down

0 comments on commit 9391f0f

Please sign in to comment.