Browse Source

Use max drive temp in overview of prometheus dashboard

When a drive has multiple temperature sensors, we take the max reading
instead of showing two lines in the drive overview table in the
prometheus sample dashboard.
Nick Babcock 3 years ago
parent
commit
d46d4b029a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      assets/dashboards/ohm-prometheus.json

+ 3 - 3
assets/dashboards/ohm-prometheus.json

@@ -71,7 +71,7 @@
   "gnetId": null,
   "graphTooltip": 1,
   "id": null,
-  "iteration": 1635027549465,
+  "iteration": 1635035755441,
   "links": [],
   "liveNow": false,
   "panels": [
@@ -2871,7 +2871,7 @@
       "targets": [
         {
           "exemplar": true,
-          "expr": "ohm_hdd_celsius{instance=\"$instance\"}",
+          "expr": "max by (hardware,hw_instance) (ohm_hdd_celsius{instance=\"$instance\"})",
           "format": "table",
           "instant": true,
           "interval": "",
@@ -4076,5 +4076,5 @@
   "timezone": "",
   "title": "Ohm Windows Desktop",
   "uid": "EEQD4wv7z",
-  "version": 38
+  "version": 39
 }