Use this it will definitely work

route:
  group_by: [Alertname]
  # Send all notifications to me.
  receiver: email-me

receivers:
- name: email-me
  email_configs:
  - to: ReciverMailId
    from: Sendermailid
    smarthost: smtp.gmail.com:587
    auth_username: "[email protected]"
    auth_identity: "[email protected]"
    auth_password: "pwd"


On Thursday, June 11, 2020 at 5:19:27 PM UTC+7, Frederic Arnould wrote:
>
> Hello, 
>
> Somebody could check my configuration ?
> My postfix works correctly, but not mails in my prometheus container.
>
> [root@admin-toto ~]# docker exec -it monitor_prometheus sh
>
> /prometheus # cat alertmanager.yml 
> global:
>   resolve_timeout: 5m
>   smtp_smarthost: 10.10.10.10
>   smtp_from: [email protected] <javascript:>
>   smtp_require_tls: false
> route:
>   group_by: ['alertname']
>   group_wait: 10s
>   group_interval: 10s
>   repeat_interval: 4h
>   receiver: 'team-admin'
> receivers:
> - name: 'team-admin'
>   email_configs:
>   - to: '[email protected] <javascript:>' 
> #inhibit_rules:
> #  - source_match:
> #      severity: 'critical'
> #    target_match:
> #      severity: 'warning'
> #    equal: ['alertname', 'job', 'instance']
>
>
> Thanks by advance 
> Regards
>

-- 
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/5e3ce383-2fcb-4dab-b95e-928edddfb6b5o%40googlegroups.com.

Reply via email to