From be90b4e266cadc39a6b521828c48aeababa38020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 9 Sep 2024 22:19:46 +0300 Subject: [PATCH] monitoring: Update mikrotik-exporter --- monitoring/mikrotik-exporter.yaml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/monitoring/mikrotik-exporter.yaml b/monitoring/mikrotik-exporter.yaml index a1093c1..2bf6e63 100644 --- a/monitoring/mikrotik-exporter.yaml +++ b/monitoring/mikrotik-exporter.yaml @@ -36,22 +36,30 @@ spec: groups: - name: mikrotik rules: - - alert: MikrotikUplinkRedundancyLost - expr: mikrotik_interface_running{port=~"sfp-sfpplus[12]", instance!~"sw_core.*", instance!~"sw_mgmt.*"} == 0 - for: 0m + - alert: MikrotikBondRedundancyLost + expr: mikrotik_bond_port_active == 0 + for: 2m labels: severity: error annotations: summary: Switch uplink high availability lost - description: One of the two 10Gb optical links is malfunctioning + description: One of the two bonds has inactive member interface - alert: MikrotikLinkRateDegraded - expr: mikrotik_interface_rate{port=~"sfp-sfpplus.*"} < 10000000000 - for: 0m + expr: mikrotik_interface_link_rate_bps{interface=~"sfp-sfpplus.*"} < 10000000000 + for: 2m labels: severity: error annotations: - summary: 10Gb link degraded - description: One of the 10Gb links is running at lower speed + summary: SFP+ link degraded + description: One of the SFP+ (10G) links is running at lower speed + - alert: MikrotikLinkRateDegraded + expr: mikrotik_interface_link_rate_bps{interface=~"qsfpplus.*"} < 40000000000 + for: 2m + labels: + severity: error + annotations: + summary: QSFP+ link degraded + description: One of the QSFP+ (40G) links is running at lower speed --- apiVersion: apps/v1 kind: Deployment @@ -70,7 +78,7 @@ spec: spec: containers: - name: mikrotik-exporter - image: mirror.gcr.io/codemowers/mikrotik-exporter:latest@sha256:c3c075ebf6f9ba032c9f108567afef59c763ccd17a2ad4ef4f99e1721d03aa46 + image: mirror.gcr.io/codemowers/mikrotik-exporter:latest@sha256:3148c06a90b9836598695645b85c8514fa67ac9e7c644b3daf4853577fce0efb topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone