realtime-subs.json59 lines · main
| 1 | { |
| 2 | "uid": "briven-realtime-subs", |
| 3 | "title": "realtime · subscriptions", |
| 4 | "tags": ["briven", "realtime"], |
| 5 | "timezone": "browser", |
| 6 | "schemaVersion": 39, |
| 7 | "refresh": "30s", |
| 8 | "time": { "from": "now-1h", "to": "now" }, |
| 9 | "panels": [ |
| 10 | { |
| 11 | "id": 1, |
| 12 | "title": "active subscriptions", |
| 13 | "type": "timeseries", |
| 14 | "datasource": { "type": "prometheus", "uid": "Prometheus" }, |
| 15 | "gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 }, |
| 16 | "targets": [ |
| 17 | { |
| 18 | "expr": "briven_realtime_subscriptions_active" |
| 19 | } |
| 20 | ] |
| 21 | }, |
| 22 | { |
| 23 | "id": 2, |
| 24 | "title": "active LISTEN channels", |
| 25 | "type": "timeseries", |
| 26 | "datasource": { "type": "prometheus", "uid": "Prometheus" }, |
| 27 | "gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 }, |
| 28 | "targets": [ |
| 29 | { |
| 30 | "expr": "briven_realtime_channels_active" |
| 31 | } |
| 32 | ] |
| 33 | }, |
| 34 | { |
| 35 | "id": 3, |
| 36 | "title": "NOTIFY → fan-out rate (msg/s)", |
| 37 | "type": "timeseries", |
| 38 | "datasource": { "type": "prometheus", "uid": "Prometheus" }, |
| 39 | "gridPos": { "x": 0, "y": 8, "w": 12, "h": 8 }, |
| 40 | "targets": [ |
| 41 | { |
| 42 | "expr": "rate(briven_realtime_notifies_total[1m])" |
| 43 | } |
| 44 | ] |
| 45 | }, |
| 46 | { |
| 47 | "id": 4, |
| 48 | "title": "listener reconnect events (last 1h)", |
| 49 | "type": "logs", |
| 50 | "datasource": { "type": "loki", "uid": "Loki" }, |
| 51 | "gridPos": { "x": 12, "y": 8, "w": 12, "h": 8 }, |
| 52 | "targets": [ |
| 53 | { |
| 54 | "expr": "{service=\"realtime\"} |= \"realtime_listen_attached\"" |
| 55 | } |
| 56 | ] |
| 57 | } |
| 58 | ] |
| 59 | } |