Skip to content
Snippets Groups Projects
Commit edc0e75b authored by Jan David Mol's avatar Jan David Mol
Browse files

Added power draw and CPU usage graph

parent 33df4d40
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 6, "id": 21,
"iteration": 1655474443382, "iteration": 1655716827719,
"links": [ "links": [
{ {
"asDropdown": true, "asDropdown": true,
...@@ -814,12 +814,22 @@ ...@@ -814,12 +814,22 @@
"title": "Disk Fill %", "title": "Disk Fill %",
"type": "gauge" "type": "gauge"
}, },
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 19
},
"id": 82,
"panels": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "prometheus"
}, },
"description": "", "description": "Temperature as reported by the CPU.",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
...@@ -913,10 +923,10 @@ ...@@ -913,10 +923,10 @@
] ]
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 8,
"w": 6, "w": 6,
"x": 18, "x": 0,
"y": 13 "y": 20
}, },
"id": 80, "id": 80,
"options": { "options": {
...@@ -970,6 +980,191 @@ ...@@ -970,6 +980,191 @@
"title": "LCU Temperature", "title": "LCU Temperature",
"type": "timeseries" "type": "timeseries"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "Power draw as reported by the LCU itself.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 7,
"x": 6,
"y": 20
},
"id": 84,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "node_hwmon_power_average_watt{instance=\"${station}.astron.nl:9090\"}",
"refId": "A"
}
],
"title": "Power Consumption",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "Average CPU usage across all cores.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 1,
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 0,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 7,
"x": 13,
"y": 20
},
"id": 85,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "avg by(mode) (rate(node_cpu_seconds_total{host=\"$station\",mode!=\"idle\"}[5m]))",
"legendFormat": "{{mode}}",
"range": true,
"refId": "A"
}
],
"title": "CPU Usage",
"type": "timeseries"
}
],
"title": "LCU Temperature & Power",
"type": "row"
},
{ {
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
...@@ -980,7 +1175,7 @@ ...@@ -980,7 +1175,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 19 "y": 20
}, },
"id": 75, "id": 75,
"panels": [ "panels": [
...@@ -1030,8 +1225,7 @@ ...@@ -1030,8 +1225,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "red", "color": "red"
"value": null
}, },
{ {
"color": "#EAB839", "color": "#EAB839",
...@@ -1142,8 +1336,7 @@ ...@@ -1142,8 +1336,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "red", "color": "red"
"value": null
}, },
{ {
"color": "#EAB839", "color": "#EAB839",
...@@ -1253,8 +1446,7 @@ ...@@ -1253,8 +1446,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "red", "color": "red"
"value": null
}, },
{ {
"color": "#EAB839", "color": "#EAB839",
...@@ -1346,7 +1538,7 @@ ...@@ -1346,7 +1538,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 20 "y": 21
}, },
"id": 68, "id": 68,
"panels": [ "panels": [
...@@ -1684,7 +1876,7 @@ ...@@ -1684,7 +1876,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 21 "y": 22
}, },
"id": 77, "id": 77,
"panels": [ "panels": [
...@@ -1800,7 +1992,7 @@ ...@@ -1800,7 +1992,7 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "dop496", "text": "dop496",
"value": "dop496" "value": "dop496"
}, },
...@@ -1829,13 +2021,13 @@ ...@@ -1829,13 +2021,13 @@
] ]
}, },
"time": { "time": {
"from": "now-15m", "from": "now-5m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "LCU", "title": "LCU",
"uid": "lcu", "uid": "lcu",
"version": 3, "version": 5,
"weekStart": "" "weekStart": ""
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment