Skip to content

Commit

Permalink
fix metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Jul 12, 2016
1 parent 4c8772a commit d6ec9cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exporter/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type scrapeResult struct {

var (
renameMap = map[string]string{
"loading": "persistence_loading",
"loading": "repl_loading",
}

inclMap = map[string]bool{
Expand Down
2 changes: 1 addition & 1 deletion exporter/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestExporterMetrics(t *testing.T) {
"db_avg_ttl_seconds",
"instantaneous_ops_per_sec",
"used_cpu_sys",
"persistence_loading", // testing renameMap
"repl_loading", // testing renameMap
}

for _, k := range wantKeys {
Expand Down

0 comments on commit d6ec9cf

Please sign in to comment.