You can do it like that : curl -XDELETE http://alertmanager/api/v2/silence/<SilenceId>
Le jeu. 9 juil. 2020 à 07:27, Velmurugan C <[email protected]> a écrit : > Dear All, > > I have created the silence in my alertmanager through CURL command with > below details > > curl http://<alertManager>:9093/api/v1/silences -d '{ > "matchers": [ > { > "name": "<NAME>", > "value": "<VALUE>", > "isRegex": true > } > ], > "startsAt": "'"$startTime"'", > "endsAt": "'"$endTime"'", > "createdBy": "api", > "comment": "Silence", > "status": { > "state": "expired" > } > > }' > > > Any idea about how we can expire an active alert? > > Note: I expect way to do this *without* *amtool* > > > Thanks...... > > -- > 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/8ed9f7b9-4eef-4ef0-a789-95addc3c26c0o%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/8ed9f7b9-4eef-4ef0-a789-95addc3c26c0o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAOJizGeGtO3-_7bHHj71JPNyQXPXr9zF_e%2BLYsfsf2rKi3LZXg%40mail.gmail.com.

