github.com/m3db/m3@v1.5.0/integrations/grafana/m3query_dashboard.json (about) 1 { 2 "__inputs": [], 3 "__requires": [ 4 { 5 "type": "panel", 6 "id": "gauge", 7 "name": "Gauge", 8 "version": "" 9 }, 10 { 11 "type": "grafana", 12 "id": "grafana", 13 "name": "Grafana", 14 "version": "6.1.3" 15 }, 16 { 17 "type": "panel", 18 "id": "graph", 19 "name": "Graph", 20 "version": "" 21 }, 22 { 23 "type": "datasource", 24 "id": "prometheus", 25 "name": "Prometheus", 26 "version": "1.0.0" 27 } 28 ], 29 "annotations": { 30 "list": [ 31 { 32 "builtIn": 1, 33 "datasource": "-- Grafana --", 34 "enable": true, 35 "hide": true, 36 "iconColor": "rgba(0, 211, 255, 1)", 37 "name": "Annotations & Alerts", 38 "type": "dashboard" 39 } 40 ] 41 }, 42 "editable": true, 43 "gnetId": null, 44 "graphTooltip": 0, 45 "id": null, 46 "iteration": 1555019566552, 47 "links": [], 48 "panels": [ 49 { 50 "collapsed": false, 51 "gridPos": { 52 "h": 1, 53 "w": 24, 54 "x": 0, 55 "y": 0 56 }, 57 "id": 5, 58 "panels": [], 59 "title": "Query", 60 "type": "row" 61 }, 62 { 63 "cacheTimeout": null, 64 "datasource": "$datasource", 65 "gridPos": { 66 "h": 8, 67 "w": 4, 68 "x": 0, 69 "y": 1 70 }, 71 "id": 8, 72 "links": [], 73 "options": { 74 "maxValue": 100, 75 "minValue": 0, 76 "orientation": "auto", 77 "showThresholdLabels": false, 78 "showThresholdMarkers": false, 79 "thresholds": [ 80 { 81 "color": "#7EB26D", 82 "index": 0, 83 "value": null 84 }, 85 { 86 "color": "red", 87 "index": 1, 88 "value": 80 89 } 90 ], 91 "valueMappings": [ 92 { 93 "from": "", 94 "id": 1, 95 "operator": "", 96 "text": "Not Set", 97 "to": "", 98 "type": 1, 99 "value": "0" 100 } 101 ], 102 "valueOptions": { 103 "decimals": null, 104 "prefix": "", 105 "stat": "mean", 106 "suffix": "", 107 "unit": "none" 108 } 109 }, 110 "pluginVersion": "6.1.3", 111 "targets": [ 112 { 113 "expr": "coordinator_max_datapoints", 114 "format": "time_series", 115 "instant": false, 116 "intervalFactor": 1, 117 "refId": "A" 118 } 119 ], 120 "timeFrom": null, 121 "timeShift": null, 122 "title": "Max Datapoints", 123 "type": "gauge" 124 }, 125 { 126 "aliasColors": {}, 127 "bars": false, 128 "dashLength": 10, 129 "dashes": false, 130 "datasource": "$datasource", 131 "fill": 1, 132 "gridPos": { 133 "h": 8, 134 "w": 10, 135 "x": 4, 136 "y": 1 137 }, 138 "id": 2, 139 "legend": { 140 "avg": false, 141 "current": false, 142 "max": false, 143 "min": false, 144 "show": true, 145 "total": false, 146 "values": false 147 }, 148 "lines": true, 149 "linewidth": 1, 150 "links": [], 151 "nullPointMode": "null", 152 "paceLength": 10, 153 "percentage": false, 154 "pointradius": 2, 155 "points": false, 156 "renderer": "flot", 157 "seriesOverrides": [], 158 "spaceLength": 10, 159 "stack": false, 160 "steppedLine": false, 161 "targets": [ 162 { 163 "expr": "sum(rate(coordinator_fetch_success{source=\"$source\"}[1m])) by (source)", 164 "format": "time_series", 165 "intervalFactor": 1, 166 "legendFormat": "fetch_success", 167 "refId": "A" 168 } 169 ], 170 "thresholds": [], 171 "timeFrom": null, 172 "timeRegions": [], 173 "timeShift": null, 174 "title": "QPS", 175 "tooltip": { 176 "shared": true, 177 "sort": 0, 178 "value_type": "individual" 179 }, 180 "type": "graph", 181 "xaxis": { 182 "buckets": null, 183 "mode": "time", 184 "name": null, 185 "show": true, 186 "values": [] 187 }, 188 "yaxes": [ 189 { 190 "format": "short", 191 "label": null, 192 "logBase": 1, 193 "max": null, 194 "min": null, 195 "show": true 196 }, 197 { 198 "format": "short", 199 "label": null, 200 "logBase": 1, 201 "max": null, 202 "min": null, 203 "show": true 204 } 205 ], 206 "yaxis": { 207 "align": false, 208 "alignLevel": null 209 } 210 }, 211 { 212 "aliasColors": { 213 "errors_native": "dark-red", 214 "errors_per_second": "dark-red" 215 }, 216 "bars": false, 217 "dashLength": 10, 218 "dashes": false, 219 "datasource": "$datasource", 220 "fill": 1, 221 "gridPos": { 222 "h": 8, 223 "w": 10, 224 "x": 14, 225 "y": 1 226 }, 227 "id": 3, 228 "legend": { 229 "avg": false, 230 "current": false, 231 "max": false, 232 "min": false, 233 "show": true, 234 "total": false, 235 "values": false 236 }, 237 "lines": true, 238 "linewidth": 1, 239 "links": [], 240 "nullPointMode": "null", 241 "paceLength": 10, 242 "percentage": false, 243 "pointradius": 2, 244 "points": false, 245 "renderer": "flot", 246 "seriesOverrides": [], 247 "spaceLength": 10, 248 "stack": false, 249 "steppedLine": false, 250 "targets": [ 251 { 252 "expr": "sum(rate(coordinator_fetch_errors{source=\"$source\"}[1m])) by (source,code)", 253 "format": "time_series", 254 "intervalFactor": 1, 255 "legendFormat": "errors_per_second-{{code}}", 256 "refId": "A" 257 } 258 ], 259 "thresholds": [], 260 "timeFrom": null, 261 "timeRegions": [], 262 "timeShift": null, 263 "title": "Errors per second", 264 "tooltip": { 265 "shared": true, 266 "sort": 0, 267 "value_type": "individual" 268 }, 269 "type": "graph", 270 "xaxis": { 271 "buckets": null, 272 "mode": "time", 273 "name": null, 274 "show": true, 275 "values": [] 276 }, 277 "yaxes": [ 278 { 279 "format": "short", 280 "label": null, 281 "logBase": 1, 282 "max": null, 283 "min": null, 284 "show": true 285 }, 286 { 287 "format": "short", 288 "label": null, 289 "logBase": 1, 290 "max": null, 291 "min": null, 292 "show": true 293 } 294 ], 295 "yaxis": { 296 "align": false, 297 "alignLevel": null 298 } 299 }, 300 { 301 "aliasColors": {}, 302 "bars": false, 303 "dashLength": 10, 304 "dashes": false, 305 "datasource": "$datasource", 306 "fill": 1, 307 "gridPos": { 308 "h": 7, 309 "w": 24, 310 "x": 0, 311 "y": 9 312 }, 313 "id": 6, 314 "legend": { 315 "avg": false, 316 "current": false, 317 "max": false, 318 "min": false, 319 "show": true, 320 "total": false, 321 "values": false 322 }, 323 "lines": true, 324 "linewidth": 1, 325 "links": [], 326 "nullPointMode": "null", 327 "paceLength": 10, 328 "percentage": false, 329 "pointradius": 2, 330 "points": false, 331 "renderer": "flot", 332 "seriesOverrides": [], 333 "spaceLength": 10, 334 "stack": false, 335 "steppedLine": false, 336 "targets": [ 337 { 338 "expr": "avg(coordinator_fetch_success_latency{source=\"$source\", quantile=\"0.99\"})", 339 "format": "time_series", 340 "intervalFactor": 1, 341 "legendFormat": "p99", 342 "refId": "A" 343 }, 344 { 345 "expr": "avg(coordinator_fetch_success_latency{source=\"$source\", quantile=\"0.95\"})", 346 "format": "time_series", 347 "intervalFactor": 1, 348 "legendFormat": "p95", 349 "refId": "B" 350 }, 351 { 352 "expr": "avg(coordinator_fetch_success_latency{source=\"$source\", quantile=\"0.75\"})", 353 "format": "time_series", 354 "intervalFactor": 1, 355 "legendFormat": "p75", 356 "refId": "C" 357 } 358 ], 359 "thresholds": [], 360 "timeFrom": null, 361 "timeRegions": [], 362 "timeShift": null, 363 "title": "Request Latency", 364 "tooltip": { 365 "shared": true, 366 "sort": 0, 367 "value_type": "individual" 368 }, 369 "type": "graph", 370 "xaxis": { 371 "buckets": null, 372 "mode": "time", 373 "name": null, 374 "show": true, 375 "values": [] 376 }, 377 "yaxes": [ 378 { 379 "format": "s", 380 "label": null, 381 "logBase": 1, 382 "max": null, 383 "min": null, 384 "show": true 385 }, 386 { 387 "format": "short", 388 "label": null, 389 "logBase": 1, 390 "max": null, 391 "min": null, 392 "show": true 393 } 394 ], 395 "yaxis": { 396 "align": false, 397 "alignLevel": null 398 } 399 } 400 ], 401 "schemaVersion": 18, 402 "style": "dark", 403 "tags": [ 404 "disable-sync" 405 ], 406 "templating": { 407 "list": [ 408 { 409 "current": { 410 "text": "M3Query - Prometheus", 411 "value": "M3Query - Prometheus" 412 }, 413 "hide": 0, 414 "includeAll": false, 415 "label": null, 416 "multi": false, 417 "name": "datasource", 418 "options": [], 419 "query": "prometheus", 420 "refresh": 1, 421 "regex": "", 422 "skipUrlSync": false, 423 "type": "datasource" 424 }, 425 { 426 "allValue": null, 427 "current": {}, 428 "datasource": "$datasource", 429 "definition": "label_values(coordinator_fetch_success,source)", 430 "hide": 0, 431 "includeAll": false, 432 "label": null, 433 "multi": true, 434 "name": "source", 435 "options": [], 436 "query": "label_values(coordinator_fetch_success,source)", 437 "refresh": 1, 438 "regex": "", 439 "skipUrlSync": false, 440 "sort": 0, 441 "tagValuesQuery": "", 442 "tags": [], 443 "tagsQuery": "", 444 "type": "query", 445 "useTags": false 446 } 447 ] 448 }, 449 "time": { 450 "from": "now-30m", 451 "to": "now" 452 }, 453 "timepicker": { 454 "refresh_intervals": [ 455 "5s", 456 "10s", 457 "30s", 458 "1m", 459 "5m", 460 "15m", 461 "30m", 462 "1h", 463 "2h", 464 "1d" 465 ], 466 "time_options": [ 467 "5m", 468 "15m", 469 "1h", 470 "6h", 471 "12h", 472 "24h", 473 "2d", 474 "7d", 475 "30d" 476 ] 477 }, 478 "timezone": "browser", 479 "title": "M3Query Details", 480 "uid": "Wr8hCQ6ma", 481 "version": 1 482 }