provisioning-platform/prov-ecosystem/crates/observability/dashboards/runtime.json

150 lines
3.3 KiB
JSON
Raw Normal View History

{
"dashboard": {
"title": "Runtime Performance",
"description": "Runtime and performance metrics for services",
"tags": ["runtime", "performance"],
"timezone": "browser",
"refresh": "30s",
"time": {
"from": "now-1h",
"to": "now"
},
"panels": [
{
"id": 1,
"title": "Memory Allocation",
"type": "graph",
"description": "Heap memory allocation over time",
"targets": [
{
"expr": "process_resident_memory_bytes / 1024 / 1024",
"refId": "A",
"legendFormat": "RSS Memory (MB)"
},
{
"expr": "process_virtual_memory_max_bytes / 1024 / 1024",
"refId": "B",
"legendFormat": "Virtual Memory (MB)"
}
],
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"unit": "short",
"decimals": 1
},
{
"id": 2,
"title": "CPU Usage",
"type": "graph",
"description": "CPU time consumption",
"targets": [
{
"expr": "rate(process_cpu_seconds_total[5m])",
"refId": "A",
"legendFormat": "CPU seconds/sec"
}
],
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"unit": "short",
"decimals": 3
},
{
"id": 3,
"title": "Goroutines/Threads",
"type": "graph",
"description": "Number of active goroutines",
"targets": [
{
"expr": "runtime_go_goroutines",
"refId": "A",
"legendFormat": "Goroutines"
}
],
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 8
},
"unit": "short",
"decimals": 0
},
{
"id": 4,
"title": "GC Pause Duration",
"type": "graph",
"description": "Garbage collection pause time",
"targets": [
{
"expr": "histogram_quantile(0.95, rate(runtime_gc_pause_ns_bucket[5m]))",
"refId": "A",
"legendFormat": "p95"
}
],
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"unit": "ns",
"decimals": 0
},
{
"id": 5,
"title": "Open File Descriptors",
"type": "stat",
"description": "Current open file descriptors",
"targets": [
{
"expr": "process_open_fds",
"refId": "A"
}
],
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 16
},
"unit": "short",
"decimals": 0
},
{
"id": 6,
"title": "Max Open FDs",
"type": "stat",
"description": "Maximum allowed file descriptors",
"targets": [
{
"expr": "process_max_fds",
"refId": "A"
}
],
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 16
},
"unit": "short",
"decimals": 0
}
],
"templating": {
"list": []
},
"version": 1
},
"overwrite": true
}