Skip to content
Snippets Groups Projects
Commit 5c77da61 authored by Oliver's avatar Oliver
Browse files

on CONFIG error log Debugf() only

parent 80071da4
No related branches found
No related tags found
No related merge requests found
Loading
@@ -582,14 +582,14 @@ func (e *Exporter) scrapeRedisHost(scrapes chan<- scrapeResult, addr string, idx
Loading
@@ -582,14 +582,14 @@ func (e *Exporter) scrapeRedisHost(scrapes chan<- scrapeResult, addr string, idx
if config, err := redis.Strings(c.Do("CONFIG", "GET", "*")); err == nil { if config, err := redis.Strings(c.Do("CONFIG", "GET", "*")); err == nil {
extractConfigMetrics(config, addr, e.redis.Aliases[idx], scrapes) extractConfigMetrics(config, addr, e.redis.Aliases[idx], scrapes)
} else { } else {
log.Errorf("redis err: %s", err) log.Debugf("Redis CONFIG err: %s", err)
} }
   
info, err := redis.String(c.Do("INFO", "ALL")) info, err := redis.String(c.Do("INFO", "ALL"))
if err == nil { if err == nil {
e.extractInfoMetrics(info, addr, e.redis.Aliases[idx], scrapes) e.extractInfoMetrics(info, addr, e.redis.Aliases[idx], scrapes)
} else { } else {
log.Errorf("redis err: %s", err) log.Errorf("Redis INFO err: %s", err)
return err return err
} }
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment