thermenlast_exporter/thermenlast.dashboard.json

1339 lines
No EOL
35 KiB
JSON

{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.5.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": false,
"hide": false,
"iconColor": "red",
"name": "In-Situ Ratings",
"target": {
"refId": "Anno",
"type": "dashboard"
}
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "exporter code",
"tooltip": "",
"type": "link",
"url": "https://git.nroo.de/norwin/thermenlast_exporter"
},
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "raw current data",
"tooltip": "",
"type": "link",
"url": "https://kreis.uber.space/thermenlast"
},
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "website carolus thermen",
"tooltip": "",
"type": "link",
"url": "https://carolus-thermen.de/auslastung/"
}
],
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"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": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"fieldMinMax": false,
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 45
},
{
"color": "red",
"value": 65
}
]
},
"unit": "percent"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Parkhaus"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#808080",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 13,
"w": 13,
"x": 0,
"y": 0
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\"}",
"interval": "10m",
"legendFormat": "{{resource}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "predict_linear(place_utilization{place=\"Carolus-Thermen\"}[3h], 60*60)",
"hide": true,
"interval": "10m",
"legendFormat": "{{resource}}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "holt_winters(place_utilization{place=\"Carolus-Thermen\"}[48h], 0.05, 0.5)",
"hide": true,
"interval": "10m",
"legendFormat": "{{resource}}",
"range": true,
"refId": "C"
}
],
"title": "Aktuelle Auslastung",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 45
},
{
"color": "red",
"value": 65
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 3,
"x": 13,
"y": 0
},
"id": 7,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\"}",
"interval": "10m",
"legendFormat": "{{resource}}",
"range": true,
"refId": "A"
}
],
"title": "Aktuelle Auslastung",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "left",
"cellOptions": {
"type": "color-text"
},
"inspect": false,
"minWidth": 80
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "number"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "green",
"index": 1,
"text": "ok"
},
"1": {
"color": "red",
"index": 0,
"text": "error"
}
},
"type": "value"
},
{
"options": {
"match": "null+nan",
"result": {
"color": "purple",
"index": 2,
"text": "unknown"
}
},
"type": "special"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "place"
},
"properties": [
{
"id": "custom.width",
"value": 322
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 8,
"x": 16,
"y": 0
},
"id": 4,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": false,
"sortBy": []
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "place_utilization_error{place=\"Carolus-Thermen\"}",
"format": "time_series",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Scrape Status",
"transformations": [
{
"id": "reduce",
"options": {
"includeTimeField": false,
"labelsToFields": true,
"mode": "seriesToRows",
"reducers": [
"last"
]
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Field": true,
"Time": false,
"__name__": true,
"instance": true,
"job": true
},
"indexByName": {},
"renameByName": {
"Last": "status"
}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "(NOTE: zeitreihe ist künstlich um 1.75h nach vorne geschoben für besseres alignment)",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": true,
"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": "smooth",
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "area"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/Sauna.+/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "shades",
"seriesBy": "last"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/Thermalbad.*/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "shades"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/Parkhaus.*/"
},
"properties": [
{
"id": "color",
"value": {
"mode": "shades"
}
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 8,
"x": 16,
"y": 3
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "deriv(place_utilization{place=\"Carolus-Thermen\"}[210m] offset -105m) * 10*60",
"hide": false,
"interval": "10m",
"legendFormat": "{{resource}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "deriv(place_utilization{place=\"Carolus-Thermen\"}[40m]) * 10*60",
"hide": true,
"interval": "10m",
"legendFormat": "{{resource}} über 40min",
"range": true,
"refId": "B"
}
],
"title": "Änderungsrate der Auslastung über 3.5h",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "#999999",
"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": "smooth",
"lineStyle": {
"dash": [
10,
10
],
"fill": "dash"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "current"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "solid"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "custom.showPoints",
"value": "auto"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Vortag"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "avg previous week"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 13
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"}",
"hide": false,
"interval": "10m",
"legendFormat": "Aktuell",
"range": true,
"refId": "current"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 1d",
"hide": false,
"interval": "10m",
"legendFormat": "Vortag",
"range": true,
"refId": "vortag"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "avg_over_time(place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"}[1h])",
"hide": true,
"interval": "10m",
"legendFormat": "Average der letzen 1h",
"range": true,
"refId": "movingavg"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 1d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 2d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 3d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 4d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 5d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 6d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 7d\n) / 7",
"hide": false,
"interval": "10m",
"legendFormat": "avg previous week",
"range": true,
"refId": "avg-week"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 7d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 14d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 21d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Thermalbad\"} offset 28d\n) / 1",
"hide": false,
"interval": "10m",
"legendFormat": "Heute vor einer Woche",
"range": true,
"refId": "avg-weekday"
}
],
"title": "Auslastung Thermalbad",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "#999999",
"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": "smooth",
"lineStyle": {
"dash": [
10,
10
],
"fill": "dash"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "current"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "solid"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "custom.showPoints",
"value": "auto"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Vortag"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "avg previous week"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 20
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"}",
"hide": false,
"interval": "10m",
"legendFormat": "Aktuell",
"range": true,
"refId": "current"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 1d",
"hide": false,
"interval": "10m",
"legendFormat": "Vortag",
"range": true,
"refId": "vortag"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "avg_over_time(place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"}[1h])",
"hide": true,
"interval": "10m",
"legendFormat": "Average der letzen 1h",
"range": true,
"refId": "movingavg"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 1d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 2d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 3d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 4d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 5d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 6d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 7d\n) / 7",
"hide": false,
"interval": "10m",
"legendFormat": "avg previous week",
"range": true,
"refId": "avg-week"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 7d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 14d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 21d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Saunawelt\"} offset 28d\n) / 1",
"hide": false,
"interval": "10m",
"legendFormat": "Heute vor einer Woche",
"range": true,
"refId": "avg-weekday"
}
],
"title": "Auslastung Saunawelt",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "#999999",
"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": "smooth",
"lineStyle": {
"dash": [
10,
10
],
"fill": "dash"
},
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "current"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"fill": "solid"
}
},
{
"id": "color",
"value": {
"fixedColor": "#7e7e7e",
"mode": "fixed"
}
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "custom.showPoints",
"value": "auto"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Vortag"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "avg previous week"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 27
},
"id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.5.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"}",
"hide": false,
"interval": "10m",
"legendFormat": "Aktuell",
"range": true,
"refId": "current"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 1d",
"hide": false,
"interval": "10m",
"legendFormat": "Vortag",
"range": true,
"refId": "vortag"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "avg_over_time(place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"}[1h])",
"hide": true,
"interval": "10m",
"legendFormat": "Average der letzen 1h",
"range": true,
"refId": "movingavg"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 1d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 2d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 3d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 4d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 5d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 6d\n + place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 7d\n) / 7",
"hide": false,
"interval": "10m",
"legendFormat": "avg previous week",
"range": true,
"refId": "avg-week"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "(\n place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 7d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 14d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 21d\n #+ place_utilization{place=\"Carolus-Thermen\", resource=\"Parkhaus\"} offset 28d\n) / 1",
"hide": false,
"interval": "10m",
"legendFormat": "Heute vor einer Woche",
"range": true,
"refId": "avg-weekday"
}
],
"title": "Auslastung Parkhaus",
"type": "timeseries"
}
],
"refresh": "1m",
"schemaVersion": 40,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now/d+8h",
"to": "now/d"
},
"timepicker": {
"refresh_intervals": [
"1m",
"5m",
"1h",
"1d"
]
},
"timezone": "",
"title": "Thermenlast",
"uid": "febowqzindp8gf",
"version": 39,
"weekStart": ""
}