UNPKG

@gati-framework/observability

Version:

Observability stack for Gati framework - Prometheus, Grafana, Loki, and Tracing

108 lines (107 loc) 2.74 kB
{ "dashboard": { "title": "Gati Application Overview", "tags": ["gati", "application", "overview"], "timezone": "browser", "panels": [ { "id": 1, "title": "HTTP Request Rate", "type": "graph", "targets": [ { "expr": "rate(gati_http_requests_total[5m])", "legendFormat": "{{method}} {{route}}" } ], "gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 } }, { "id": 2, "title": "HTTP Request Duration (p95)", "type": "graph", "targets": [ { "expr": "histogram_quantile(0.95, rate(gati_http_request_duration_seconds_bucket[5m]))", "legendFormat": "{{method}} {{route}}" } ], "gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 } }, { "id": 3, "title": "Active Connections", "type": "graph", "targets": [ { "expr": "gati_active_connections", "legendFormat": "Active Connections" } ], "gridPos": { "x": 0, "y": 8, "w": 8, "h": 8 } }, { "id": 4, "title": "Error Rate", "type": "graph", "targets": [ { "expr": "rate(gati_errors_total[5m])", "legendFormat": "{{type}} - {{route}}" } ], "gridPos": { "x": 8, "y": 8, "w": 8, "h": 8 } }, { "id": 5, "title": "Memory Usage", "type": "graph", "targets": [ { "expr": "process_resident_memory_bytes", "legendFormat": "Memory" } ], "gridPos": { "x": 16, "y": 8, "w": 8, "h": 8 } }, { "id": 6, "title": "CPU Usage", "type": "graph", "targets": [ { "expr": "rate(process_cpu_seconds_total[5m])", "legendFormat": "CPU" } ], "gridPos": { "x": 0, "y": 16, "w": 12, "h": 8 } }, { "id": 7, "title": "HTTP Status Codes", "type": "piechart", "targets": [ { "expr": "sum by (status_code) (rate(gati_http_requests_total[5m]))", "legendFormat": "{{status_code}}" } ], "gridPos": { "x": 12, "y": 16, "w": 12, "h": 8 } } ], "templating": { "list": [ { "name": "datasource", "type": "datasource", "query": "prometheus" } ] }, "time": { "from": "now-1h", "to": "now" }, "refresh": "10s" } }