Amtool - silence instance

728 views
Skip to first unread message

Pete Leese

unread,
Mar 6, 2018, 5:13:24 PM3/6/18
to Prometheus Users
Hi

I’m struggling to find any examples or documentation regarding using the amtool to silence alerts based on instance name.

Can anyone provide a working example command line to achieve this?

Would be good to know how to expire the silence too using amtool

Cheers.

Pete

Simon Pasquier

unread,
Mar 7, 2018, 3:59:30 AM3/7/18
to Pete Leese, Prometheus Users
On Tue, Mar 6, 2018 at 11:13 PM, 'Pete Leese' via Prometheus Users <promethe...@googlegroups.com> wrote:
Hi

I’m struggling to find any examples or documentation regarding using the amtool to silence alerts based on instance name.

Can anyone provide a working example command line to achieve this?

amtool silence add --alertmanager.url=http://localhost:9093 -c test instance=foo
 

Would be good to know how to expire the silence too using amtool

amtool --alertmanager.url=http://localhost:9093 silence expire 896130bb-6569-4d3a-b43f-1ae012290308
 

Cheers.

Pete

--
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/7ac0a2a1-467c-4bbb-9a6e-db123ddbf760%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pete Leese

unread,
Mar 7, 2018, 11:16:06 AM3/7/18
to Prometheus Users
Spot on mate cheers :)

On Wednesday, 7 March 2018 08:59:30 UTC, Simon Pasquier wrote:
On Tue, Mar 6, 2018 at 11:13 PM, 'Pete Leese' via Prometheus Users <promethe...@googlegroups.com> wrote:
Hi

I’m struggling to find any examples or documentation regarding using the amtool to silence alerts based on instance name.

Can anyone provide a working example command line to achieve this?

amtool silence add --alertmanager.url=http://localhost:9093 -c test instance=foo
 

Would be good to know how to expire the silence too using amtool

amtool --alertmanager.url=http://localhost:9093 silence expire 896130bb-6569-4d3a-b43f-1ae012290308
 

Cheers.

Pete

--
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.
Reply all
Reply to author
Forward
0 new messages