Hi, On 3/20/20 10:02 PM, mohd wrote: > I am running prometheus setup on docker. > I have set some alerts rules and we are getting alerts - email and slack. > > 1. Want to set some conditions in Alertmanager conf so that unwanted > alerts should get silence - duplicate alerts etc. I could configure > silences in the web interface of the Alertmanager, but I want to do it > from Alertmanager conf. Silences are supposed to be a temporary thing. They can only be managed using the API, the web UI or API clients such as amtool.
Maybe you are looking inhibitions which can be used to stop alerts in case some other alert is already active? You could also look into adjusting your alerts on the Prometheus-side to fire only if you really want them to. > 2. We want to store those alerts in database(elastic search, influxdb, > prometheus, postgres etc) so that to keep a record of alerts. When it > was created and what action was taken on it, who worked on it etc. And > dashboard of alerts details using database query at Grafana. Alertmanager does not have such features itself, but it has a generic webhook integration. This can be used to feed data to logging or ticketing systems. Lots of community-driven integrations already exist: https://prometheus.io/docs/operating/integrations/#alertmanager-webhook-receiver Kind regards, Christian -- 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/cd43b62d-3716-1b5f-0ea2-c9c2293f82d6%40hoffmann-christian.info.

