Skip to content

Commit

Permalink
do not show __name__ in labe name results
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedius committed Mar 15, 2024
1 parent b5d8616 commit a338baf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prometheus/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func (q *Querier) LabelNames(matchers ...*labels.Matcher) ([]string, storage.War
}
w.And(and)
}
w.And("value != '__name__'")
fromDate := time.Now().AddDate(0, 0, -q.config.ClickHouse.TaggedAutocompleDays).UTC()
w.Andf("Date >= '%s'", fromDate.Format("2006-01-02"))

Expand Down

0 comments on commit a338baf

Please sign in to comment.