{ "uid": "messenger-overview", "title": "Messenger: API and image pipeline", "schemaVersion": 39, "version": 1, "refresh": "5s", "time": { "from": "now-15m", "to": "now" }, "panels": [ { "id": 1, "title": "Business RPS", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "sum(rate(messenger_http_requests_total[1m]))" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "fieldConfig": { "defaults": { "unit": "reqps" }, "overrides": [] } }, { "id": 2, "title": "Business 5xx ratio", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "sum(rate(messenger_http_requests_total{status_class=\"5xx\"}[1m])) / clamp_min(sum(rate(messenger_http_requests_total[1m])),0.001)" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "fieldConfig": { "defaults": { "unit": "percentunit" }, "overrides": [] } }, { "id": 3, "title": "HTTP latency quantiles", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "histogram_quantile(0.5, sum by (le) (rate(messenger_http_duration_seconds_bucket[1m])))", "legendFormat": "p50" }, { "refId": "B", "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_http_duration_seconds_bucket[1m])))", "legendFormat": "p95" }, { "refId": "C", "expr": "histogram_quantile(0.99, sum by (le) (rate(messenger_http_duration_seconds_bucket[1m])))", "legendFormat": "p99" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "id": 4, "title": "Job outcomes", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "sum by (outcome) (rate(messenger_jobs_total[1m]))" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "id": 5, "title": "Job p95 processing", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_job_duration_seconds_bucket[1m])))" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "id": 6, "title": "End-to-end p95 to ready", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_attachment_ready_duration_seconds_bucket[1m])))" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "id": 7, "title": "Outstanding jobs", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "max(messenger_queue_depth)" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "id": 8, "title": "Oldest outstanding age", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "max(messenger_queue_oldest_age_seconds)" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "id": 9, "title": "DB pool used", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "messenger_db_pool_used" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "id": 10, "title": "DB pool waiting", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "messenger_db_pool_waiting" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "id": 11, "title": "Worker busy/capacity", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "messenger_worker_busy / messenger_worker_capacity" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 40 }, "fieldConfig": { "defaults": { "unit": "percentunit" }, "overrides": [] } }, { "id": 12, "title": "Process resident memory", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "messenger_process_memory_bytes" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 40 }, "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] } }, { "id": 13, "title": "Process CPU (100%=1 core)", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "messenger_process_cpu_percent" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 48 }, "fieldConfig": { "defaults": { "unit": "percent" }, "overrides": [] } }, { "id": 14, "title": "Sampling decisions", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "sum by (decision) (rate(messenger_http_trace_decisions_total[1m]))" } ], "gridPos": { "h": 8, "w": 12, "x": 12, "y": 48 }, "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "id": 15, "title": "Collector failed span sends", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "refId": "A", "expr": "rate(otelcol_exporter_send_failed_spans[1m])" } ], "gridPos": { "h": 8, "w": 12, "x": 0, "y": 56 }, "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "id": 99, "title": "Structured application logs (trace_id and request_id)", "type": "logs", "datasource": { "type": "loki", "uid": "loki" }, "targets": [ { "refId": "A", "expr": "{service_name=~\"messenger-api|messenger-worker\"}" } ], "gridPos": { "h": 9, "w": 24, "x": 0, "y": 64 } } ] }