diff --git a/collector/rapl_linux.go b/collector/rapl_linux.go index 5ed343bbe8..4fc566ccdb 100644 --- a/collector/rapl_linux.go +++ b/collector/rapl_linux.go @@ -80,7 +80,7 @@ func (c *raplCollector) Update(ch chan<- prometheus.Metric) error { index := strconv.Itoa(rz.Index) descriptor := prometheus.NewDesc( - prometheus.BuildFQName(namespace, "rapl", rz.Name+"_joules_total"), + prometheus.BuildFQName(namespace, "rapl", SanitizeMetricName(rz.Name+"_joules_total")), "Current RAPL "+rz.Name+" value in joules", []string{"index", "path"}, nil, )