mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
fix: update living room dashboard (#74)
This commit is contained in:
parent
af2f462c1c
commit
10bb940f87
1 changed files with 951 additions and 1003 deletions
|
|
@ -74,7 +74,7 @@
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -98,16 +98,28 @@
|
||||||
},
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {
|
"color": {
|
||||||
"hideFrom": {
|
"mode": "thresholds"
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
},
|
||||||
"scaleDistribution": {
|
"mappings": [],
|
||||||
"type": "linear"
|
"thresholds": {
|
||||||
}
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "yellow",
|
||||||
|
"value": 1000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "red",
|
||||||
|
"value": 2000
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "watt"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
|
|
@ -117,72 +129,36 @@
|
||||||
"x": 5,
|
"x": 5,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 8,
|
"id": 14,
|
||||||
"options": {
|
"options": {
|
||||||
"calculate": false,
|
"colorMode": "value",
|
||||||
"calculation": {
|
"graphMode": "none",
|
||||||
"yBuckets": {
|
"justifyMode": "auto",
|
||||||
"mode": "size",
|
"orientation": "auto",
|
||||||
"scale": {
|
"percentChangeColorMode": "standard",
|
||||||
"type": "linear"
|
"reduceOptions": {
|
||||||
|
"calcs": [
|
||||||
|
"lastNotNull"
|
||||||
|
],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
},
|
},
|
||||||
"value": ""
|
"showPercentChange": false,
|
||||||
}
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"cellGap": 0,
|
"pluginVersion": "12.4.2",
|
||||||
"color": {
|
|
||||||
"exponent": 0.5,
|
|
||||||
"fill": "dark-orange",
|
|
||||||
"max": 80,
|
|
||||||
"min": 35,
|
|
||||||
"mode": "scheme",
|
|
||||||
"reverse": false,
|
|
||||||
"scale": "exponential",
|
|
||||||
"scheme": "RdYlGn",
|
|
||||||
"steps": 3
|
|
||||||
},
|
|
||||||
"exemplars": {
|
|
||||||
"color": "rgba(255,0,255,0.7)"
|
|
||||||
},
|
|
||||||
"filterValues": {
|
|
||||||
"le": 1e-09
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
"show": false
|
|
||||||
},
|
|
||||||
"rowsFrame": {
|
|
||||||
"layout": "auto"
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"showColorScale": false,
|
|
||||||
"yHistogram": false
|
|
||||||
},
|
|
||||||
"yAxis": {
|
|
||||||
"axisLabel": "Temp",
|
|
||||||
"axisPlacement": "left",
|
|
||||||
"decimals": 1,
|
|
||||||
"max": "100",
|
|
||||||
"min": 0,
|
|
||||||
"reverse": false,
|
|
||||||
"unit": "celsius"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pluginVersion": "12.1.0",
|
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"expr": "octopus_electricity_demand_watts",
|
||||||
"expr": "sum(smartctl_device_temperature) by (device)",
|
"legendFormat": "__auto",
|
||||||
"instant": false,
|
|
||||||
"interval": "10m",
|
|
||||||
"legendFormat": "{{device}}",
|
|
||||||
"range": true,
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Drive Temperature",
|
"title": "Watts",
|
||||||
"type": "heatmap"
|
"type": "stat"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -228,13 +204,14 @@
|
||||||
"fields": "",
|
"fields": "",
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
|
"sort": "desc",
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"hideZeros": false,
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
|
|
@ -250,7 +227,6 @@
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "node_filesystem_size_bytes{server=\"london-b\",mountpoint=\"/hdd\"} - node_filesystem_avail_bytes{server=\"london-b\",mountpoint=\"/hdd\"}",
|
"expr": "node_filesystem_size_bytes{server=\"london-b\",mountpoint=\"/hdd\"} - node_filesystem_avail_bytes{server=\"london-b\",mountpoint=\"/hdd\"}",
|
||||||
"hide": false,
|
|
||||||
"legendFormat": "Used",
|
"legendFormat": "Used",
|
||||||
"range": true,
|
"range": true,
|
||||||
"refId": "B"
|
"refId": "B"
|
||||||
|
|
@ -310,7 +286,7 @@
|
||||||
"textMode": "name",
|
"textMode": "name",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
|
|
@ -329,7 +305,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"degraded\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"degraded\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Degraded",
|
"legendFormat": "Degraded",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -343,7 +318,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"faulted\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"faulted\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Faulted",
|
"legendFormat": "Faulted",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -357,7 +331,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"offline\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"offline\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Offline",
|
"legendFormat": "Offline",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -371,7 +344,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"removed\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"removed\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Removed",
|
"legendFormat": "Removed",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -385,7 +357,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"suspended\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"suspended\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Suspended",
|
"legendFormat": "Suspended",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -399,7 +370,6 @@
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"unavail\"} > 0",
|
"expr": "node_zfs_zpool_state{server=\"london-b\",zpool=\"hdd\", state=\"unavail\"} > 0",
|
||||||
"hide": false,
|
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "Unavailable",
|
"legendFormat": "Unavailable",
|
||||||
"range": false,
|
"range": false,
|
||||||
|
|
@ -478,7 +448,7 @@
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -503,38 +473,19 @@
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"color": {
|
"color": {
|
||||||
"mode": "continuous-RdYlGr"
|
"mode": "thresholds"
|
||||||
},
|
},
|
||||||
"custom": {
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"fillOpacity": 70,
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"insertNulls": false,
|
|
||||||
"lineWidth": 0,
|
|
||||||
"spanNulls": false
|
|
||||||
},
|
|
||||||
"decimals": 0,
|
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"max": 1,
|
|
||||||
"min": 0,
|
|
||||||
"noValue": "0",
|
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green",
|
"color": "green",
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": 80
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"unit": "currencyGBP"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
|
|
@ -544,36 +495,36 @@
|
||||||
"x": 5,
|
"x": 5,
|
||||||
"y": 5
|
"y": 5
|
||||||
},
|
},
|
||||||
"id": 11,
|
"id": 15,
|
||||||
"options": {
|
"options": {
|
||||||
"alignValue": "left",
|
"colorMode": "value",
|
||||||
"legend": {
|
"graphMode": "none",
|
||||||
"displayMode": "list",
|
"justifyMode": "auto",
|
||||||
"placement": "bottom",
|
"orientation": "auto",
|
||||||
"showLegend": true
|
"percentChangeColorMode": "standard",
|
||||||
|
"reduceOptions": {
|
||||||
|
"calcs": [
|
||||||
|
"lastNotNull"
|
||||||
|
],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
},
|
},
|
||||||
"mergeValues": false,
|
"showPercentChange": false,
|
||||||
"rowHeight": 0.9,
|
"textMode": "auto",
|
||||||
"showValue": "auto",
|
"wideLayout": true
|
||||||
"tooltip": {
|
|
||||||
"hideZeros": false,
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "smartctl_device_smart_status",
|
"expr": "octopus_account_balance_pence / 100 * -1",
|
||||||
"interval": "10m",
|
"legendFormat": "__auto",
|
||||||
"legendFormat": "{{device}}",
|
|
||||||
"range": true,
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Drive Health",
|
"title": "Octopus Account Bill",
|
||||||
"type": "state-timeline"
|
"type": "stat"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -624,7 +575,7 @@
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -690,7 +641,7 @@
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -723,6 +674,9 @@
|
||||||
"type": "auto"
|
"type": "auto"
|
||||||
},
|
},
|
||||||
"filterable": false,
|
"filterable": false,
|
||||||
|
"footer": {
|
||||||
|
"reducers": []
|
||||||
|
},
|
||||||
"inspect": false
|
"inspect": false
|
||||||
},
|
},
|
||||||
"mappings": [
|
"mappings": [
|
||||||
|
|
@ -821,17 +775,9 @@
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"options": {
|
"options": {
|
||||||
"cellHeight": "sm",
|
"cellHeight": "sm",
|
||||||
"footer": {
|
|
||||||
"countRows": false,
|
|
||||||
"fields": "",
|
|
||||||
"reducer": [
|
|
||||||
"sum"
|
|
||||||
],
|
|
||||||
"show": false
|
|
||||||
},
|
|
||||||
"showHeader": true
|
"showHeader": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"disableTextWrap": false,
|
"disableTextWrap": false,
|
||||||
|
|
@ -970,7 +916,7 @@
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "12.1.0",
|
"pluginVersion": "12.4.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"disableTextWrap": false,
|
"disableTextWrap": false,
|
||||||
|
|
@ -993,7 +939,7 @@
|
||||||
],
|
],
|
||||||
"preload": false,
|
"preload": false,
|
||||||
"refresh": "30s",
|
"refresh": "30s",
|
||||||
"schemaVersion": 41,
|
"schemaVersion": 42,
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"templating": {
|
"templating": {
|
||||||
"list": []
|
"list": []
|
||||||
|
|
@ -1007,5 +953,7 @@
|
||||||
},
|
},
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"title": "Living Room Display",
|
"title": "Living Room Display",
|
||||||
"uid": "a68bd259-c836-4fad-b33e-98f1a52a5eb9"
|
"uid": "a68bd259-c836-4fad-b33e-98f1a52a5eb9",
|
||||||
|
"version": 19,
|
||||||
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue