18 lines
2.1 KiB
JSON
18 lines
2.1 KiB
JSON
{
|
|
"uid": "messenger-overview",
|
|
"title": "Messenger observability",
|
|
"tags": ["lab6", "messenger"],
|
|
"timezone": "browser",
|
|
"schemaVersion": 39,
|
|
"version": 1,
|
|
"refresh": "5s",
|
|
"time": {"from": "now-15m", "to": "now"},
|
|
"panels": [
|
|
{"id": 1, "type": "timeseries", "title": "HTTP requests per second", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "targets": [{"expr": "sum by (service_name) (rate(messenger_http_requests_total[1m]))", "legendFormat": "{{service_name}}", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []}},
|
|
{"id": 2, "type": "timeseries", "title": "HTTP 5xx per second", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, "targets": [{"expr": "sum(rate(messenger_http_requests_total{http_response_status_class=\"5xx\"}[1m]))", "legendFormat": "5xx", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []}},
|
|
{"id": 3, "type": "timeseries", "title": "HTTP request duration p95", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_http_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []}},
|
|
{"id": 4, "type": "timeseries", "title": "Attachment jobs by outcome", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 8}, "targets": [{"expr": "sum by (job_outcome) (rate(messenger_jobs_processed_total[1m]))", "legendFormat": "{{job_outcome}}", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "ops"}, "overrides": []}},
|
|
{"id": 5, "type": "timeseries", "title": "Worker processing duration p95", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 24, "x": 0, "y": 16}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_jobs_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []}}
|
|
]
|
|
}
|