{ "title": "Messenger overview", "uid": "messenger-overview", "timezone": "utc", "schemaVersion": 39, "version": 1, "time": {"from": "now-1h", "to": "now"}, "refresh": "10s", "panels": [ { "id": 1, "title": "HTTP requests/s by status class", "type": "timeseries", "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "sum(rate(http_requests_total{route!~\"/health.*\"}[1m])) by (status_class)", "legendFormat": "{{status_class}}"}], "fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []} }, { "id": 2, "title": "HTTP error ratio (5xx / all business requests)", "type": "stat", "gridPos": {"h": 8, "w": 6, "x": 12, "y": 0}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "sum(rate(http_requests_total{status_class=\"5xx\", route!~\"/health.*\"}[5m])) / sum(rate(http_requests_total{route!~\"/health.*\"}[5m]))"}], "fieldConfig": {"defaults": {"unit": "percentunit", "decimals": 2}, "overrides": []} }, { "id": 3, "title": "HTTP duration p50/p95/p99", "type": "timeseries", "gridPos": {"h": 8, "w": 6, "x": 18, "y": 0}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [ {"expr": "histogram_quantile(0.50, sum(rate(http_request_duration_seconds_bucket{route!~\"/health.*\"}[5m])) by (le))", "legendFormat": "p50"}, {"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket{route!~\"/health.*\"}[5m])) by (le))", "legendFormat": "p95"}, {"expr": "histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket{route!~\"/health.*\"}[5m])) by (le))", "legendFormat": "p99"} ], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []} }, { "id": 4, "title": "Jobs processed/s by outcome", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 0, "y": 8}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "sum(rate(jobs_processed_total[1m])) by (outcome)", "legendFormat": "{{outcome}}"}], "fieldConfig": {"defaults": {"unit": "ops"}, "overrides": []} }, { "id": 5, "title": "Job processing duration p95", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 8, "y": 8}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "histogram_quantile(0.95, sum(rate(job_processing_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p95 processing"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []} }, { "id": 6, "title": "Time to ready (upload -> ready) p95", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 16, "y": 8}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "histogram_quantile(0.95, sum(rate(time_to_ready_seconds_bucket[5m])) by (le))", "legendFormat": "p95 time-to-ready"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []} }, { "id": 7, "title": "Queue depth (pending jobs)", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 0, "y": 16}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "queue_backlog{metric=\"depth\"}", "legendFormat": "pending"}], "fieldConfig": {"defaults": {"unit": "short"}, "overrides": []} }, { "id": 8, "title": "Oldest pending job age", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 8, "y": 16}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "queue_backlog{metric=\"oldest_age_seconds\"}", "legendFormat": "oldest age"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []} }, { "id": 9, "title": "DB pool used/idle", "type": "timeseries", "gridPos": {"h": 8, "w": 8, "x": 16, "y": 16}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "db_pool_connections", "legendFormat": "{{service_instance_id}} {{state}}"}], "fieldConfig": {"defaults": {"unit": "short"}, "overrides": []} }, { "id": 10, "title": "Worker busy/capacity", "type": "timeseries", "gridPos": {"h": 8, "w": 12, "x": 0, "y": 24}, "datasource": {"type": "prometheus", "uid": "Prometheus"}, "targets": [{"expr": "worker_concurrency_slots", "legendFormat": "{{state}}"}], "fieldConfig": {"defaults": {"unit": "short"}, "overrides": []} }, { "id": 11, "title": "Recent API logs", "type": "logs", "gridPos": {"h": 8, "w": 12, "x": 12, "y": 24}, "datasource": {"type": "loki", "uid": "Loki"}, "targets": [{"expr": "{service_name=\"messenger-api\"}"}] } ] }