{ "uid": "messenger-observability", "title": "Messenger — Observability", "tags": ["messenger", "lab6"], "timezone": "browser", "schemaVersion": 39, "version": 1, "refresh": "5s", "editable": false, "time": { "from": "now-15m", "to": "now" }, "panels": [ { "id": 1, "title": "HTTP Requests / sec", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 0 }, "targets": [ { "refId": "A", "expr": "sum(rate(http_requests_total{service_name=\"messenger-api\"}[1m]))", "legendFormat": "Requests/sec" } ], "fieldConfig": { "defaults": { "unit": "reqps", "min": 0 }, "overrides": [] } }, { "id": 2, "title": "HTTP Error Ratio", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 0 }, "targets": [ { "refId": "A", "expr": "100 * (sum(rate(http_requests_total{service_name=\"messenger-api\",status_class=\"5xx\"}[1m])) or 0 * sum(rate(http_requests_total{service_name=\"messenger-api\"}[1m]))) / sum(rate(http_requests_total{service_name=\"messenger-api\"}[1m]))", "legendFormat": "5xx errors" } ], "fieldConfig": { "defaults": { "unit": "percent", "min": 0, "max": 100 }, "overrides": [] } }, { "id": 3, "title": "HTTP Duration p95", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 0 }, "targets": [ { "refId": "A", "expr": "histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket{service_name=\"messenger-api\"}[1m]) and ignoring(le) http_request_duration_seconds_bucket{service_name=\"messenger-api\",le=\"0.005\"}))", "legendFormat": "HTTP p95" } ], "fieldConfig": { "defaults": { "unit": "s", "min": 0 }, "overrides": [] } }, { "id": 4, "title": "Job Attempts / sec", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 8 }, "targets": [ { "refId": "A", "expr": "sum(rate(jobs_processed_total{service_name=\"messenger-worker\"}[1m]))", "legendFormat": "Attempts/sec" } ], "fieldConfig": { "defaults": { "unit": "ops", "min": 0 }, "overrides": [] } }, { "id": 5, "title": "Job Outcomes", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 8 }, "targets": [ { "refId": "A", "expr": "sum by (outcome) (jobs_processed_total{service_name=\"messenger-worker\"})", "legendFormat": "{{outcome}}" } ], "fieldConfig": { "defaults": { "unit": "short", "min": 0 }, "overrides": [] } }, { "id": 6, "title": "Job Duration p95", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 8 }, "targets": [ { "refId": "A", "expr": "histogram_quantile(0.95, sum by (le) (rate(job_processing_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m]) and ignoring(le) job_processing_duration_seconds_bucket{service_name=\"messenger-worker\",le=\"0.05\"}))", "legendFormat": "Worker p95" } ], "fieldConfig": { "defaults": { "unit": "s", "min": 0 }, "overrides": [] } } ] }