continue cpu and mem graphs for same process when pid changes

main
Rhys Bailey 2023-03-11 15:05:56 +11:00
parent 0ccee873ea
commit 24d11d5e77
1 changed files with 118 additions and 9 deletions

View File

@ -1484,12 +1484,12 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "frigate_cpu_usage_percent{type=~\"Camera|Detector\"}",
"editorMode": "code",
"expr": "sum by(name, process) (frigate_cpu_usage_percent{type=~\"Camera|Detector\"})",
"hide": false,
"legendFormat": "{{name}} {{process}} {{pid}}",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "CPU Usage",
@ -1540,7 +1540,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1633,7 +1634,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1678,8 +1680,8 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "frigate_mem_usage_percent{type=~\"Camera|Detector\"}",
"editorMode": "code",
"expr": "sum by(name, process) (frigate_mem_usage_percent{type=~\"Camera|Detector\"})",
"hide": false,
"legendFormat": "{{name}} {{process}} {{pid}}",
"range": true,
@ -1688,6 +1690,113 @@
],
"title": "Memory Usage",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 60
},
"id": 37,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "count(frigate_cpu_usage_percent)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "count(frigate_mem_usage_percent)",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "B"
}
],
"title": "Number Processes",
"type": "timeseries"
}
],
"refresh": "10s",
@ -1699,13 +1808,13 @@
"list": []
},
"time": {
"from": "now-24h",
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Frigate",
"uid": "89VouM14z",
"version": 26,
"version": 28,
"weekStart": ""
}