Files
Messenger/deploy/grafana/provisioning/dashboards/messenger.json
T
vantablackTea 6fc6d977bf
CI / Go (build + vet + test) (push) Canceled after 0s
CI / Web (build + lint) (push) Canceled after 0s
added media fixes, search, push updates, pwa, metrics. preparing release 1.0
2026-09-27 23:26:15 +03:00

130 lines
4.4 KiB
JSON

{
"annotations": { "list": [] },
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"panels": [
{
"datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" },
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "fillOpacity": 15, "lineWidth": 2, "showPoints": "never" },
"unit": "reqps"
},
"overrides": []
},
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
"id": 1,
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } },
"targets": [
{
"expr": "sum(rate(messenger_http_requests_total{status=~\"2..\"}[5m]))",
"legendFormat": "2xx",
"refId": "A"
},
{
"expr": "sum(rate(messenger_http_requests_total{status=~\"4..\"}[5m]))",
"legendFormat": "4xx",
"refId": "B"
},
{
"expr": "sum(rate(messenger_http_requests_total{status=~\"5..\"}[5m]))",
"legendFormat": "5xx",
"refId": "C"
}
],
"title": "HTTP requests per second",
"type": "timeseries"
},
{
"datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" },
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never" },
"unit": "s"
},
"overrides": []
},
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
"id": 2,
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } },
"targets": [
{
"expr": "histogram_quantile(0.95, sum(rate(messenger_http_request_duration_seconds_bucket[5m])) by (le))",
"legendFormat": "p95",
"refId": "A"
},
{
"expr": "histogram_quantile(0.50, sum(rate(messenger_http_request_duration_seconds_bucket[5m])) by (le))",
"legendFormat": "p50",
"refId": "B"
}
],
"title": "Request latency",
"type": "timeseries"
},
{
"datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" },
"fieldConfig": {
"defaults": { "custom": { "drawStyle": "line", "fillOpacity": 15, "lineWidth": 2, "showPoints": "never" } },
"overrides": []
},
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 8 },
"id": 3,
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } },
"targets": [
{ "expr": "messenger_ws_connections", "legendFormat": "connections", "refId": "A" }
],
"title": "WebSocket connections",
"type": "timeseries"
},
{
"datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" },
"fieldConfig": {
"defaults": { "custom": { "drawStyle": "line", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never" } },
"overrides": []
},
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 8 },
"id": 4,
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } },
"targets": [
{ "expr": "go_goroutines", "legendFormat": "goroutines", "refId": "A" },
{ "expr": "process_resident_memory_bytes / 1024 / 1024", "legendFormat": "RSS MiB", "refId": "B" }
],
"title": "Runtime",
"type": "timeseries"
},
{
"datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" },
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "fillOpacity": 15, "lineWidth": 2, "showPoints": "never" },
"unit": "reqps"
},
"overrides": []
},
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 8 },
"id": 5,
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } },
"targets": [
{
"expr": "topk(8, sum(rate(messenger_http_requests_total[5m])) by (path))",
"legendFormat": "{{path}}",
"refId": "A"
}
],
"title": "Top endpoints",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 39,
"tags": ["messenger"],
"templating": { "list": [] },
"time": { "from": "now-1h", "to": "now" },
"timepicker": {},
"timezone": "",
"title": "Messenger",
"uid": "messenger-main",
"version": 1
}