Yesterday when de-pooling drmrs for a maintenance, this paged:
FIRING: CoreOutboundSaturation: Core link outbound traffic above 90% capacity - asw1-by27-esams:ae0 (Core: ... cr1-esams) #page - https://wikitech.wikimedia.org/wiki/Network_monitoring#Primary_outbound_port_utilization_over_90% - https://grafana.wikimedia.org/d/d968a627-b6f6-47fc-9316-e058854a4945/throughput-network-device-interfaces?var-site=esams+prometheus%2Fops&var-device=asw1-by27-esams:9804&var-interface=ae0 - https://alerts.wikimedia.org/?q=alertname%3DCoreOutboundSaturation
(Which reminds me of T424794: Shorten IRC alert messages by the way...)
This is a due to a monitoring bug: the network device is not exposing the correct interface speed through gNMI.
gnmi_interfaces_interface_state_high_speed{instance="asw1-by27-esams:9804", interface_description="Core: cr1-esams", interface_name="ae0", job="gnmi", prometheus="ops", site="esams"} 10000
10000 == 10Gbps
While the interface is 40G (4x10G):
asw1-by27-esams> show interfaces ae0 brief Physical interface: ae0, Enabled, Physical link is Up Link-level type: Ethernet, MTU: 9192, Speed: 40Gbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000
And properly reported through SNMP (visible in LibreNMS): https://librenms.wikimedia.org/device/device=265/tab=port/port=108302/
Looking at Grafana, more devices are impacted by this issue, for example:
fasw2-e16b-eqiad> show interfaces ae0 brief Physical interface: ae0, Enabled, Physical link is Up Link-level type: Ethernet, MTU: 9192, Speed: 200Gbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000
But: gnmi_interfaces_interface_state_high_speed{instance="fasw2-e16b-eqiad:9804", interface_description="2x100G Trunk to fasw2-e16a-eqiad", interface_name="ae0", job="gnmi", prometheus="ops", site="eqiad"} 100000
Or even MXs:
gnmi_interfaces_interface_state_high_speed{instance="cr2-eqiad:9804", interface_description="External: Arelion Transit", interface_name="ae5", job="gnmi", prometheus="ops", site="eqiad"} 10000
gnmi_interfaces_interface_state_high_speed{instance="cr1-esams:9804", interface_description="External: AMS-IX 3x10G mynl-mem-9305", interface_name="ae1", job="gnmi", prometheus="ops", site="esams"} 10000
[...]
Possible workaround is to hardcode the real speed in the interface description like [40Gbps], mechanism implemented in T374614: Create alerting for saturation on sub-rated interfaces.
We should also open a JTAC case to have them fix it on the long run (or tell us in which version it has been fixed).