prometheus: delete_series does not remove from typeahead

We had a lot of bad metric names we wanted to delete so it wouldn’t show up in the typeahead on /graph

When deleting a metric using

curl -XPOST -g 'http://localhost/api/v2/admin/tsdb/delete_series' -d '{"matchers": [{"name": "__name__", "value": "metric_name"}]}'

It deletes the timeseries data, but doesn’t remove it from the typeahead results.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 16 (14 by maintainers)

Most upvoted comments

This is unrelated to rendering query results @brian-brazil. We suggest metric names which have existed at any time in /graph. The label values API doesn’t support range parameters at this moment and always queries from absolute minimum to absolute maximum. It’d make sense to only query for the metrics available in the selected time range.