Skip to content

Commit

Permalink
Cortex: Remove sanitize call (#215)
Browse files Browse the repository at this point in the history
Remove sanitize call for Prometheus reserved labels like __name__.
  • Loading branch information
connorlindsey committed Aug 13, 2020
1 parent 97f04f7 commit 818b337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/metric/cortex/cortex.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func createLabelSet(record metric.Record, extras ...string) []*prompb.Label {
log.Printf("Label %s is overwritten. Check if Prometheus reserved labels are used.\n", extras[i])
}
labelMap[extras[i]] = prompb.Label{
Name: sanitize(extras[i]),
Name: extras[i],
Value: extras[i+1],
}
}
Expand Down

0 comments on commit 818b337

Please sign in to comment.