]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: trigger alert if some nodes have a MTU different than the median value 38764/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Tue, 5 Jan 2021 09:04:22 +0000 (14:34 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Fri, 22 Jan 2021 05:50:13 +0000 (11:20 +0530)
This PR intends to alert a user if a specific network is configured with a custom MTU

Fixes: https://tracker.ceph.com/issues/48748
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
monitoring/prometheus/alerts/ceph_default_alerts.yml

index b07ea80ea8ac0fc44709977ed0eb22a9a4582bde..abc6f647142b58447855ad36c3d8a3e9c526123d 100644 (file)
@@ -214,6 +214,17 @@ groups:
             will be full in less than 5 days assuming the average fill-up
             rate of the past 48 hours.
 
+      - alert: MTU Mismatch
+        expr: node_network_mtu_bytes{device!="lo"} != on(device) group_left() (quantile(0.5, node_network_mtu_bytes{device!="lo"}) by (device))
+        labels:
+          severity: warning
+          type: ceph_default
+          oid: 1.3.6.1.4.1.50495.15.1.2.8.5
+        annotations:
+          description: >
+            Node {{ $labels.instance }} has a different MTU size ({{ $value }})
+            than the median value on device {{ $labels.device }}.
+
   - name: pools
     rules:
       - alert: pool full