--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4fda1890-ae5c-41af-9cb4-7c24f5cbe8a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Use the same API call you doing to create an active alert, but pass the 'endsAt' field so pass it to 'resolved'.
On Mon, Oct 16, 2017 at 11:16 AM, <abhijit...@gmail.com> wrote:
We are trying to generate an alert from an external script by calling the alert manager API based on a certain condition. Based on another condition we would like to update the same alert's status to "resolved" using the same script.While we have been able to generate an alert we would need some help to update the alert's status.Could anyone point to some resources on this?
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
Use the same API call you doing to create an active alert, but pass the 'endsAt' field so pass it to 'resolved'.
On Mon, Oct 16, 2017 at 11:16 AM, <abhijit...@gmail.com> wrote:
We are trying to generate an alert from an external script by calling the alert manager API based on a certain condition. Based on another condition we would like to update the same alert's status to "resolved" using the same script.While we have been able to generate an alert we would need some help to update the alert's status.Could anyone point to some resources on this?
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d0c1ac89-b631-4377-811d-ba80fa8ec372%40googlegroups.com.
Hi,Thanks a lot for the solution.
As per your suggestion I had passed the startsAt and endsAt in rfc3339 format.
Also I had passed them as separate fields and not within labels.
This worked perfectly well. I could verify the alerts were removed using amtool.
But I can still see the alerts in the UI.
Are there any ways to get rid of them from the UI as well?
Thanks again for your solution.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/143649ac-1407-47a7-bb99-ddd65923120f%40googlegroups.com.