]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monitoring: add PSU temperature graph to hardware dashboard
authorAfreen Misbah <afreen@ibm.com>
Thu, 25 Jun 2026 22:07:58 +0000 (03:37 +0530)
committerAfreen Misbah <afreen@ibm.com>
Thu, 2 Jul 2026 19:18:41 +0000 (00:48 +0530)
Signed-off-by: Afreen Misbah <afreen@ibm.com>
monitoring/ceph-mixin/dashboards/hardware.libsonnet
monitoring/ceph-mixin/dashboards_out/hardware.json

index 583d93bb81b2b1c0a2ffffaf29aef7d11f7366af..d9f10859227c42e0665497c7afdb6d72da01ba9a 100644 (file)
@@ -670,6 +670,27 @@ local g = import 'grafonnet/grafana.libsonnet';
             { alias: 'Critical', color: 'dark-red', dashes: true, fill: 0 },
           ],
         },
+
+        // PSU Temperatures
+        g.graphPanel.new(
+          title='PSU Temperatures',
+          datasource='$datasource',
+          format='celsius',
+        ).addTarget(
+          g.prometheus.target(
+            'ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~"PSU.*_TEMP.*"}',
+            legendFormat='{{sensor_name}}'
+          )
+        ).addTarget(
+          g.prometheus.target('vector(65)', legendFormat='Critical')
+        )
+        + {
+          gridPos: { x: 0, y: 20, w: 12, h: 8 },
+          yaxes: [{ min: 0 }, {}],
+          seriesOverrides: [
+            { alias: 'Critical', color: 'dark-red', dashes: true, fill: 0 },
+          ],
+        },
       ] },
 
       // Row 5: FAN Speed History
index 263ac97ccfe9b8dad596211e60fd0d9b440fc216..6723d45d5d1d4fe9959de53be08606d7c90050ce 100644 (file)
                   },
                   { }
                ]
+            },
+            {
+               "aliasColors": { },
+               "bars": false,
+               "dashLength": 10,
+               "dashes": false,
+               "datasource": "$datasource",
+               "fill": 1,
+               "fillGradient": 0,
+               "gridPos": {
+                  "h": 8,
+                  "w": 12,
+                  "x": 0,
+                  "y": 20
+               },
+               "id": 35,
+               "legend": {
+                  "alignAsTable": false,
+                  "avg": false,
+                  "current": false,
+                  "max": false,
+                  "min": false,
+                  "rightSide": false,
+                  "show": true,
+                  "sideWidth": null,
+                  "total": false,
+                  "values": false
+               },
+               "lines": true,
+               "linewidth": 1,
+               "links": [ ],
+               "nullPointMode": "null",
+               "percentage": false,
+               "pointradius": 5,
+               "points": false,
+               "renderer": "flot",
+               "repeat": null,
+               "seriesOverrides": [
+                  {
+                     "alias": "Critical",
+                     "color": "dark-red",
+                     "dashes": true,
+                     "fill": 0
+                  }
+               ],
+               "spaceLength": 10,
+               "stack": false,
+               "steppedLine": false,
+               "targets": [
+                  {
+                     "expr": "ceph_hardware_temperature_celsius{hostname=~\"$hostname\", sensor_name=~\"PSU.*_TEMP.*\"}",
+                     "format": "time_series",
+                     "intervalFactor": 2,
+                     "legendFormat": "{{sensor_name}}",
+                     "refId": "A"
+                  },
+                  {
+                     "expr": "vector(65)",
+                     "format": "time_series",
+                     "intervalFactor": 2,
+                     "legendFormat": "Critical",
+                     "refId": "B"
+                  }
+               ],
+               "thresholds": [ ],
+               "timeFrom": null,
+               "timeShift": null,
+               "title": "PSU Temperatures",
+               "tooltip": {
+                  "shared": true,
+                  "sort": 0,
+                  "value_type": "individual"
+               },
+               "type": "graph",
+               "xaxis": {
+                  "buckets": null,
+                  "mode": "time",
+                  "name": null,
+                  "show": true,
+                  "values": [ ]
+               },
+               "yaxes": [
+                  {
+                     "min": 0
+                  },
+                  { }
+               ]
             }
          ],
          "repeat": null,
             "x": 0,
             "y": 4
          },
-         "id": 35,
+         "id": 36,
          "panels": [
             {
                "aliasColors": { },
                   "x": 0,
                   "y": 5
                },
-               "id": 36,
+               "id": 37,
                "legend": {
                   "alignAsTable": false,
                   "avg": false,
                   "x": 12,
                   "y": 5
                },
-               "id": 37,
+               "id": 38,
                "legend": {
                   "alignAsTable": false,
                   "avg": false,