Skip to content

Commit

Permalink
Sanitize prometheus labels
Browse files Browse the repository at this point in the history
This fixes #2700
  • Loading branch information
seanhoughtonatvi committed Mar 16, 2021
1 parent cadd84d commit c6a8e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/prometheusexporter/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit c6a8e8b

Please sign in to comment.