feat(grafana): lab6 graph worker utilization and process resources

This commit is contained in:
Голиков Maximillian Антон
2026-11-22 08:36:15 +03:00
parent 7c57c46961
commit 4cb9461d69
+92
View File
@@ -814,6 +814,98 @@
]
}
}
},
{
"type": "timeseries",
"title": "Слоты worker — занято и всего",
"id": 13,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 48
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"unit": "short",
"min": 0
},
"overrides": []
},
"targets": [
{
"refId": "A",
"expr": "worker_busy_slots",
"legendFormat": "Занято · {{service_instance_id}}"
},
{
"refId": "B",
"expr": "worker_capacity_slots",
"legendFormat": "Всего · {{service_instance_id}}"
}
]
},
{
"type": "timeseries",
"title": "CPU процессов",
"id": 14,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 48
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"unit": "cores",
"min": 0
},
"overrides": []
},
"targets": [
{
"refId": "A",
"expr": "rate(process_cpu_seconds_total[$__rate_interval])",
"legendFormat": "{{service_name}} / {{service_instance_id}}"
}
]
},
{
"type": "timeseries",
"title": "Резидентная память процессов",
"id": 15,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 56
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"unit": "bytes",
"min": 0
},
"overrides": []
},
"targets": [
{
"refId": "A",
"expr": "process_resident_memory_bytes",
"legendFormat": "{{service_name}} / {{service_instance_id}}"
}
]
}
]
}