Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign updelete_series does not remove from typeahead #3488
Comments
This comment has been minimized.
This comment has been minimized.
|
Deletion works via tombstones. We write a tombstone saying all data for the series has been deleted from This is not actually semantically wrong and I am not sure we need to support this request. Any strong issue with the series appearing the typeahead? |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve The main reason is that we had consul statsd metrics emitting hostnames inside the metric names, which blew up the number of metrics by tens of thousands. This makes the typeahead really slow so I was trying to delete the bad metrics after we fixed the names. When you say they'll be removed after the relevant blocks are compacted away, if the blocks are already at the maximum size, does that mean they'll never get removed? (until they go past the retention period?) |
This comment has been minimized.
This comment has been minimized.
|
Yes, if they are already large enough, you need to wait for them to go past the retention period. I might write a tool to process blocks with tombstones soon. |
This comment has been minimized.
This comment has been minimized.
|
This sounds more like #2119 |
brian-brazil
closed this
Nov 17, 2017
This comment has been minimized.
This comment has been minimized.
|
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. |
grobie
reopened this
Nov 17, 2017
This comment has been minimized.
This comment has been minimized.
|
That doesn't work UX wise as the metric name is the first thing entered, and the console view (which is the default) doesn't have a time parameter. The series endpoint does already support a time range. The user's core complaint appears to be the slowdown caused by this situation, which is what #2119 covers. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I'd rather see all the metrics, even not active in the time-range. Sometimes, I would change the range to see where the metric existed. This issue is about slowness of the dropdown which lists metric names, I believe. Anyways, a tool which can process the blocks would be an acceptable stop-gap, I presume. Removing the series from the index would be an expensive operation where the block needs to be re-written. |
This comment has been minimized.
This comment has been minimized.
Take the 1h default from the graph view. Showing metrics older than that in the console view which won't show any results any way is the exact problem here. On increasing the time range in graph, the list can be reloaded.
We repeatedly have issues with that behavior during outages. Metrics which have existed weeks ago but were renamed make it hard to see actual metrics available and investigating the situation.
If you want to see any metrics which have ever existed in the time range, you'll still be able to do so as the list will be reloaded after you increased the time range. |
This comment has been minimized.
This comment has been minimized.
This is also an issue that we have since we standardized everything to lowercase, but both the old and new metric names show up and we have to explain to people why the metric names are duplicated and which one to pick |
brian-brazil
added
component/ui
kind/enhancement
priority/P3
labels
Dec 1, 2017
This comment has been minimized.
This comment has been minimized.
matthias-kloeckner
commented
Jan 9, 2018
|
We have the same problem. Deleting the metrics in 1.x prometheus almost instantly removed them in typeahead results. With 2.0 they are still available. Retention period is set to 365 days and we want to keep it that way. Some exporters have a weird behaviour and create metrics on the fly - e.g. jenkins exporter is adding 2 new series for every agent. As we are creating new docker agents for every build, we ended up with 10k unneeded metrics before we found this unwanted behaviour. To fix this we added a drop action in the config. So I think this is a valid and not uncommon use case to completely remove metrics including the typeahead results in the GUI. And as @gouthamve suggested a CLI tool would be fine for that. |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve Is this resolved in #3523 ? Does cleaning up the tombstones remove the metrics from the typeahead too? |
This comment has been minimized.
This comment has been minimized.
matthias-kloeckner
commented
Feb 1, 2018
|
@zemek updating to prometheus 2.1 and cleaning the tombstones via API worked for us. thanks! |
This comment has been minimized.
This comment has been minimized.
|
@matthias-kloeckner yes it will work if none of the tombstones for those data were in in-mem block (which was in your case). But if it's there in in-mem block, then it still wont work. Currently cleaning tombstones doesn't clean it from in-mem block (another similar issue #3728) @zemek I am on it, this will be fixed soon. |
zemek commentedNov 17, 2017
We had a lot of bad metric names we wanted to delete so it wouldn't show up in the typeahead on
/graphWhen deleting a metric using
It deletes the timeseries data, but doesn't remove it from the typeahead results.