fix(HostNetworkInterfaceSaturated): display network interface name in description (#239)

`$labels.interface` doesn't exist, use `$labels.device` instead
This commit is contained in:
Benjamin Dos Santos 2021-08-16 16:29:12 +02:00 committed by GitHub
parent c2b8178304
commit 7304d40539
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ groups:
severity: warning
for: 2m
- name: Host Network Interface Saturated
description: 'The network interface "{{ $labels.interface }}" on "{{ $labels.instance }}" is getting overloaded.'
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'
severity: warning
for: 1m