docs/node-mixin/alerts: use a rate for network alerts
{
alert: 'NodeNetworkReceiveErrs',
expr: |||
- increase(node_network_receive_errs_total[2m]) > 10
+ rate(node_network_receive_errs_total[2m]) / rate(node_network_receive_packets_total[2m]) > 0.01
||| % $._config,
'for': '1h',
labels: {
{
alert: 'NodeNetworkTransmitErrs',
expr: |||
- increase(node_network_transmit_errs_total[2m]) > 10
+ rate(node_network_transmit_errs_total[2m]) / rate(node_network_transmit_packets_total[2m]) > 0.01
||| % $._config,
'for': '1h',
labels: {
