Persisting silences in alertmanager

61 views
Skip to first unread message

Rūsty Thcross

unread,
Aug 23, 2021, 9:21:25 AM8/23/21
to Prometheus Users
I am trying to compose alertmanager with persistent storage, but having some problems.

Screenshot 2021-08-23 at 16.17.50.png

This setup works for every other service I am running.
The weird part is that I really can't find where the actual data is stored.
There are no files created (as far as I can find). Even if I leave the default settings there are no database files created when setting silences. But during the life of the container the settings are clearly somewhere as I can add them/browse in web panel. 

Rūsty Thcross

unread,
Aug 24, 2021, 4:08:17 AM8/24/21
to Prometheus Users
So the weird thing I discovered is that data is written only after I restart the machine. As if database is written only on exiting alertmanager. Untill then it is only held in memory.

Bjoern Rabenstein

unread,
Aug 30, 2021, 4:41:23 PM8/30/21
to Rūsty Thcross, Prometheus Users
On 24.08.21 01:08, Rūsty Thcross wrote:
> So the weird thing I discovered is that data is written only after I
> restart the machine. As if database is written only on exiting
> alertmanager. Untill then it is only held in memory.

Silences should be written out to the data directory every 15 minutes
(and during a clean shutdown).

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages