Expired silences are not deleted after --data.retention has passed

51 views
Skip to first unread message

Tmac Han

unread,
Jan 17, 2020, 1:11:50 AM1/17/20
to Prometheus Users
Hi,
  Start alertmanager by alertmanager --config.file=./alertmanager.yml --storage.path=./data --data.retention=1h`, But after 1 hour the expired silenced still showd in web UI, so how to delete the expired soon?
I did a lot tests and generated many invalid expired silences and make the web UI so slow. I want to delete the expired silences soon.

Looking forward to your reply.Thanks a lot!

BTW, I use go run main.go --config.file=./alertmanager.yml --storage.path=./data --data.retention=1h in test env, and open localhost:9093 to test when the expired silences disappear, but didn't achieve my expected effect.

Tmac Han

unread,
Jan 19, 2020, 3:44:19 AM1/19/20
to Prometheus Users
Any one can help me? Thank you very much!

在 2020年1月17日星期五 UTC+8下午2:11:50,Tmac Han写道:
Message has been deleted

jayson wang

unread,
Feb 28, 2020, 2:59:41 AM2/28/20
to Prometheus Users

I had the same problem


在 2020年1月19日星期日 UTC+8下午4:44:19,Tmac Han写道:

Simon Pasquier

unread,
Mar 10, 2020, 5:57:31 AM3/10/20
to jayson wang, Prometheus Users
Expired silences are deleted every 15 minutes. Try checking the
alertmanager_silences_gc_duration_seconds_count metric.
> --
> 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/65c289c4-5d00-4133-b254-9c94461cc559%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages