grafana: put airtime into overview dashboard

This commit is contained in:
Gregor Michels 2023-03-08 00:02:37 +01:00
parent 01c9fa2317
commit b621e8dd48
1 changed files with 115 additions and 11 deletions

View File

@ -354,6 +354,101 @@
"align": false "align": false
} }
}, },
{
"datasource": {
"type": "prometheus",
"uid": "aUZtGMdVk"
},
"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": "area"
}
},
"mappings": [],
"max": 1,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 0.5
},
{
"color": "red",
"value": 0.7
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 13
},
"id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "aUZtGMdVk"
},
"editorMode": "code",
"expr": "sum(increase(wifi_network_airtime_busy{site=\"$site\"}[$__rate_interval])) by (instance,device) / sum(increase(wifi_network_airtime_total{site=\"$site\"}[$__rate_interval])) by (instance,device)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "wifi airtime utilization",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -384,7 +479,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 13 "y": 21
}, },
"id": 3, "id": 3,
"options": { "options": {
@ -466,7 +561,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 13 "y": 21
}, },
"id": 13, "id": 13,
"options": { "options": {
@ -527,7 +622,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
} }
] ]
}, },
@ -539,10 +635,11 @@
"h": 7, "h": 7,
"w": 18, "w": 18,
"x": 0, "x": 0,
"y": 21 "y": 29
}, },
"id": 17, "id": 17,
"options": { "options": {
"orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@ -554,7 +651,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "7.5.11", "pluginVersion": "9.0.6",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -611,7 +708,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -626,11 +724,13 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 21 "y": 29
}, },
"id": 15, "id": 15,
"options": { "options": {
"displayMode": "gradient", "displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@ -642,7 +742,7 @@
"showUnfilled": true, "showUnfilled": true,
"text": {} "text": {}
}, },
"pluginVersion": "7.5.11", "pluginVersion": "9.0.6",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -680,10 +780,14 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": "adp", "text": "adp",
"value": "adp" "value": "adp"
}, },
"datasource": {
"type": "prometheus",
"uid": "aUZtGMdVk"
},
"definition": "label_values(wifi_network_clients, site)", "definition": "label_values(wifi_network_clients, site)",
"description": "which site ?", "description": "which site ?",
"hide": 0, "hide": 0,
@ -705,13 +809,13 @@
] ]
}, },
"time": { "time": {
"from": "now-24h", "from": "now-3h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Übersicht Gemeinschaftsunterkünfte", "title": "Übersicht Gemeinschaftsunterkünfte",
"uid": "1O2tNMOVk", "uid": "1O2tNMOVk",
"version": 3, "version": 4,
"weekStart": "" "weekStart": ""
} }