We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7acbec8 commit 71755ffCopy full SHA for 71755ff
exporter/exporter.go
@@ -727,11 +727,11 @@ func (e *Exporter) scrapeRedisHost(ch chan<- prometheus.Metric) error {
727
e.extractLatencyMetrics(ch, infoAll, c)
728
}
729
730
- // skip these metrics for master?
+ // skip these metrics for master if SkipCheckKeysForRoleMaster is set
731
// (can help with reducing work load on the master node)
732
log.Infof("checkKeys metric collection for role: %s flag: %#v", role, e.options.SkipCheckKeysForRoleMaster)
733
debug.PrintStack()
734
- if role != InstanceRoleSlave && !e.options.SkipCheckKeysForRoleMaster {
+ if role == InstanceRoleSlave || !e.options.SkipCheckKeysForRoleMaster {
735
if err := e.extractCheckKeyMetrics(ch, c); err != nil {
736
log.Errorf("extractCheckKeyMetrics() err: %s", err)
737
0 commit comments