Skip to content

Commit

Permalink
correctly escape __name__
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedius committed Mar 12, 2024
1 parent c3e39c4 commit b5d8616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (q *Querier) Close() error {
func (q *Querier) LabelValues(label string, matchers ...*labels.Matcher) ([]string, storage.Warnings, error) {
terms := []finder.TaggedTerm{
{
Key: label,
Key: strings.ReplaceAll(label, `_`, `\_`),
Op: finder.TaggedTermEq,
Value: "*",
HasWildcard: true,
Expand Down

0 comments on commit b5d8616

Please sign in to comment.