github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/velodrome/grafana-stack/dashboards/cache-monitoring.json (about) 1 { 2 "__inputs": [ 3 { 4 "name": "DS_PROMETHEUS", 5 "label": "prometheus", 6 "description": "", 7 "type": "datasource", 8 "pluginId": "prometheus", 9 "pluginName": "Prometheus" 10 } 11 ], 12 "__requires": [ 13 { 14 "type": "grafana", 15 "id": "grafana", 16 "name": "Grafana", 17 "version": "4.4.2" 18 }, 19 { 20 "type": "panel", 21 "id": "graph", 22 "name": "Graph", 23 "version": "" 24 }, 25 { 26 "type": "datasource", 27 "id": "prometheus", 28 "name": "Prometheus", 29 "version": "1.0.0" 30 } 31 ], 32 "annotations": { 33 "list": [] 34 }, 35 "editable": true, 36 "gnetId": null, 37 "graphTooltip": 0, 38 "hideControls": false, 39 "id": null, 40 "links": [], 41 "rows": [ 42 { 43 "collapse": false, 44 "height": 464, 45 "panels": [ 46 { 47 "aliasColors": { 48 "Action Cache Hit Rate": "#629E51", 49 "Action Cache hits": "#3F6833", 50 "Action Cache misses": "#C15C17", 51 "CAS Hit Rate": "#1F78C1", 52 "CAS hits": "#447EBC", 53 "CAS misses": "#EF843C", 54 "Content Addressed Storage hits": "#447EBC", 55 "Content Addressed Storage misses": "#890F02" 56 }, 57 "bars": false, 58 "dashLength": 10, 59 "dashes": false, 60 "datasource": "${DS_PROMETHEUS}", 61 "description": "Cache hit rates for Kubernetes's https://github.com/kubernetes/test-infra/tree/master/greenhouse deployment", 62 "fill": 1, 63 "id": 2, 64 "legend": { 65 "avg": false, 66 "current": false, 67 "max": false, 68 "min": false, 69 "show": true, 70 "total": false, 71 "values": false 72 }, 73 "lines": true, 74 "linewidth": 1, 75 "links": [], 76 "nullPointMode": "null", 77 "percentage": false, 78 "pointradius": 5, 79 "points": false, 80 "renderer": "flot", 81 "seriesOverrides": [ 82 { 83 "alias": "Action Cache hits", 84 "yaxis": 2 85 }, 86 { 87 "alias": "Content Addressed Storage hits", 88 "yaxis": 2 89 }, 90 { 91 "alias": "Content Addressed Storage Hit Rate", 92 "fill": 0, 93 "linewidth": 3, 94 "yaxis": 1, 95 "zindex": 1 96 }, 97 { 98 "alias": "Action Cache misses", 99 "yaxis": 2 100 }, 101 { 102 "alias": "Content Addressed Storage misses", 103 "yaxis": 2 104 }, 105 { 106 "alias": "Action Cache Hit Rate", 107 "fill": 0, 108 "linewidth": 3, 109 "yaxis": 1, 110 "zindex": 2 111 } 112 ], 113 "spaceLength": 10, 114 "span": 12, 115 "stack": false, 116 "steppedLine": false, 117 "targets": [ 118 { 119 "dsType": "influxdb", 120 "expr": "increase(bazel_cache_action_hits[30m])", 121 "format": "time_series", 122 "groupBy": [ 123 { 124 "params": [ 125 "$__interval" 126 ], 127 "type": "time" 128 }, 129 { 130 "params": [ 131 "null" 132 ], 133 "type": "fill" 134 } 135 ], 136 "intervalFactor": 4, 137 "legendFormat": "Action Cache hits", 138 "metric": "bazel_cache_action_hits", 139 "orderByTime": "ASC", 140 "policy": "default", 141 "refId": "A", 142 "resultFormat": "time_series", 143 "select": [ 144 [ 145 { 146 "params": [ 147 "value" 148 ], 149 "type": "field" 150 }, 151 { 152 "params": [], 153 "type": "mean" 154 } 155 ] 156 ], 157 "step": 240, 158 "tags": [] 159 }, 160 { 161 "expr": "increase(bazel_cache_cas_hits[30m])", 162 "format": "time_series", 163 "intervalFactor": 4, 164 "legendFormat": "Content Addressed Storage hits", 165 "metric": "bazel_cache_cas_hits", 166 "refId": "B", 167 "step": 240 168 }, 169 { 170 "expr": "increase(bazel_cache_action_misses[30m])", 171 "format": "time_series", 172 "intervalFactor": 4, 173 "legendFormat": "Action Cache misses", 174 "metric": "bazel_cache_action_misses", 175 "refId": "C", 176 "step": 240 177 }, 178 { 179 "expr": "increase(bazel_cache_cas_misses[30m])", 180 "format": "time_series", 181 "intervalFactor": 4, 182 "legendFormat": "Content Addressed Storage misses", 183 "metric": "bazel_cache_cas_misses", 184 "refId": "D", 185 "step": 240 186 }, 187 { 188 "expr": "clamp_min(increase(bazel_cache_action_hits[30m]) / (increase(bazel_cache_action_hits[30m]) + increase(bazel_cache_action_misses[30m])) * 100, 0)", 189 "format": "time_series", 190 "intervalFactor": 4, 191 "legendFormat": "Action Cache Hit Rate", 192 "refId": "E", 193 "step": 240 194 }, 195 { 196 "expr": "clamp_min(increase(bazel_cache_cas_hits[30m]) / (increase(bazel_cache_cas_hits[30m]) + increase(bazel_cache_cas_misses[30m])) * 100, 0)", 197 "format": "time_series", 198 "intervalFactor": 4, 199 "legendFormat": "Content Addressed Storage Hit Rate", 200 "refId": "F", 201 "step": 240 202 } 203 ], 204 "thresholds": [], 205 "timeFrom": null, 206 "timeShift": null, 207 "title": "Bazel Remote Cache Hits / Misses (thirty minute increase)", 208 "tooltip": { 209 "shared": true, 210 "sort": 0, 211 "value_type": "individual" 212 }, 213 "type": "graph", 214 "xaxis": { 215 "buckets": null, 216 "mode": "time", 217 "name": null, 218 "show": true, 219 "values": [] 220 }, 221 "yaxes": [ 222 { 223 "format": "percent", 224 "label": "hit rate (last thirty minutes)", 225 "logBase": 1, 226 "max": "100", 227 "min": "0", 228 "show": true 229 }, 230 { 231 "format": "none", 232 "label": "hits, misses (request increase in the last thirty minutes)", 233 "logBase": 1, 234 "max": null, 235 "min": "0", 236 "show": true 237 } 238 ] 239 } 240 ], 241 "repeat": null, 242 "repeatIteration": null, 243 "repeatRowId": null, 244 "showTitle": false, 245 "title": "Dashboard Row", 246 "titleSize": "h6" 247 }, 248 { 249 "collapse": false, 250 "height": 501, 251 "panels": [ 252 { 253 "aliasColors": {}, 254 "bars": false, 255 "dashLength": 10, 256 "dashes": false, 257 "datasource": "${DS_PROMETHEUS}", 258 "description": "Disk usage for Kubernetes's https://github.com/kubernetes/test-infra/tree/master/greenhouse deployment", 259 "fill": 1, 260 "id": 1, 261 "legend": { 262 "avg": false, 263 "current": false, 264 "max": false, 265 "min": false, 266 "show": true, 267 "total": false, 268 "values": false 269 }, 270 "lines": true, 271 "linewidth": 1, 272 "links": [], 273 "nullPointMode": "null", 274 "percentage": false, 275 "pointradius": 5, 276 "points": false, 277 "renderer": "flot", 278 "seriesOverrides": [ 279 { 280 "alias": "free", 281 "yaxis": 2 282 }, 283 { 284 "alias": "used", 285 "yaxis": 2 286 }, 287 { 288 "alias": "total disk size", 289 "yaxis": 2 290 }, 291 { 292 "alias": "percent free", 293 "fill": 0, 294 "linewidth": 3, 295 "yaxis": 1, 296 "zindex": 1 297 } 298 ], 299 "spaceLength": 10, 300 "span": 12, 301 "stack": false, 302 "steppedLine": false, 303 "targets": [ 304 { 305 "dsType": "influxdb", 306 "expr": "bazel_cache_disk_free", 307 "format": "time_series", 308 "groupBy": [ 309 { 310 "params": [ 311 "$__interval" 312 ], 313 "type": "time" 314 }, 315 { 316 "params": [ 317 "null" 318 ], 319 "type": "fill" 320 } 321 ], 322 "intervalFactor": 2, 323 "legendFormat": "free", 324 "metric": "bazel_cache_disk_free", 325 "orderByTime": "ASC", 326 "policy": "default", 327 "refId": "A", 328 "resultFormat": "time_series", 329 "select": [ 330 [ 331 { 332 "params": [ 333 "value" 334 ], 335 "type": "field" 336 }, 337 { 338 "params": [], 339 "type": "mean" 340 } 341 ] 342 ], 343 "step": 120, 344 "tags": [] 345 }, 346 { 347 "expr": "bazel_cache_disk_used", 348 "format": "time_series", 349 "intervalFactor": 2, 350 "legendFormat": "used", 351 "metric": "bazel_cache_disk_used", 352 "refId": "B", 353 "step": 120 354 }, 355 { 356 "expr": "bazel_cache_disk_total", 357 "format": "time_series", 358 "intervalFactor": 2, 359 "legendFormat": "total disk size", 360 "metric": "bazel_cache_disk_total", 361 "refId": "C", 362 "step": 120 363 }, 364 { 365 "expr": "bazel_cache_disk_free / bazel_cache_disk_total * 100", 366 "format": "time_series", 367 "intervalFactor": 2, 368 "legendFormat": "percent free", 369 "refId": "D", 370 "step": 120 371 } 372 ], 373 "thresholds": [], 374 "timeFrom": null, 375 "timeShift": null, 376 "title": "Bazel Remote Cache Disk Usage", 377 "tooltip": { 378 "shared": true, 379 "sort": 0, 380 "value_type": "individual" 381 }, 382 "type": "graph", 383 "xaxis": { 384 "buckets": null, 385 "mode": "time", 386 "name": null, 387 "show": true, 388 "values": [] 389 }, 390 "yaxes": [ 391 { 392 "format": "percent", 393 "label": "", 394 "logBase": 1, 395 "max": "100", 396 "min": "0", 397 "show": true 398 }, 399 { 400 "format": "decgbytes", 401 "label": "", 402 "logBase": 1, 403 "max": null, 404 "min": "0", 405 "show": true 406 } 407 ] 408 } 409 ], 410 "repeat": null, 411 "repeatIteration": null, 412 "repeatRowId": null, 413 "showTitle": false, 414 "title": "Dashboard Row", 415 "titleSize": "h6" 416 }, 417 { 418 "collapse": false, 419 "height": 359, 420 "panels": [ 421 { 422 "aliasColors": {}, 423 "bars": false, 424 "dashLength": 10, 425 "dashes": false, 426 "datasource": "${DS_PROMETHEUS}", 427 "fill": 1, 428 "id": 4, 429 "legend": { 430 "avg": false, 431 "current": false, 432 "max": false, 433 "min": false, 434 "show": true, 435 "total": false, 436 "values": false 437 }, 438 "lines": true, 439 "linewidth": 1, 440 "links": [], 441 "nullPointMode": "null", 442 "percentage": false, 443 "pointradius": 5, 444 "points": false, 445 "renderer": "flot", 446 "seriesOverrides": [ 447 { 448 "alias": "last evicted entry access age (hours)", 449 "yaxis": 2 450 } 451 ], 452 "spaceLength": 10, 453 "span": 12, 454 "stack": false, 455 "steppedLine": false, 456 "targets": [ 457 { 458 "dsType": "influxdb", 459 "expr": "bazel_cache_last_evicted_access_age", 460 "format": "time_series", 461 "groupBy": [ 462 { 463 "params": [ 464 "$__interval" 465 ], 466 "type": "time" 467 }, 468 { 469 "params": [ 470 "null" 471 ], 472 "type": "fill" 473 } 474 ], 475 "intervalFactor": 2, 476 "legendFormat": "last evicted entry access age (hours)", 477 "metric": "bazel_cache_last_evicted_access_age", 478 "orderByTime": "ASC", 479 "policy": "default", 480 "refId": "A", 481 "resultFormat": "time_series", 482 "select": [ 483 [ 484 { 485 "params": [ 486 "value" 487 ], 488 "type": "field" 489 }, 490 { 491 "params": [], 492 "type": "mean" 493 } 494 ] 495 ], 496 "step": 120, 497 "tags": [] 498 } 499 ], 500 "thresholds": [], 501 "timeFrom": null, 502 "timeShift": null, 503 "title": "Last Evicted Entry Access Age", 504 "tooltip": { 505 "shared": true, 506 "sort": 0, 507 "value_type": "individual" 508 }, 509 "type": "graph", 510 "xaxis": { 511 "buckets": null, 512 "mode": "time", 513 "name": null, 514 "show": true, 515 "values": [] 516 }, 517 "yaxes": [ 518 { 519 "format": "none", 520 "label": "", 521 "logBase": 1, 522 "max": null, 523 "min": null, 524 "show": false 525 }, 526 { 527 "format": "none", 528 "label": "hours", 529 "logBase": 1, 530 "max": null, 531 "min": "0", 532 "show": true 533 } 534 ] 535 } 536 ], 537 "repeat": null, 538 "repeatIteration": null, 539 "repeatRowId": null, 540 "showTitle": false, 541 "title": "Dashboard Row", 542 "titleSize": "h6" 543 }, 544 { 545 "collapse": false, 546 "height": 250, 547 "panels": [ 548 { 549 "aliasColors": { 550 "Number of Files Evicted": "#EAB839" 551 }, 552 "bars": false, 553 "dashLength": 10, 554 "dashes": false, 555 "datasource": "${DS_PROMETHEUS}", 556 "fill": 1, 557 "id": 3, 558 "legend": { 559 "avg": false, 560 "current": false, 561 "max": false, 562 "min": false, 563 "show": true, 564 "total": false, 565 "values": false 566 }, 567 "lines": true, 568 "linewidth": 1, 569 "links": [], 570 "nullPointMode": "null", 571 "percentage": false, 572 "pointradius": 5, 573 "points": false, 574 "renderer": "flot", 575 "seriesOverrides": [ 576 { 577 "alias": "Number of Files Evicted", 578 "yaxis": 2 579 } 580 ], 581 "spaceLength": 10, 582 "span": 12, 583 "stack": false, 584 "steppedLine": false, 585 "targets": [ 586 { 587 "dsType": "influxdb", 588 "expr": "increase(bazel_cache_evicted_files[3m])", 589 "format": "time_series", 590 "groupBy": [ 591 { 592 "params": [ 593 "$__interval" 594 ], 595 "type": "time" 596 }, 597 { 598 "params": [ 599 "null" 600 ], 601 "type": "fill" 602 } 603 ], 604 "intervalFactor": 2, 605 "legendFormat": "Number of Files Evicted", 606 "metric": "", 607 "orderByTime": "ASC", 608 "policy": "default", 609 "refId": "A", 610 "resultFormat": "time_series", 611 "select": [ 612 [ 613 { 614 "params": [ 615 "value" 616 ], 617 "type": "field" 618 }, 619 { 620 "params": [], 621 "type": "mean" 622 } 623 ] 624 ], 625 "step": 120, 626 "tags": [] 627 } 628 ], 629 "thresholds": [], 630 "timeFrom": null, 631 "timeShift": null, 632 "title": "Bazel Remote Cache File Evictions (three minute increase)", 633 "tooltip": { 634 "shared": true, 635 "sort": 0, 636 "value_type": "individual" 637 }, 638 "type": "graph", 639 "xaxis": { 640 "buckets": null, 641 "mode": "time", 642 "name": null, 643 "show": true, 644 "values": [] 645 }, 646 "yaxes": [ 647 { 648 "format": "short", 649 "label": null, 650 "logBase": 1, 651 "max": null, 652 "min": "0", 653 "show": true 654 }, 655 { 656 "format": "short", 657 "label": "number of files evicted in the last three minutes", 658 "logBase": 1, 659 "max": null, 660 "min": "0", 661 "show": true 662 } 663 ] 664 } 665 ], 666 "repeat": null, 667 "repeatIteration": null, 668 "repeatRowId": null, 669 "showTitle": false, 670 "title": "Dashboard Row", 671 "titleSize": "h6" 672 } 673 ], 674 "schemaVersion": 14, 675 "style": "dark", 676 "tags": [], 677 "templating": { 678 "list": [] 679 }, 680 "time": { 681 "from": "now-2d", 682 "to": "now" 683 }, 684 "timepicker": { 685 "refresh_intervals": [ 686 "5s", 687 "10s", 688 "30s", 689 "1m", 690 "5m", 691 "15m", 692 "30m", 693 "1h", 694 "2h", 695 "1d" 696 ], 697 "time_options": [ 698 "5m", 699 "15m", 700 "1h", 701 "6h", 702 "12h", 703 "24h", 704 "2d", 705 "7d", 706 "30d" 707 ] 708 }, 709 "timezone": "browser", 710 "title": "Cache Monitoring", 711 "version": 25 712 }