Removing zombie rule groups metrics

24 views
Skip to first unread message

Peter S

unread,
Aug 5, 2020, 4:59:26 PM8/5/20
to Prometheus Users
Hi,

After we remove some rule groups, their metrics still show up, like 
prometheus_rule_group_last_duration_seconds
(exported by prometheus server's built-in exporter at the metrics endpoint)

They won't vanish until we restart the prometheus processes (managed by systemd).

I wonder if there is way to clean up these zombie rule groups metrics without having to restart the prometheus server. 

Thanks,

Peter

Julien Pivotto

unread,
Aug 5, 2020, 5:03:55 PM8/5/20
to Peter S, Prometheus Users
Hello,

This is a bug that was fixed in Prometheus 2.17.0.

Which version are you using?

>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/34fd019f-2834-48ee-aa07-13c80b4a6aedo%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

Peter S

unread,
Aug 7, 2020, 4:29:10 PM8/7/20
to Prometheus Users
We're using 2.11.1

Thanks. We're excited about upgrade.

On Wednesday, August 5, 2020 at 5:03:55 PM UTC-4, Julien Pivotto wrote:
On 05 Aug 13:59, Peter S wrote:
> Hi,
>
> After we remove some rule groups, their metrics still show up, like
> prometheus_rule_group_last_duration_seconds
> (exported by prometheus server's built-in exporter at the metrics endpoint)
>
> They won't vanish until we restart the prometheus processes (managed by
> systemd).
>
> I wonder if there is way to clean up these zombie rule groups metrics
> without having to restart the prometheus server.
>
> Thanks,
>
> Peter

Hello,

This is a bug that was fixed in Prometheus 2.17.0.

Which version are you using?

>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages