Re: [prometheus-users] How do I set the maintenance cycle

2020-12-15 Thread Laurent Dumont
If you are coming from a Zabbix world, there is no equivalent maintenance
mechanic in Prometheus. Most of the service assurance/service mapping is
not part of the Prometheus stack.

Silences are only active between X and Y and will expire after Y. They
cannot repeat so you'll need some kind of external mechanism to create and
delete the silences.

On Mon, Dec 14, 2020 at 10:39 PM zhengwei y  wrote:

> Does this mean That I have to maintain a timer task to create and delete
> the corresponding silence rules every day ?
>
> 在2020年12月14日星期一 UTC+8 下午6:29:38 写道:
>
>> On 2020-12-14 10:25, zhengwei y wrote:
>> > How do I set the maintenance cycle ? such as silence all alarms from
>> > 0:00 to 1:00 am every day?
>>
>> You can create silences in advance & there is an API to create them
>> automaticlly.
>>
>> --
>> Stuart Clark
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/7199b7bc-d681-4603-a01d-f20daad85ba6n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAOAKi8yWh-%3D3xKz4QZE7Cwich6QeE5Z8z%3D5ig%3DRGGM9nGGJ5nA%40mail.gmail.com.


Re: [prometheus-users] How do I set the maintenance cycle

2020-12-15 Thread Julien Pivotto
On 14 Dec 19:39, zhengwei y wrote:
> Does this mean That I have to maintain a timer task to create and delete 
> the corresponding silence rules every day ? 


For the moment yes, but we expect to have that kind of features
available directly in alertmanager soon (time windows).


> 
> 在2020年12月14日星期一 UTC+8 下午6:29:38 写道:
> 
> > On 2020-12-14 10:25, zhengwei y wrote:
> > > How do I set the maintenance cycle ? such as silence all alarms from
> > > 0:00 to 1:00 am every day?
> >
> > You can create silences in advance & there is an API to create them 
> > automaticlly.
> >
> > -- 
> > Stuart Clark
> >
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/7199b7bc-d681-4603-a01d-f20daad85ba6n%40googlegroups.com.


-- 
Julien Pivotto
@roidelapluie

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20201215120450.GA313385%40oxygen.


Re: [prometheus-users] How do I set the maintenance cycle

2020-12-15 Thread Christian Hoffmann

On 2020-12-15 04:39, zhengwei y wrote:
Does this mean That I have to maintain a timer task to create and delete 
the corresponding silence rules every day ?


That would be one possibility. This could also be automated using cron 
or something.


We chose a different approach and solve that on the alerting side using 
specific rules and inhibition:

https://groups.google.com/g/prometheus-users/c/EfgshKvBua0/m/8GCUpT5XBwAJ

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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/58ed4f87-3ed9-4112-ca6c-a705a5bb1112%40hoffmann-christian.info.


Re: [prometheus-users] How do I set the maintenance cycle

2020-12-14 Thread zhengwei y
Does this mean That I have to maintain a timer task to create and delete 
the corresponding silence rules every day ? 

在2020年12月14日星期一 UTC+8 下午6:29:38 写道:

> On 2020-12-14 10:25, zhengwei y wrote:
> > How do I set the maintenance cycle ? such as silence all alarms from
> > 0:00 to 1:00 am every day?
>
> You can create silences in advance & there is an API to create them 
> automaticlly.
>
> -- 
> Stuart Clark
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/7199b7bc-d681-4603-a01d-f20daad85ba6n%40googlegroups.com.


Re: [prometheus-users] How do I set the maintenance cycle

2020-12-14 Thread Stuart Clark

On 2020-12-14 10:25, zhengwei y wrote:

How do I set the maintenance cycle ?  such as silence all alarms from
0:00 to 1:00 am every day?


You can create silences in advance & there is an API to create them 
automaticlly.


--
Stuart Clark

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/814272d0d300d91d311906791ab1eb42%40Jahingo.com.


[prometheus-users] How do I set the maintenance cycle

2020-12-14 Thread zhengwei y
How do I set the maintenance cycle ?  such as silence all alarms from 0:00 
to 1:00 am every day?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/4c72702a-3ffd-496e-921f-b8f68f8836b0n%40googlegroups.com.