{ "uid": "aramesh-app", "title": "آرامش — اپلیکیشن و ترافیک", "tags": ["aramesh"], "timezone": "browser", "schemaVersion": 39, "refresh": "30s", "time": { "from": "now-6h", "to": "now" }, "panels": [ { "type": "timeseries", "title": "درخواست‌ها بر ثانیه (هر روتر Traefik)", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "sum(rate(traefik_service_requests_total[5m])) by (service)", "legendFormat": "{{ service }}" } ], "fieldConfig": { "defaults": { "unit": "reqps" }, "overrides": [] } }, { "type": "timeseries", "title": "خطاهای 5xx (بک‌اند)", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "sum(rate(http_request_duration_seconds_count{status=~\"5..\"}[5m]))", "legendFormat": "5xx/s" } ], "fieldConfig": { "defaults": { "unit": "reqps" }, "overrides": [] } }, { "type": "timeseries", "title": "تأخیر بک‌اند — p50 و p95", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "histogram_quantile(0.5, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p50" }, { "expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p95" } ], "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "type": "stat", "title": "سلامت /api/health (پروب عمق)", "gridPos": { "h": 8, "w": 4, "x": 12, "y": 8 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "probe_success{job=\"blackbox-internal-health\"}", "legendFormat": "health" } ], "fieldConfig": { "defaults": { "mappings": [ { "type": "value", "options": { "1": { "text": "سالم", "color": "green" }, "0": { "text": "خراب", "color": "red" } } } ], "min": 0, "max": 1 }, "overrides": [] } }, { "type": "stat", "title": "تازگی آخرین پشتیبان (ثانیه)", "gridPos": { "h": 8, "w": 4, "x": 16, "y": 8 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "time() - backup_success_time", "legendFormat": "age" } ], "fieldConfig": { "defaults": { "unit": "s", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 72000 }, { "color": "red", "value": 93600 } ] } }, "overrides": [] } }, { "type": "timeseries", "title": "اتصال‌های Postgres", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "datasource": { "type": "prometheus", "uid": "prom" }, "targets": [ { "expr": "sum(pg_stat_activity_count)", "legendFormat": "اتصال‌ها" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "logs", "title": "لاگ زندهٔ سرویس‌ها (Loki)", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "datasource": { "type": "loki", "uid": "loki" }, "targets": [ { "expr": "{service=~\"backend|traefik|chatbot|umami\"}" } ] } ] }