murmur.json187 lines, 6.6 KB
| 1 | { |
| 2 | "title": "Murmur", |
| 3 | "uid": "murmur", |
| 4 | "refresh": "5s", |
| 5 | "time": { "from": "now-5m", "to": "now" }, |
| 6 | "panels": [ |
| 7 | { |
| 8 | "title": "Requests a second, by route", "type": "timeseries", |
| 9 | "gridPos": { "x": 0, "y": 3, "w": 8, "h": 5 }, |
| 10 | "fieldConfig": { "defaults": { "unit": "reqps" } }, |
| 11 | "targets": [{ |
| 12 | "expr": "sum by (route) (rate(http_requests_total[20s]))", |
| 13 | "legendFormat": "{{route}}" |
| 14 | }] |
| 15 | }, |
| 16 | { |
| 17 | "title": "Processes up", "type": "stat", |
| 18 | "gridPos": { "x": 0, "y": 0, "w": 3, "h": 3 }, |
| 19 | "options": { "graphMode": "none" }, |
| 20 | "fieldConfig": { "defaults": { "unit": "none", "noValue": "0", |
| 21 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 22 | "targets": [{ |
| 23 | "expr": "sum(up)" |
| 24 | }] |
| 25 | }, |
| 26 | { |
| 27 | "title": "Requests", "type": "stat", |
| 28 | "gridPos": { "x": 3, "y": 0, "w": 3, "h": 3 }, |
| 29 | "options": { "graphMode": "none" }, |
| 30 | "fieldConfig": { "defaults": { "unit": "reqps", "noValue": "0", |
| 31 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 32 | "targets": [{ |
| 33 | "expr": "sum(rate(http_requests_total[20s]))" |
| 34 | }] |
| 35 | }, |
| 36 | { |
| 37 | "title": "Failed", "type": "stat", |
| 38 | "gridPos": { "x": 6, "y": 0, "w": 3, "h": 3 }, |
| 39 | "options": { "graphMode": "none" }, |
| 40 | "fieldConfig": { "defaults": { "unit": "percentunit", "noValue": "0", |
| 41 | "thresholds": { "steps": [{ "color": "text", "value": null }, { "color": "red", "value": 0.001 }] } } }, |
| 42 | "targets": [{ |
| 43 | "expr": "sum(rate(http_requests_total{status=~\"5..\"}[20s])) / sum(rate(http_requests_total[20s]))" |
| 44 | }] |
| 45 | }, |
| 46 | { |
| 47 | "title": "p99, all routes", "type": "stat", |
| 48 | "gridPos": { "x": 9, "y": 0, "w": 3, "h": 3 }, |
| 49 | "options": { "graphMode": "none" }, |
| 50 | "fieldConfig": { "defaults": { "unit": "s", "noValue": "0", |
| 51 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 52 | "targets": [{ |
| 53 | "expr": "histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket[20s])))" |
| 54 | }] |
| 55 | }, |
| 56 | { |
| 57 | "title": "Jobs waiting", "type": "stat", |
| 58 | "gridPos": { "x": 12, "y": 0, "w": 3, "h": 3 }, |
| 59 | "options": { "graphMode": "none" }, |
| 60 | "fieldConfig": { "defaults": { "unit": "none", "noValue": "0", |
| 61 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 62 | "targets": [{ |
| 63 | "expr": "max(murmur_queue_jobs{status=\"waiting\"})" |
| 64 | }] |
| 65 | }, |
| 66 | { |
| 67 | "title": "Likes to count", "type": "stat", |
| 68 | "gridPos": { "x": 15, "y": 0, "w": 3, "h": 3 }, |
| 69 | "options": { "graphMode": "none" }, |
| 70 | "fieldConfig": { "defaults": { "unit": "none", "noValue": "0", |
| 71 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 72 | "targets": [{ |
| 73 | "expr": "max(murmur_like_deltas)" |
| 74 | }] |
| 75 | }, |
| 76 | { |
| 77 | "title": "Fallen back", "type": "stat", |
| 78 | "gridPos": { "x": 18, "y": 0, "w": 3, "h": 3 }, |
| 79 | "options": { "graphMode": "none" }, |
| 80 | "fieldConfig": { "defaults": { "unit": "none", "noValue": "0", |
| 81 | "thresholds": { "steps": [{ "color": "text", "value": null }, { "color": "red", "value": 1 }] } } }, |
| 82 | "targets": [{ |
| 83 | "expr": "sum(murmur_ratelimit_fallback)" |
| 84 | }] |
| 85 | }, |
| 86 | { |
| 87 | "title": "Streams open", "type": "stat", |
| 88 | "gridPos": { "x": 21, "y": 0, "w": 3, "h": 3 }, |
| 89 | "options": { "graphMode": "none" }, |
| 90 | "fieldConfig": { "defaults": { "unit": "none", "noValue": "0", |
| 91 | "thresholds": { "steps": [{ "color": "text", "value": null }] } } }, |
| 92 | "targets": [{ |
| 93 | "expr": "sum(murmur_live_streams)" |
| 94 | }] |
| 95 | }, |
| 96 | { |
| 97 | "title": "Answers that are not a 2xx, a second", "type": "timeseries", |
| 98 | "gridPos": { "x": 8, "y": 3, "w": 8, "h": 5 }, |
| 99 | "fieldConfig": { "defaults": { "unit": "reqps" } }, |
| 100 | "targets": [{ |
| 101 | "expr": "sum by (status) (rate(http_requests_total{status!~\"2..\"}[20s]))", |
| 102 | "legendFormat": "{{status}}" |
| 103 | }] |
| 104 | }, |
| 105 | { |
| 106 | "title": "How long a request takes", "type": "timeseries", |
| 107 | "gridPos": { "x": 16, "y": 3, "w": 8, "h": 5 }, |
| 108 | "fieldConfig": { "defaults": { "unit": "s" } }, |
| 109 | "targets": [{ |
| 110 | "expr": "histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket[20s])))", |
| 111 | "legendFormat": "p99 {{route}}" |
| 112 | }, { |
| 113 | "expr": "histogram_quantile(0.5, sum by (le, route) (rate(http_request_duration_seconds_bucket[20s])))", |
| 114 | "legendFormat": "p50 {{route}}" |
| 115 | }] |
| 116 | }, |
| 117 | { |
| 118 | "title": "The queue", "type": "timeseries", |
| 119 | "gridPos": { "x": 0, "y": 8, "w": 8, "h": 5 }, |
| 120 | "fieldConfig": { "defaults": { "unit": "short" } }, |
| 121 | "targets": [{ |
| 122 | "expr": "max by (status) (murmur_queue_jobs)", |
| 123 | "legendFormat": "jobs {{status}}" |
| 124 | }, { |
| 125 | "expr": "max(murmur_like_deltas)", |
| 126 | "legendFormat": "likes not counted yet" |
| 127 | }] |
| 128 | }, |
| 129 | { |
| 130 | "title": "How long a job waits", "type": "timeseries", |
| 131 | "gridPos": { "x": 8, "y": 8, "w": 8, "h": 5 }, |
| 132 | "fieldConfig": { "defaults": { "unit": "s" } }, |
| 133 | "targets": [{ |
| 134 | "expr": "histogram_quantile(0.99, sum by (le) (rate(murmur_job_wait_seconds_bucket[20s])))", |
| 135 | "legendFormat": "p99 of the jobs that ran" |
| 136 | }, { |
| 137 | "expr": "histogram_quantile(0.5, sum by (le) (rate(murmur_job_wait_seconds_bucket[20s])))", |
| 138 | "legendFormat": "p50 of the jobs that ran" |
| 139 | }, { |
| 140 | "expr": "max(murmur_queue_oldest_seconds)", |
| 141 | "legendFormat": "the oldest job still waiting" |
| 142 | }] |
| 143 | }, |
| 144 | { |
| 145 | "title": "Postgres connections in use", "type": "timeseries", |
| 146 | "gridPos": { "x": 16, "y": 8, "w": 8, "h": 5 }, |
| 147 | "fieldConfig": { "defaults": { "unit": "short" } }, |
| 148 | "targets": [{ |
| 149 | "expr": "murmur_db_pool_in_use_connections", |
| 150 | "legendFormat": "{{instance}}" |
| 151 | }, { |
| 152 | "expr": "max(murmur_db_pool_max_connections{job=\"api\"})", |
| 153 | "legendFormat": "an API pool is full at" |
| 154 | }] |
| 155 | }, |
| 156 | { |
| 157 | "title": "A call to Redis, p99", "type": "timeseries", |
| 158 | "gridPos": { "x": 0, "y": 13, "w": 8, "h": 4 }, |
| 159 | "fieldConfig": { "defaults": { "unit": "s" } }, |
| 160 | "targets": [{ |
| 161 | "expr": "histogram_quantile(0.99, sum by (le, command) (rate(murmur_redis_call_seconds_bucket[20s])))", |
| 162 | "legendFormat": "{{command}}" |
| 163 | }] |
| 164 | }, |
| 165 | { |
| 166 | "title": "Calls to Redis that failed, a second", "type": "timeseries", |
| 167 | "gridPos": { "x": 8, "y": 13, "w": 8, "h": 4 }, |
| 168 | "fieldConfig": { "defaults": { "unit": "short" } }, |
| 169 | "targets": [{ |
| 170 | "expr": "sum by (instance, command) (rate(murmur_redis_errors_total[20s]))", |
| 171 | "legendFormat": "{{instance}} {{command}}" |
| 172 | }] |
| 173 | }, |
| 174 | { |
| 175 | "title": "Live streams", "type": "timeseries", |
| 176 | "gridPos": { "x": 16, "y": 13, "w": 8, "h": 4 }, |
| 177 | "fieldConfig": { "defaults": { "unit": "short" } }, |
| 178 | "targets": [{ |
| 179 | "expr": "murmur_live_streams", |
| 180 | "legendFormat": "open on {{instance}}" |
| 181 | }, { |
| 182 | "expr": "sum(murmur_live_dropped_total)", |
| 183 | "legendFormat": "dropped, since the start" |
| 184 | }] |
| 185 | } |
| 186 | ] |
| 187 | } |