diff --git a/metrics/prometheus/collector.go b/metrics/prometheus/collector.go index 22f2d2f02a701..23934b212c230 100644 --- a/metrics/prometheus/collector.go +++ b/metrics/prometheus/collector.go @@ -116,5 +116,5 @@ func (c *collector) writeSummaryPercentile(name, p string, value interface{}) { } func mutateKey(key string) string { - return strings.Replace(key, "/", "_", -1) + return strings.ReplaceAll(key, "/", "_") }