Sorry about the background color in the code section.. Repost the code.


global:
  resolve_timeout: 15m
receivers:
- name: prometheus-snow
  webhook_configs:
  - url: "https://servicenow.com";
    http_config:
      basic_auth:
        username: "xxx"
        password: "xxx"
route:
  group_by: ['...']
  group_interval: 15m
  group_wait: 15m
  repeat_interval: 1h
  receiver: prometheus-snow
  routes:
  - receiver: "prometheus-snow"
    match:
      inc: servicenow




> On Jul 14, 2020, at 10:22 AM, Zhang Zhao <[email protected]> wrote:
> 
> I added a filter in the alertmanager config so that only alerts that contain 
> "inc:servicenow" label are able to be fed to ServiceNow. However it didn't 
> work as expected. I still saw events that do not contain this label getting 
> fed to ServiceNow. Below was my config. Please advice where was wrong. 
> Appreciate it.
> 
> 
> 
> global:
>   resolve_timeout: 15m
> receivers:
> - name: prometheus-snow
>   webhook_configs:
>   - url: "https://servicenow.com";
>     http_config:
>       basic_auth:
>         username: "xxx"
>         password: "xxx"
> route:
>   group_by: ['...']
>   group_interval: 15m
>   group_wait: 15m
>   repeat_interval: 1h
>   receiver: prometheus-snow
>   routes:
>   - receiver: "prometheus-snow"
>     match:
>       inc: servicenow
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/7eaaca80-ddf6-4637-8217-99404763c2eeo%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/prometheus-users/7eaaca80-ddf6-4637-8217-99404763c2eeo%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/BCDFE5C3-CE5B-45D1-AD29-133DFA342C86%40gmail.com.

Reply via email to