Skip to content

Commit

Permalink
metrics fix: edit mutate key to replace - with _ (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhopp authored Dec 1, 2022
1 parent d3873f4 commit b6b274e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metrics/prometheus/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,7 @@ func (c *collector) writeSummaryPercentile(name, p string, value interface{}) {
}

func mutateKey(key string) string {
return strings.Replace(key, "/", "_", -1)
key = strings.Replace(key, "/", "_", -1)
key = strings.Replace(key, "-", "_", -1)
return key
}

0 comments on commit b6b274e

Please sign in to comment.