{ "annotations": { "list": [] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 0 }, "id": 1, "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "showThresholdLabels": false }, "targets": [{ "expr": "sum(rate(veza_gin_http_requests_total{job=\"veza-backend\",path=~\".*ws.*\"}[5m]))", "refId": "A" }], "title": "WebSocket upgrade rate", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 0 }, "id": 2, "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "showThresholdLabels": false }, "targets": [{ "expr": "up{job=\"veza-backend\"}", "refId": "A" }], "title": "Backend up", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "s", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 0 }, "id": 3, "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "showThresholdLabels": false }, "targets": [{ "expr": "histogram_quantile(0.95, sum(rate(veza_gin_http_request_duration_seconds_bucket{job=\"veza-backend\",path=~\".*ws.*\"}[5m])) by (le))", "refId": "A" }], "title": "WS upgrade p95 latency", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "reqps", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 }, "id": 4, "options": { "legend": { "displayMode": "list", "placement": "bottom" } }, "targets": [{ "expr": "sum(rate(veza_gin_http_requests_total{job=\"veza-backend\",path=~\".*ws.*\"}[5m]))", "legendFormat": "WebSocket upgrades", "refId": "A" }], "title": "Chat WebSocket connection rate", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 }, "id": 5, "options": { "legend": { "displayMode": "list", "placement": "bottom" } }, "targets": [{ "expr": "sum(rate(veza_gin_http_requests_total{job=\"veza-backend\",path=~\".*chat.*\"}[5m])) by (path)", "legendFormat": "{{path}}", "refId": "A" }], "title": "Chat API request rate", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 14 }, "id": 6, "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "showThresholdLabels": false }, "targets": [{ "expr": "veza_websocket_connections_active{job=\"veza-backend\"}", "refId": "A" }], "title": "WS connections active", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "unit": "reqps", "color": { "mode": "palette-classic" } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 8, "y": 14 }, "id": 7, "options": { "legend": { "displayMode": "list", "placement": "bottom" } }, "targets": [{ "expr": "sum(rate(veza_websocket_messages_total{job=\"veza-backend\"}[5m])) by (type)", "legendFormat": "{{type}}", "refId": "A" }], "title": "Messages/s by type", "type": "timeseries" } ], "refresh": "30s", "schemaVersion": 38, "style": "dark", "tags": ["veza", "chat"], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Veza Chat Overview", "uid": "veza-chat-overview", "version": 1 }