On 22 Nov 08:30, Nenad Rakonjac wrote:
> Hi everyone, 
> 
> Is it possible to use two receivers for one alert? I want to implement 
> something like this:
> 
> - match:
> type: alert_alert
> receiver: receiverOne
> 
> - match:
> type: alert_alert
> receiver: receiverTwo
> 
> receivers:
> 
> - name:  receiverOne
>   email_configs:
>   - to: 'email...@gmail.com'
>     from: 'email...@gmail.com'
> 
> - name:  receiverTwo
>   email_configs:
>   - to: 'emailth...@gmail.com'
>     from: 'emailf...@gmail.com'
> 


you have two solutions:

1. use continue: true

 - match:
     type: alert_alert
   receiver: receiverOne
   continue: true
 - match:
     type: alert_alert
   receiver: receiverTwo

2. combine the receivers

- name:  receiverOne
  email_configs:
  - to: 'email...@gmail.com'
    from: 'email...@gmail.com'
  - to: 'emailth...@gmail.com'
    from: 'emailf...@gmail.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/08996072-a8c0-4ab8-b0fe-0bb89c88e7ben%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/Y3z8xrUEQ9rJe6dI%40nixos.

Reply via email to