Skip to content

Commit 818b337

Browse files
Cortex: Remove sanitize call (#215)
Remove sanitize call for Prometheus reserved labels like __name__.
1 parent 97f04f7 commit 818b337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/metric/cortex/cortex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func createLabelSet(record metric.Record, extras ...string) []*prompb.Label {
312312
log.Printf("Label %s is overwritten. Check if Prometheus reserved labels are used.\n", extras[i])
313313
}
314314
labelMap[extras[i]] = prompb.Label{
315-
Name: sanitize(extras[i]),
315+
Name: extras[i],
316316
Value: extras[i+1],
317317
}
318318
}

0 commit comments

Comments
 (0)