adds Python performance metrics

This commit is contained in:
Leon Morten Richter 2022-09-23 15:54:27 +02:00
parent a1333ce832
commit 8f1e2a2800
No known key found for this signature in database
GPG key ID: DC00D426A10A6E2B

View file

@ -5394,6 +5394,368 @@
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} }
},
{
"datasource": "-- Grafana --",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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": 6,
"x": 0,
"y": 164
},
"id": 96,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": "-- Grafana --",
"editorMode": "code",
"expr": "python_gc_collections_total{generation=\"0\"}",
"legendFormat": "{{__name__}}",
"range": true,
"refId": "A"
},
{
"datasource": "-- Grafana --",
"editorMode": "code",
"expr": "python_gc_objects_collected_total{generation=\"0\"}",
"hide": false,
"legendFormat": "{{__name__}}",
"range": true,
"refId": "B"
},
{
"datasource": "-- Grafana --",
"editorMode": "builder",
"expr": "python_gc_objects_uncollectable_total{generation=\"0\"}",
"hide": false,
"legendFormat": "{{__name__}}",
"range": true,
"refId": "C"
}
],
"title": "Python Garbage Collector",
"type": "timeseries"
},
{
"datasource": "-- Grafana --",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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": 6,
"x": 6,
"y": 164
},
"id": 98,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": "-- Grafana --",
"editorMode": "builder",
"expr": "process_open_fds",
"hide": false,
"legendFormat": "{{__name__}}",
"range": true,
"refId": "B"
}
],
"title": "Open File Descriptors",
"type": "timeseries"
},
{
"datasource": "-- Grafana --",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 164
},
"id": 100,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": "-- Grafana --",
"editorMode": "code",
"expr": "rate(process_cpu_seconds_total[4m])",
"legendFormat": "process_cpu_seconds_total",
"range": true,
"refId": "A"
}
],
"title": "CPU Seconds",
"type": "timeseries"
},
{
"datasource": "-- Grafana --",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 164
},
"id": 102,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": "-- Grafana --",
"editorMode": "builder",
"expr": "process_resident_memory_bytes",
"legendFormat": "{{__name__}}",
"range": true,
"refId": "A"
},
{
"datasource": "-- Grafana --",
"editorMode": "builder",
"expr": "process_virtual_memory_bytes",
"hide": false,
"legendFormat": "{{__name__}}",
"range": true,
"refId": "B"
}
],
"title": "Process Memory",
"type": "timeseries"
} }
], ],
"refresh": "10s", "refresh": "10s",
@ -5447,4 +5809,4 @@
"title": "Mikrotik MKTXP Exporter", "title": "Mikrotik MKTXP Exporter",
"uid": "0j4sdLm7z", "uid": "0j4sdLm7z",
"version": 7 "version": 7
} }