prevent +inf max value

This commit is contained in:
Samuel Berthe 2021-08-19 23:45:58 +02:00
parent b9222993ac
commit a225087b06
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -262,7 +262,7 @@ groups:
for: 2m
- name: Host Network Interface Saturated
description: 'The network interface "{{ $labels.device }}" on "{{ $labels.instance }}" is getting overloaded.'
query: '(rate(node_network_receive_bytes_total{device!~"^tap.*"}[1m]) + rate(node_network_transmit_bytes_total{device!~"^tap.*"}[1m])) / node_network_speed_bytes{device!~"^tap.*"} > 0.8'
query: '(rate(node_network_receive_bytes_total{device!~"^tap.*"}[1m]) + rate(node_network_transmit_bytes_total{device!~"^tap.*"}[1m])) / node_network_speed_bytes{device!~"^tap.*"} > 0.8 < 10000' # < to 10Gb to prevent +inf when max speed is unknown
severity: warning
for: 1m
- name: Host conntrack limit