Hi, Sunil!
Sure! Catch:
global:
resolve_timeout: 5m
# The smarthost and SMTP sender used for mail notifications.
smtp_smarthost: 'smtphost:25'
smtp_from: '[email protected]'
smtp_auth_username: '[email protected]'
smtp_auth_password: ''
smtp_require_tls: false
# The directory from which notification templates are read.
templates:
- 'C:\AlertManager\templates\email.tmpl'
# The root route on which each incoming alert enters.
route:
group_by: ['...'] #if you want to separate all the emails. You can't
combine ['...'] with any other label. only this one.
group_by: ['job'] # if you want to group all alerts by job in one email.
This label you can combine with smth else. Example: group_by: ['job',
'instance', 'error_code']
group_by: ['job_name'] # if you want to gather all over the alerts in one
email. This label you can combine with smth else.
group_wait: 1m
group_interval: 5m
repeat_interval: 15m
receiver: EMails
receivers:
- name: 'EMails'
email_configs:
- to: '[email protected]'
from: '[email protected]'
send_resolved: false
пятница, 5 июня 2020 г. в 11:12:41 UTC+3, [email protected]:
> Hi Anya,
>
> Can you share the snippet, I am also facing the same issue . Thanks
>
> On Fri, Jun 5, 2020 at 4:02 PM [email protected] <[email protected]>
> wrote:
>
>> Thank you a lot, Christian!
>> It's a kind of magic, your ['...']. I tried to comment it or stay empty
>> [] and it doesn't work. But ['...'] works perfectly!
>> Thanks all of you, dear colleagues!
>>
>> пятница, 5 июня 2020 г. в 10:51:51 UTC+3, Christian Hoffmann:
>>
>>> Hi,
>>>
>>> On 6/5/20 9:23 AM, [email protected] wrote:
>>> > Hi, Christian!
>>> > Thank you for your answer, but could you a little bit explain your
>>> > point? I don't understand it. I used 'group_by' in my config. If I
>>> > understood you correctly, you offered to comment the 'group_by' block,
>>> > don't you?
>>>
>>> You set group_by to ['job_name']. This tells alertmanager to batch all
>>> alerts with the same job_name into one group. This leads to the
>>> aggregated email you want to avoid.
>>>
>>> I suggest changing the value of group_by. Either add additional labels
>>> (e.g. alertname, instance as you see fit) or use the magic value ['...']
>>> to disable the grouping altogether (i.e. letting your 250 alerts become
>>> 250 single emails).
>>>
>>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/prometheus-users/045353da-d097-4d8c-b62d-54f47220196bn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/prometheus-users/045353da-d097-4d8c-b62d-54f47220196bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
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/283fcf32-b165-4e89-b27b-7a95fad7695en%40googlegroups.com.