grafana: auto-sync 2026-05-23

This commit is contained in:
nuc-cron
2026-05-23 10:31:10 +00:00
parent acbee20d61
commit 9b63577505
8 changed files with 21426 additions and 0 deletions
+995
View File
@@ -0,0 +1,995 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Container/Pod Log Dashboard(Loki as DataSource)",
"editable": true,
"gnetId": 16966,
"graphTooltip": 0,
"id": 4409176350515200,
"iteration": 1594222083341,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": true,
"colorValue": true,
"colors": [
"rgb(31, 255, 7)",
"rgb(31, 255, 7)",
"rgb(31, 255, 7)"
],
"datasource": "P8E80F9AEF21F6940",
"description": "Total Count of log lines in the specified time range",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "short",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 12,
"x": 0,
"y": 0
},
"id": 11,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"$$hashKey": "object:65",
"name": "value to text",
"value": 1
},
{
"$$hashKey": "object:66",
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"pluginVersion": "6.4.3",
"postfix": " lines",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgb(0, 82, 0)",
"full": false,
"lineColor": "rgb(31, 255, 7)",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"})[$__interval]))",
"hide": false,
"refId": "A"
}
],
"thresholds": "10,50",
"timeFrom": null,
"timeShift": null,
"title": "Total Count of logs",
"type": "singlestat",
"valueFontSize": "70%",
"valueMaps": [
{
"$$hashKey": "object:68",
"op": "=",
"text": "0",
"value": "null"
}
],
"valueName": "total"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": true,
"colorPrefix": false,
"colorValue": true,
"colors": [
"rgb(222, 15, 43)",
"rgb(222, 15, 43)",
"rgb(222, 15, 43)"
],
"datasource": "P8E80F9AEF21F6940",
"description": "Total Count: of $searchable_pattern in the specified time range",
"fieldConfig": {
"defaults": {
"custom": {},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"format": "short",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 12,
"x": 12,
"y": 0
},
"id": 6,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"$$hashKey": "object:1630",
"name": "value to text",
"value": 1
},
{
"$$hashKey": "object:1631",
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"pluginVersion": "6.4.3",
"postfix": " \"$searchable_pattern\"",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgb(105, 34, 43)",
"full": false,
"lineColor": "#C4162A",
"show": true,
"ymax": null,
"ymin": null
},
"tableColumn": "",
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[$__interval]))",
"hide": false,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Total Count: of $searchable_pattern",
"type": "singlestat",
"valueFontSize": "70%",
"valueMaps": [
{
"$$hashKey": "object:1633",
"op": "=",
"text": "0",
"value": "null"
}
],
"valueName": "total"
},
{
"datasource": "P8E80F9AEF21F6940",
"description": "Live logs is a like 'tail -f' in a real time",
"fieldConfig": {
"defaults": {
"custom": {},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 3
},
"id": 2,
"options": {
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"expr": "{namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\" ",
"hide": false,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Live logs",
"type": "logs"
},
{
"aliasColors": {
"stderr": "#C4162A",
"stdout": "#37872D"
},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "P8E80F9AEF21F6940",
"decimals": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#299c46",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 7,
"w": 9,
"x": 0,
"y": 12
},
"id": 19,
"interval": null,
"legend": {
"header": "Total Count",
"percentage": true,
"percentageDecimals": 2,
"show": true,
"sort": "total",
"sortDesc": true,
"values": true
},
"legendType": "right",
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"options": {
"legend": {
"displayMode": "list",
"placement": "right"
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single"
}
},
"pieType": "pie",
"pluginVersion": "7.0.4",
"strokeWidth": "1.5",
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\"})[$__interval])) by (stream)",
"hide": false,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Total count of stderr / stdout pie",
"type": "piechart",
"valueName": "total"
},
{
"aliasColors": {},
"breakPoint": "50%",
"cacheTimeout": null,
"combine": {
"label": "Others",
"threshold": 0
},
"datasource": "P8E80F9AEF21F6940",
"decimals": 0,
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"fontSize": "80%",
"format": "short",
"gridPos": {
"h": 7,
"w": 9,
"x": 9,
"y": 12
},
"id": 20,
"interval": "1m",
"legend": {
"header": "total count",
"percentage": true,
"show": true,
"sort": "total",
"sortDesc": true,
"values": true
},
"legendType": "right",
"links": [],
"maxDataPoints": "",
"nullPointMode": "connected",
"options": {
"legend": {
"displayMode": "list",
"placement": "right"
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single"
}
},
"pieType": "donut",
"pluginVersion": "6.4.3",
"strokeWidth": "0.4",
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Matched word: \"$searchable_pattern\" donut",
"type": "piechart",
"valueName": "total"
},
{
"cacheTimeout": null,
"datasource": "P8E80F9AEF21F6940",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "0",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"noValue": "0",
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 6,
"x": 18,
"y": 12
},
"id": 9,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "7.0.4",
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[$__interval])) * 100 / sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"})[$__interval]))",
"hide": false,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "\"$searchable_pattern\" Percentage for specified time",
"type": "gauge"
},
{
"aliasColors": {},
"bars": true,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "P8E80F9AEF21F6940",
"decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 1,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 21
},
"hiddenSeries": false,
"id": 18,
"interval": "1m",
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 3,
"links": [],
"maxDataPoints": "",
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.4.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Matched word: \"$searchable_pattern\" historical",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:425",
"decimals": 0,
"format": "short",
"label": "Count",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:426",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "P8E80F9AEF21F6940",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 10,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 21
},
"hiddenSeries": false,
"id": 10,
"interval": null,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.4.3",
"pointradius": 0.5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[30s])) by (pod)",
"hide": false,
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "\"$searchable_pattern\" Rate per Pod",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:2804",
"format": "short",
"label": null,
"logBase": 10,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:2805",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "P8E80F9AEF21F6940",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "0",
"type": 1,
"value": "null"
}
],
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 10
},
{
"color": "#C4162A",
"value": 50
}
]
},
"unit": "none"
},
"overrides": []
},
"fill": 2,
"fillGradient": 4,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 30
},
"hiddenSeries": false,
"id": 7,
"interval": null,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "7.0.4",
"pointradius": 2,
"points": true,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:154",
"alias": "{stream=\"stderr\"} stderr",
"color": "#C4162A",
"legend": false,
"linewidth": 2
},
{
"$$hashKey": "object:220",
"alias": "{stream=\"stdout\"} stdout",
"color": "#56A64B",
"legend": false,
"linewidth": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\"})[$__interval])) by (stream)",
"hide": false,
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Count of stderr / stdout historical",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:188",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:189",
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "1m",
"schemaVersion": 25,
"style": "dark",
"tags": [
"Loki",
"logging"
],
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": true,
"text": "loki",
"value": "loki"
},
"datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=~\".+\"}, namespace)",
"hide": 0,
"includeAll": false,
"label": "Namespace",
"multi": false,
"name": "namespace",
"options": [],
"query": "label_values({namespace=~\".+\"}, namespace)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=\"$namespace\"}, pod)",
"hide": 0,
"includeAll": true,
"label": "Pod",
"multi": false,
"name": "pod",
"options": [],
"query": "label_values({namespace=\"$namespace\"}, pod)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=\"$namespace\"}, stream)",
"hide": 0,
"includeAll": true,
"label": "Stream",
"multi": false,
"name": "stream",
"options": [],
"query": "label_values({namespace=\"$namespace\"}, stream)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": true,
"text": "",
"value": ""
},
"hide": 0,
"label": "Search (case insensitive)",
"name": "searchable_pattern",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Container Log Dashboard",
"uid": "f31115b8-bef2-4f34-bbc9-267dc374d13e",
"version": 1
}
+617
View File
@@ -0,0 +1,617 @@
{
"id": 4422232765882368,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"title": "\u26a1 Power & Energy",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 1
},
"id": 2,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(hass_sensor_power_w)",
"instant": true,
"refId": "A"
}
],
"title": "Total Power Now",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "kwatth"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 1
},
"id": 3,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(increase(hass_sensor_energy_kwh[24h]))",
"instant": true,
"refId": "A"
}
],
"title": "Energy Today",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 8,
"y": 1
},
"id": 4,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "avg(hass_sensor_unit_eur_per_kwh)",
"instant": true,
"refId": "A"
}
],
"title": "Energy Price",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 12,
"y": 1
},
"id": 5,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(hass_sensor_power_w) / 1000 * avg(hass_sensor_unit_eur_per_kwh)",
"instant": true,
"refId": "A"
}
],
"title": "Current Cost/h",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 16,
"x": 0,
"y": 5
},
"id": 6,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum by (friendly_name) (topk(10, hass_sensor_power_w))",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "Power Consumption (W)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 5
},
"id": 7,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "avg(hass_sensor_unit_eur_per_kwh)",
"legendFormat": "price",
"refId": "A"
}
],
"title": "Energy Price (\u20ac/kWh)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 13
},
"id": 10,
"title": "\ud83c\udf21\ufe0f Climate",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "celsius"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 14
},
"id": 11,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "hass_sensor_temperature_celsius",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "Temperatures (\u00b0C)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 14
},
"id": 12,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "hass_sensor_humidity_percent",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "Humidity (%)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "ppm"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 14
},
"id": 13,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "hass_sensor_carbon_dioxide_ppm",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "CO\u2082 (ppm)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 22
},
"id": 20,
"title": "\ud83c\udfe0 Home Activity",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 23
},
"id": 21,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(hass_state_change_total[5m]) * 60",
"legendFormat": "state changes",
"refId": "A"
}
],
"title": "State Changes / min",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 23
},
"id": 22,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(hass_automation_triggered_count_total[1h]) * 3600",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "Automation Triggers / hour",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 23
},
"id": 23,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "count(hass_light_brightness_percent > 0)",
"legendFormat": "lights on",
"refId": "A"
}
],
"title": "Lights On",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 29
},
"id": 30,
"title": "\ud83d\udd0b Device Health",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "orange",
"mode": "fixed"
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 30
},
"id": 31,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "count(hass_sensor_battery_percent < 20)",
"instant": true,
"refId": "A"
}
],
"title": "Low Battery Devices",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "fixed"
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 30
},
"id": 32,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "count(hass_entity_available == 0)",
"instant": true,
"refId": "A"
}
],
"title": "Unavailable Entities",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 16,
"x": 8,
"y": 30
},
"id": 33,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "hass_sensor_battery_percent < 30",
"legendFormat": "{{friendly_name}}",
"refId": "A"
}
],
"title": "Battery Levels < 30%",
"type": "timeseries"
}
],
"refresh": "2m",
"schemaVersion": 38,
"tags": [
"home-assistant",
"home"
],
"templating": {
"list": [
{
"allValue": ".*",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"includeAll": true,
"label": "Domain",
"multi": true,
"name": "domain",
"query": "label_values(hass_entity_available, domain)",
"refresh": 2,
"type": "query"
}
]
},
"timezone": "browser",
"title": "Home Assistant",
"uid": "ea94328a-821f-42e8-a419-64d531490bf3",
"version": 1
}
File diff suppressed because it is too large Load Diff
+286
View File
@@ -0,0 +1,286 @@
{
"id": 4409321175638016,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "reqps"
}
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 1,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(litellm_proxy_total_requests_metric_total[5m])",
"legendFormat": "{{model}} {{api_provider}}",
"refId": "A"
}
],
"title": "Requests / sec",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "red",
"mode": "fixed"
},
"unit": "reqps"
}
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(litellm_proxy_failed_requests_metric_total[5m])",
"legendFormat": "{{model}}",
"refId": "A"
}
],
"title": "Error Rate",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "s"
}
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 3,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "histogram_quantile(0.95, rate(litellm_request_total_latency_metric_bucket[5m]))",
"legendFormat": "p95 {{model}}",
"refId": "A"
}
],
"title": "Request Latency p95 (s)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "s"
}
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 4,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "histogram_quantile(0.95, rate(litellm_llm_api_latency_metric_bucket[5m]))",
"legendFormat": "p95 {{model}}",
"refId": "A"
}
],
"title": "LLM API Latency p95 (s)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "short"
}
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 5,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(litellm_input_tokens_metric_total[5m])",
"legendFormat": "input {{model}}",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "rate(litellm_output_tokens_metric_total[5m])",
"legendFormat": "output {{model}}",
"refId": "B"
}
],
"title": "Tokens / sec",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
},
"id": 6,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum by (model) (litellm_total_tokens_metric_total)",
"instant": true,
"legendFormat": "{{model}}",
"refId": "A"
}
],
"title": "Total Tokens by Model",
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "currencyUSD"
}
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 24
},
"id": 7,
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(litellm_spend_metric_total)",
"instant": true,
"refId": "A"
}
],
"title": "Cumulative Spend ($)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"unit": "s"
}
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 24
},
"id": 8,
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "histogram_quantile(0.95, rate(litellm_llm_api_time_to_first_token_metric_bucket[5m]))",
"instant": true,
"refId": "A"
}
],
"title": "Time to First Token p95 (s)",
"type": "stat"
}
],
"refresh": "1m",
"schemaVersion": 38,
"tags": [
"litellm",
"ai"
],
"timezone": "browser",
"title": "LiteLLM",
"uid": "d99330ba-28ab-4544-9a9a-0170d87aecc8",
"version": 1
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+614
View File
@@ -0,0 +1,614 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Dashboard to view port status and pps for TPLink TL-SG10x switches (e.g. TL-SG108E) collected via Prometheus with https://github.com/mad-ady/tl-sg-prometheus-exporter",
"editable": true,
"gnetId": 13760,
"graphTooltip": 0,
"id": 4422013479280640,
"iteration": 1611301415359,
"links": [],
"panels": [
{
"datasource": "PBFA97CFB590B2093",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "port"
},
"properties": [
{
"id": "custom.width",
"value": 73
}
]
},
{
"matcher": {
"id": "byName",
"options": "host"
},
"properties": [
{
"id": "custom.width",
"value": 115
}
]
},
{
"matcher": {
"id": "byName",
"options": "description"
},
"properties": [
{
"id": "custom.width",
"value": 231
}
]
},
{
"matcher": {
"id": "byName",
"options": "job"
},
"properties": [
{
"id": "custom.width",
"value": 121
}
]
},
{
"matcher": {
"id": "byName",
"options": "link state"
},
"properties": [
{
"id": "custom.width",
"value": 122
}
]
},
{
"matcher": {
"id": "byName",
"options": "link speed"
},
"properties": [
{
"id": "custom.width",
"value": 133
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 13,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"frameIndex": 5,
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "port"
}
]
},
"pluginVersion": "7.3.3",
"targets": [
{
"expr": "tplink_sg_switch_port_description_info{host=\"$host\"}",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
},
{
"expr": "tplink_sg_switch_port_linkState{host=\"$host\"} > 0",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "B"
},
{
"expr": "tplink_sg_switch_port_linkSpeed{host=\"$host\"} > 0",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Current link status",
"transformations": [
{
"id": "labelsToFields",
"options": {}
},
{
"id": "seriesToRows",
"options": {}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": true,
"instance": true
},
"indexByName": {
"Time": 0,
"Value": 6,
"description": 4,
"host": 2,
"instance": 5,
"job": 1,
"port": 3,
"tplink_sg_switch_port_linkSpeed": 8,
"tplink_sg_switch_port_linkState": 7
},
"renameByName": {
"Time": "",
"tplink_sg_switch_port_linkSpeed": "link speed",
"tplink_sg_switch_port_linkState": "link state"
}
}
},
{
"id": "seriesToColumns",
"options": {
"byField": "port"
}
}
],
"type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "PBFA97CFB590B2093",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 6,
"x": 13,
"y": 0
},
"hiddenSeries": false,
"id": 6,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": true,
"hideZero": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:855",
"alias": "/.*disabled/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "tplink_sg_switch_port_linkState{host=\"$host\", tplink_sg_switch_port_linkState=\"enabled\"}",
"interval": "",
"legendFormat": "{{port}} enabled",
"refId": "A"
},
{
"expr": "tplink_sg_switch_port_linkState{host=\"$host\", tplink_sg_switch_port_linkState=\"disabled\"}",
"interval": "",
"legendFormat": "{{port}} disabled",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Port status",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:667",
"format": "short",
"label": "- disabled / + enabled",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:668",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "PBFA97CFB590B2093",
"decimals": 2,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 5,
"x": 19,
"y": 0
},
"hiddenSeries": false,
"id": 13,
"legend": {
"avg": false,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "tplink_sg_collection_time",
"interval": "",
"legendFormat": "Scrape time",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Collection time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:1192",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:1193",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"port 1 TX": "light-yellow",
"port 7 TX": "light-red",
"port 8 RX": "orange",
"port 8 TX": "dark-orange"
},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "PBFA97CFB590B2093",
"decimals": 2,
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 10
},
"hiddenSeries": false,
"id": 4,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": true,
"hideZero": true,
"max": true,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:439",
"alias": "/.*TX.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "irate(tplink_sg_switch_port_packet_counters_packets_total{host=\"$host\", type=\"rxGoodPkt\" }[10m])",
"format": "time_series",
"interval": "",
"legendFormat": "port {{port}} RX",
"refId": "A"
},
{
"expr": "irate(tplink_sg_switch_port_packet_counters_packets_total{host=\"$host\", type=\"txGoodPkt\" }[10m])",
"format": "time_series",
"interval": "",
"legendFormat": "port {{port}} TX",
"refId": "B"
},
{
"expr": "irate(tplink_sg_switch_port_packet_counters_packets_total{host=\"$host\", type=\"rxBadPkt\" }[10m])",
"format": "time_series",
"interval": "",
"legendFormat": "port {{port}} RX errors",
"refId": "C"
},
{
"expr": "irate(tplink_sg_switch_port_packet_counters_packets_total{host=\"$host\", type=\"txBadPkt\" }[10m])",
"format": "time_series",
"interval": "",
"legendFormat": "port {{port}} TX errors",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Port traffic (pps)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:331",
"format": "short",
"label": "pps out (-) / in (+)",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:332",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Prometheus",
"value": "Prometheus"
},
"error": null,
"hide": 0,
"includeAll": false,
"label": "datasource",
"multi": false,
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"allValue": null,
"current": {},
"datasource": "$DS_PROMETHEUS",
"definition": "label_values(tplink_sg_switch_port_description_info, host)",
"error": null,
"hide": 0,
"includeAll": false,
"label": "Host",
"multi": false,
"name": "host",
"options": [],
"query": "label_values(tplink_sg_switch_port_description_info, host)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "TP-Link TL-SG10x",
"uid": "ff1fa19f-2dde-4671-9518-04c5b5c33df6",
"version": 1
}