Hi, 
I'm new in Prometheus. Now I try configure alerts and have problem.
Have 2 rules: alert.rules1.yml and alert.rules2.yml

*alert.rules1.yml*
*groups:*
*  - name: iDrac*
*    rules:*

*######### ICMP ##########*
*    - alert: host_is_not_available_via_icmp*
*      expr: probe_success{job="idrac-icmp"} == 0*
*      for: 1m*
*      labels:*
*        severity: critical*
*      annotations:*
*        description: "Host {{ $labels.instance }} is not available via 
icmp-protocol for more than 3 minutes."*
*        summary: "Host {{ $labels.instance }} is down"*

*    - alert: host_response_time_is_high_via_icmp*
*      expr: sum by (instance) (probe_icmp_duration_seconds) > 0.3*
*      for: 10s*
*      labels:*
*        severity: warning*
*      annotations:*
*        description: "Host {{ $labels.instance }} response time via 
icmp-protocol is very high ( >300ms ) for more than 1 minutes."*
*        summary: "Host {{ $labels.instance }} response time is {{ humanize 
$value}}s"*

*alert.rules2.yml*
*groups:*
*  - name: Fortigates*
*    rules:*

*######### ICMP ##########*
*    - alert: host_is_not_available_via_icmp*
*      expr: probe_success{job="blackbox-icmp-general"} == 0*
*      for: 3m*
*      labels:*
*        severity: critical*
*      annotations:*
*        description: "Host {{ $labels.instance }} is not available via 
icmp-protocol for more than 3 minutes."*
*        summary: "Host {{ $labels.instance }} is down"*

*    - alert: host_response_time_is_high_via_icmp*
*      expr: sum by (instance) (probe_icmp_duration_seconds) > 0.3*
*      for: 1m*
*      labels:*
*        severity: warning*
*      annotations:*
*        description: "Host {{ $labels.instance }} response time via 
icmp-protocol is very high(>300ms) for more than 1 minutes."*
*        summary: "Host {{ $labels.instance }} response time is {{ humanize 
$value}}s"*

When I change  *(probe_icmp_duration_seconds) > 0.3 *in the *alert.rules1.yml, 
*I got alerts from *alert.rules2.yml *instances*, *and don't recive for 
instances from *alert.rules1.yml.*
What I do wrong?

-- 
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/3a767daa-a08f-42a4-b3e1-dbd15e509f49n%40googlegroups.com.

Reply via email to