diff --git a/fleet/lib/grafana-dashboards/dashboards/PDUs.json b/fleet/lib/grafana-dashboards/dashboards/PDUs.json new file mode 100644 index 000000000..d683a9e45 --- /dev/null +++ b/fleet/lib/grafana-dashboards/dashboards/PDUs.json @@ -0,0 +1,592 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 1968, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "$instance", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 0, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"3\"} / 10", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Back Temperature", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "description": "temperature measured on the front of the rack. ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 25 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"1\"} / 10", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Front Temp. $instance", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 23 + }, + { + "color": "orange", + "value": 26 + }, + { + "color": "red", + "value": 29 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 5, + "y": 0 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"3\"} / 10", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Back Temperature $instance", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 10, + "y": 0 + }, + "id": 4, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"2\"}", + "format": "time_series", + "instant": false, + "interval": "", + "legendFormat": "Front", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"4\"}", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "Back", + "range": true, + "refId": "Back" + } + ], + "title": "Humidity $instance", + "type": "gauge" + }, + { + "datasource": { + "uid": "mimir" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 14, + "y": 0 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"5\"}", + "format": "time_series", + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"6\"}", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Rack Doors", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 17, + "y": 0 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "repeat": "instance", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "expr": "measurementsExternalSensorValue{instance=~\"$instance\", sensorID=\"7\"}", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Water Detector", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": { + "text": [ + "pdu1-a03.cp.lsst.org", + "pdu1-a04.cp.lsst.org", + "pdu1-b02.ls.lsst.org", + "pdu1-b03.ls.lsst.org", + "pdu1-b04.cp.lsst.org", + "pdu1-b04.ls.lsst.org", + "pdu1-b06.ls.lsst.org", + "pdu1-b07.ls.lsst.org", + "pdu1-b13.ls.lsst.org", + "pdu1-b14.ls.lsst.org", + "pdu1-b16.ls.lsst.org", + "pdu1-main5-as01.cp.lsst.org" + ], + "value": [ + "pdu1-a03.cp.lsst.org", + "pdu1-a04.cp.lsst.org", + "pdu1-b02.ls.lsst.org", + "pdu1-b03.ls.lsst.org", + "pdu1-b04.cp.lsst.org", + "pdu1-b04.ls.lsst.org", + "pdu1-b06.ls.lsst.org", + "pdu1-b07.ls.lsst.org", + "pdu1-b13.ls.lsst.org", + "pdu1-b14.ls.lsst.org", + "pdu1-b16.ls.lsst.org", + "pdu1-main5-as01.cp.lsst.org" + ] + }, + "definition": "label_values(measurementsExternalSensorValue, instance)", + "multi": true, + "name": "instance", + "options": [], + "query": { + "qryType": 5, + "query": "label_values(measurementsExternalSensorValue, instance)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "PDUs", + "uid": "be615ofb5iltsb", + "version": 26, + "weekStart": "" +} \ No newline at end of file