OpenAPI docs here:
https://petstore.swagger.io/?url=https://raw.githubusercontent.com/prometheus/alertmanager/master/api/v2/openapi.yaml

On Friday, 10 September 2021 at 08:36:27 UTC+1 Brian Candler wrote:

> On Friday, 10 September 2021 at 02:59:12 UTC+1 Evelyn Pereira Souza wrote:
>
>> On 09.09.21 15:26, Brian Candler wrote: 
>> > But to answer your original question, you *can* match on year in 
>> > mute_time_intervals if you really want, and the documentation shows 
>> how: 
>> > https://prometheus.io/docs/alerting/latest/configuration/#time_interval 
>>
>> Hi Brian 
>>
>> please example YML. Thank you.
>>
>
> I already saw the YAML that you posted (with bad formatting, but I suspect 
> that's a problem with google groups).
>
> The link above describes the extra field that you need:
>
>   years:
>     [ - <year_range> ...]
>
> and it also says:
>
>
> *year_range: A numerical list of years. Ranges are accepted. For 
> example, ['2020:2022', '2030']. Inclusive on both ends.*
>
> What's unclear about that?  Or have you tried it, and found that it 
> doesn't work?
>
> I still think that Silences are really what you want.  If you want a 
> history of silences in git, then you can write a tool which syncs your 
> silences defined in git via the Alertmanager API.  Unfortunately the API is 
> not 
> properly documented 
> <https://github.com/prometheus/alertmanager/issues/511> but you could 
> look at the source of alertmanager, or other clients which manage silences 
> like karma <https://github.com/prymitive/karma>.
>
>

-- 
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/b7fccd8c-7d56-4ed7-959c-cfa1a56f29fan%40googlegroups.com.

Reply via email to