diff --git a/exporter/prometheusexporter/collector.go b/exporter/prometheusexporter/collector.go index 312df1ff524..cbf6152b9d5 100644 --- a/exporter/prometheusexporter/collector.go +++ b/exporter/prometheusexporter/collector.go @@ -87,7 +87,7 @@ func (c *collector) getMetricMetadata(metric pdata.Metric, labels pdata.StringMa values := make([]string, 0, labels.Len()) labels.ForEach(func(k string, v string) { - keys = append(keys, k) + keys = append(keys, sanitize(k)) values = append(values, v) })