Alertmanager stores its state in disk files, by default in subdirectory 
"data" relative to the working directory where alertmanager was launched.

>From alertmanager --help:

      --storage.path="data/"     Base path for data storage.
      --data.retention=120h      How long to keep data for.

If you don't preserve that disk file, then it will lose its state.  If this 
is in kubernetes then you'll need to use a PVC to attach some sort of 
persistent storage volume.

On Tuesday, 8 February 2022 at 08:28:24 UTC Dovid Friedman wrote:

> I have Alertmanager running in K8S and every time I restart the pod all 
> my silences disappear  

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/cbdae13b-9706-449a-8364-55cad2b18efdn%40googlegroups.com.

Reply via email to