You need to find the ID of the silence in the UI or from the API, then send a DELETE request: curl -XDELETE http://<alertManager>:9093/api/v2/silence/$ID
On Thursday, 9 July 2020 at 06:48:54 UTC+1 [email protected] wrote: > 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": "active" > } > > }' > > > Could some one help me to expire an active silence through API as like > above ? > > 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/9f1702a9-634e-45fd-a1ce-0390179e9527n%40googlegroups.com.

