{ "annotations": { "list": [] }, "editable": false, "graphTooltip": 1, "panels": [ { "type": "row", "title": "API and edge", "id": 100, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "panels": [ { "type": "timeseries", "title": "API requests by route", "id": 1, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "targets": [ { "expr": "sum by (method, route) (rate(messenger_http_requests_total[1m]))", "legendFormat": "{{method}} {{route}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "reqps" }, "overrides": [] } }, { "type": "timeseries", "title": "API responses by status class", "id": 2, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 1 }, "targets": [ { "expr": "sum by (status_class) (rate(messenger_http_requests_total[1m]))", "legendFormat": "{{status_class}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "reqps" }, "overrides": [] } }, { "type": "timeseries", "title": "API latency p50 / p95 / p99 by route", "id": 3, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 9 }, "targets": [ { "expr": "histogram_quantile(0.50, sum by (le, method, route) (rate(messenger_http_request_duration_seconds_bucket[5m])))", "legendFormat": "p50 {{method}} {{route}}", "refId": "A" }, { "expr": "histogram_quantile(0.95, sum by (le, method, route) (rate(messenger_http_request_duration_seconds_bucket[5m])))", "legendFormat": "p95 {{method}} {{route}}", "refId": "B" }, { "expr": "histogram_quantile(0.99, sum by (le, method, route) (rate(messenger_http_request_duration_seconds_bucket[5m])))", "legendFormat": "p99 {{method}} {{route}}", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "type": "timeseries", "title": "API replicas and requests in flight", "id": 4, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 9 }, "targets": [ { "expr": "sum(up{job=\"messenger\"})", "legendFormat": "healthy replicas", "refId": "A" }, { "expr": "sum(messenger_http_requests_in_flight)", "legendFormat": "in flight", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "API CPU usage", "id": 5, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 17 }, "targets": [ { "expr": "sum(rate(process_cpu_seconds_total{job=\"messenger\"}[1m]))", "legendFormat": "API", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "cores" }, "overrides": [] } }, { "type": "timeseries", "title": "Nginx requests and connections", "id": 6, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 17 }, "targets": [ { "expr": "sum(rate(nginx_http_requests_total[1m]))", "legendFormat": "requests/s", "refId": "A" }, { "expr": "sum(nginx_connections_active)", "legendFormat": "active connections", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } } ] }, { "type": "row", "title": "PostgreSQL", "id": 101, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 25 }, "panels": [ { "type": "timeseries", "title": "PostgreSQL availability and connections", "id": 7, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 26 }, "targets": [ { "expr": "up{job=\"postgres\"}", "legendFormat": "up", "refId": "A" }, { "expr": "sum(pg_stat_activity_count{datname=\"messenger\"})", "legendFormat": "connections", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "PostgreSQL transactions", "id": 8, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 26 }, "targets": [ { "expr": "sum(rate(pg_stat_database_xact_commit{datname=\"messenger\"}[1m]))", "legendFormat": "commit/s", "refId": "A" }, { "expr": "sum(rate(pg_stat_database_xact_rollback{datname=\"messenger\"}[1m]))", "legendFormat": "rollback/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "type": "timeseries", "title": "PostgreSQL database size", "id": 9, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 34 }, "targets": [ { "expr": "pg_database_size_bytes{datname=\"messenger\"}", "legendFormat": "messenger", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] } }, { "type": "timeseries", "title": "Attachment jobs by status", "id": 10, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 34 }, "targets": [ { "expr": "messenger_attachment_jobs_count", "legendFormat": "{{status}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "Oldest attachment job", "id": 11, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 42 }, "targets": [ { "expr": "messenger_attachment_jobs_oldest_age_seconds", "legendFormat": "{{status}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "type": "timeseries", "title": "Pending outbox", "id": 12, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 42 }, "targets": [ { "expr": "messenger_outbox_pending", "legendFormat": "events", "refId": "A" }, { "expr": "messenger_outbox_oldest_pending_age_seconds", "legendFormat": "oldest age, seconds", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "unit", "value": "s" } ] } ] } } ] }, { "type": "row", "title": "Valkey and Redis", "id": 102, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 50 }, "panels": [ { "type": "timeseries", "title": "Valkey and Redis availability", "id": 13, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 51 }, "targets": [ { "expr": "up{job=\"valkey\"}", "legendFormat": "Valkey", "refId": "A" }, { "expr": "up{job=\"redis-broker\"}", "legendFormat": "Redis broker", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "Valkey and Redis memory", "id": 14, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 51 }, "targets": [ { "expr": "redis_memory_used_bytes{job=\"valkey\"}", "legendFormat": "Valkey", "refId": "A" }, { "expr": "redis_memory_used_bytes{job=\"redis-broker\"}", "legendFormat": "Redis broker", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] } }, { "type": "timeseries", "title": "Valkey cache hits and misses", "id": 15, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 59 }, "targets": [ { "expr": "sum(rate(redis_keyspace_hits_total{job=\"valkey\"}[1m]))", "legendFormat": "hits/s", "refId": "A" }, { "expr": "sum(rate(redis_keyspace_misses_total{job=\"valkey\"}[1m]))", "legendFormat": "misses/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "type": "timeseries", "title": "Valkey and Redis commands", "id": 16, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 59 }, "targets": [ { "expr": "sum(rate(redis_commands_processed_total{job=\"valkey\"}[1m]))", "legendFormat": "Valkey commands/s", "refId": "A" }, { "expr": "sum(rate(redis_commands_processed_total{job=\"redis-broker\"}[1m]))", "legendFormat": "Redis commands/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } } ] }, { "type": "row", "title": "Object storage", "id": 103, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 67 }, "panels": [ { "type": "timeseries", "title": "MinIO availability", "id": 17, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 68 }, "targets": [ { "expr": "up{job=\"minio\"}", "legendFormat": "up", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "MinIO objects and requests", "id": 18, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 68 }, "targets": [ { "expr": "sum(minio_cluster_usage_object_total)", "legendFormat": "objects", "refId": "A" }, { "expr": "sum(rate(minio_s3_requests_total[1m]))", "legendFormat": "requests/s", "refId": "B" }, { "expr": "sum(rate(minio_s3_requests_errors_total[1m]))", "legendFormat": "errors/s", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "MinIO storage", "id": 19, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 68 }, "targets": [ { "expr": "sum(minio_cluster_usage_total_bytes)", "legendFormat": "used", "refId": "A" }, { "expr": "sum(minio_cluster_capacity_usable_free_bytes)", "legendFormat": "free", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] } } ] }, { "type": "row", "title": "Attachment pipeline", "id": 104, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 76 }, "panels": [ { "type": "timeseries", "title": "Pipeline availability and consumers", "id": 20, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 77 }, "targets": [ { "expr": "sum(up{job=\"attachment-worker\"})", "legendFormat": "workers up", "refId": "A" }, { "expr": "sum(up{job=\"outbox-dispatcher\"})", "legendFormat": "dispatcher up", "refId": "B" }, { "expr": "max(redis_stream_group_consumers{job=\"redis-broker\",stream=\"attachment-jobs\",group=\"attachment-workers\"})", "legendFormat": "active consumers", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "Attachment upload results", "id": 21, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 77 }, "targets": [ { "expr": "sum by (result) (rate(messenger_attachment_uploads_total[1m]))", "legendFormat": "{{result}}", "refId": "A" }, { "expr": "sum(rate(messenger_attachment_upload_bytes_total[1m]))", "legendFormat": "bytes/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "unit", "value": "Bps" } ] } ] } }, { "type": "timeseries", "title": "Worker throughput by result", "id": 22, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 85 }, "targets": [ { "expr": "sum by (result) (rate(messenger_attachment_worker_jobs_total[1m]))", "legendFormat": "{{result}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "type": "timeseries", "title": "Worker processing latency p95", "id": 23, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 85 }, "targets": [ { "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_attachment_worker_job_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A" }, { "expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_attachment_upload_duration_seconds_bucket[5m])))", "legendFormat": "upload p95", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] } }, { "type": "timeseries", "title": "Worker jobs in flight", "id": 24, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 93 }, "targets": [ { "expr": "sum(messenger_attachment_worker_jobs_in_flight)", "legendFormat": "jobs", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "Retries and reclaimed deliveries", "id": 25, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 93 }, "targets": [ { "expr": "sum(rate(messenger_attachment_worker_retries_total[1m]))", "legendFormat": "retries/s", "refId": "A" }, { "expr": "sum(rate(messenger_attachment_worker_reclaimed_deliveries_total[1m]))", "legendFormat": "reclaimed/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "type": "timeseries", "title": "Outbox dispatcher", "id": 26, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 93 }, "targets": [ { "expr": "sum(rate(messenger_outbox_published_total[1m]))", "legendFormat": "published/s", "refId": "A" }, { "expr": "sum(rate(messenger_outbox_publish_failures_total[1m]))", "legendFormat": "failures/s", "refId": "B" }, { "expr": "sum(rate(messenger_outbox_recovered_leases_total[1m]))", "legendFormat": "recovered/s", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] } }, { "type": "timeseries", "title": "Redis Stream lag, PEL and DLQ", "id": 27, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 101 }, "targets": [ { "expr": "max(redis_stream_group_lag{job=\"redis-broker\",stream=\"attachment-jobs\",group=\"attachment-workers\"})", "legendFormat": "lag", "refId": "A" }, { "expr": "max(redis_stream_group_messages_pending{job=\"redis-broker\",stream=\"attachment-jobs\",group=\"attachment-workers\"})", "legendFormat": "PEL", "refId": "B" }, { "expr": "max(redis_stream_length{job=\"redis-broker\",stream=\"attachment-jobs-failed\"})", "legendFormat": "DLQ", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] } }, { "type": "timeseries", "title": "Redis Stream consumers", "id": 28, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 101 }, "targets": [ { "expr": "max(redis_stream_group_consumers{job=\"redis-broker\",stream=\"attachment-jobs\",group=\"attachment-workers\"})", "legendFormat": "consumers", "refId": "A" }, { "expr": "max(redis_stream_group_consumer_idle_seconds{job=\"redis-broker\",stream=\"attachment-jobs\",group=\"attachment-workers\"})", "legendFormat": "max idle, seconds", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "unit", "value": "s" } ] } ] } } ] }, { "type": "row", "title": "SLO and alerts", "id": 105, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 109 }, "panels": [ { "type": "timeseries", "title": "Business API availability", "id": 31, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 110 }, "targets": [ { "expr": "1 - (sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\",status_class=\"5xx\"}[5m])) or vector(0)) / clamp_min((sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\"}[5m])) or vector(0)), 0.000001)", "legendFormat": "availability", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "percentunit" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "API error-budget burn rate (99.5% SLO)", "id": 32, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 110 }, "targets": [ { "expr": "(sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\",status_class=\"5xx\"}[5m])) or vector(0)) / clamp_min((sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\"}[5m])) or vector(0)), 0.000001) / 0.005", "legendFormat": "5m burn", "refId": "A" }, { "expr": "(sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\",status_class=\"5xx\"}[1h])) or vector(0)) / clamp_min((sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\"}[1h])) or vector(0)), 0.000001) / 0.005", "legendFormat": "1h burn", "refId": "B" }, { "expr": "(sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\",status_class=\"5xx\"}[6h])) or vector(0)) / clamp_min((sum(rate(messenger_http_requests_total{route!~=\"/health/.*|/metrics\"}[6h])) or vector(0)), 0.000001) / 0.005", "legendFormat": "6h burn", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "Attachments ready within 30 seconds", "id": 33, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 118 }, "targets": [ { "expr": "1 - (clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[5m])) or vector(0)) - (sum(rate(messenger_attachment_time_to_ready_seconds_bucket{le=\"30\"}[5m])) or vector(0)), 0) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[5m])) or vector(0))) / clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[5m])) or vector(0)) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[5m])) or vector(0)), 0.000001)", "legendFormat": "ready in 30s", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "percentunit" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "Attachment ready-time error-budget burn", "id": 34, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 118 }, "targets": [ { "expr": "(clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[5m])) or vector(0)) - (sum(rate(messenger_attachment_time_to_ready_seconds_bucket{le=\"30\"}[5m])) or vector(0)), 0) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[5m])) or vector(0))) / clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[5m])) or vector(0)) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[5m])) or vector(0)), 0.000001) / 0.01", "legendFormat": "5m burn", "refId": "A" }, { "expr": "(clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[1h])) or vector(0)) - (sum(rate(messenger_attachment_time_to_ready_seconds_bucket{le=\"30\"}[1h])) or vector(0)), 0) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[1h])) or vector(0))) / clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[1h])) or vector(0)) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[1h])) or vector(0)), 0.000001) / 0.01", "legendFormat": "1h burn", "refId": "B" }, { "expr": "(clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[6h])) or vector(0)) - (sum(rate(messenger_attachment_time_to_ready_seconds_bucket{le=\"30\"}[6h])) or vector(0)), 0) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[6h])) or vector(0))) / clamp_min((sum(rate(messenger_attachment_time_to_ready_seconds_count[6h])) or vector(0)) + (sum(rate(messenger_attachment_worker_jobs_total{result=\"failed\"}[6h])) or vector(0)), 0.000001) / 0.01", "legendFormat": "6h burn", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "SLO alert state", "id": 35, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 126 }, "targets": [ { "expr": "max by (alertname, alertstate) (ALERTS{alertname=~\"MessengerAPIHighErrorBudgetBurn.*|AttachmentReadyHighErrorBudgetBurn.*|AttachmentQueueBacklogGrowing|AttachmentWorkerUnavailable\"})", "legendFormat": "{{alertname}} {{alertstate}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } } ] }, { "type": "row", "title": "Runtime resources", "id": 107, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 134 }, "panels": [ { "type": "timeseries", "title": "Process CPU by service", "id": 38, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 135 }, "targets": [ { "expr": "sum by (service_name) (rate(process_cpu_seconds_total[1m]))", "legendFormat": "{{service_name}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "cores" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "Go heap by service", "id": 39, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 135 }, "targets": [ { "expr": "sum by (service_name) (go_memstats_heap_alloc_bytes)", "legendFormat": "{{service_name}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "Database pool used and wait rate", "id": 40, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 143 }, "targets": [ { "expr": "sum by (service_name) (messenger_db_pool_connections{state=\"used\"})", "legendFormat": "{{service_name}} used", "refId": "A" }, { "expr": "sum by (service_name) (rate(messenger_db_pool_waited_total[5m]))", "legendFormat": "{{service_name}} waits/s", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "type": "timeseries", "title": "Worker saturation", "id": 41, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 143 }, "targets": [ { "expr": "sum(messenger_attachment_worker_jobs_in_flight)", "legendFormat": "busy", "refId": "A" }, { "expr": "sum(messenger_attachment_worker_capacity)", "legendFormat": "capacity", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } } ] }, { "type": "row", "title": "Logs and traces", "id": 106, "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 151 }, "panels": [ { "type": "logs", "title": "Correlated application logs", "id": 36, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 152 }, "datasource": { "type": "loki", "uid": "loki" }, "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "editorMode": "code", "expr": "{service_name=~\"messenger-.+\"} | json", "queryType": "range", "refId": "A" } ], "options": { "dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true } }, { "type": "traces", "title": "Recent application traces (TraceQL)", "id": 37, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 152 }, "datasource": { "type": "tempo", "uid": "tempo" }, "targets": [ { "datasource": { "type": "tempo", "uid": "tempo" }, "query": "{ resource.service.name =~ \"messenger-.*\" }", "queryType": "traceql", "refId": "A", "limit": 50, "tableType": "traces" } ], "options": { "showSpanFilters": true } }, { "type": "timeseries", "title": "Trace-derived service call rate", "id": 42, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 162 }, "targets": [ { "expr": "sum by (service, span_name) (rate(traces_spanmetrics_calls_total[5m]))", "legendFormat": "{{service}} {{span_name}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "ops" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "datasource": { "type": "prometheus", "uid": "prometheus" } }, { "type": "timeseries", "title": "Collector delivery failures and queue pressure", "id": 43, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 162 }, "targets": [ { "expr": "sum by (exporter) (rate(otelcol_exporter_send_failed_spans_total[5m]))", "legendFormat": "{{exporter}} spans failed/s", "refId": "A" }, { "expr": "sum by (exporter) (rate(otelcol_exporter_send_failed_log_records_total[5m]))", "legendFormat": "{{exporter}} logs failed/s", "refId": "B" }, { "expr": "max by (exporter) (otelcol_exporter_queue_size)", "legendFormat": "{{exporter}} queue", "refId": "C" }, { "expr": "max by (exporter) (otelcol_exporter_queue_capacity)", "legendFormat": "{{exporter}} capacity", "refId": "D" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "datasource": { "type": "prometheus", "uid": "prometheus" } } ] } ], "refresh": "5s", "schemaVersion": 41, "tags": [ "highload", "lab6", "observability", "slo" ], "templating": { "list": [] }, "time": { "from": "now-15m", "to": "now" }, "timezone": "browser", "title": "Messenger lab6 observability", "uid": "messenger-lab6", "version": 1, "links": [ { "asDropdown": false, "icon": "external link", "includeVars": true, "keepTime": true, "tags": [], "targetBlank": false, "title": "Explore logs and traces", "type": "link", "url": "/explore" }, { "asDropdown": false, "icon": "external link", "includeVars": false, "keepTime": false, "tags": [], "targetBlank": true, "title": "API runbook", "type": "link", "url": "https://gitea.privcloud.tech/dizi/mtusi2026lab6/src/branch/solution/bvt2303-plastinin/monitoring/runbooks/api-availability.md" }, { "asDropdown": false, "icon": "external link", "includeVars": false, "keepTime": false, "tags": [], "targetBlank": true, "title": "Pipeline runbook", "type": "link", "url": "https://gitea.privcloud.tech/dizi/mtusi2026lab6/src/branch/solution/bvt2303-plastinin/monitoring/runbooks/attachment-pipeline.md" } ] }