github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/scheduler.yaml (about) 1 {{- /* 2 Generated from 'scheduler' from https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/main/manifests/grafana-dashboardDefinitions.yaml 3 Do not change in-place! In order to change this file first read following link: 4 https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack 5 */ -}} 6 {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} 7 {{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled .Values.kubeScheduler.enabled }} 8 apiVersion: v1 9 kind: ConfigMap 10 metadata: 11 namespace: {{ template "kube-prometheus-stack-grafana.namespace" . }} 12 name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "scheduler" | trunc 63 | trimSuffix "-" }} 13 annotations: 14 {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} 15 labels: 16 {{- if $.Values.grafana.sidecar.dashboards.label }} 17 {{ $.Values.grafana.sidecar.dashboards.label }}: {{ ternary $.Values.grafana.sidecar.dashboards.labelValue "1" (not (empty $.Values.grafana.sidecar.dashboards.labelValue)) | quote }} 18 {{- end }} 19 app: {{ template "kube-prometheus-stack.name" $ }}-grafana 20 {{ include "kube-prometheus-stack.labels" $ | indent 4 }} 21 data: 22 scheduler.json: |- 23 { 24 "__inputs": [ 25 26 ], 27 "__requires": [ 28 29 ], 30 "annotations": { 31 "list": [ 32 33 ] 34 }, 35 "editable": false, 36 "gnetId": null, 37 "graphTooltip": 0, 38 "hideControls": false, 39 "id": null, 40 "links": [ 41 42 ], 43 "refresh": "10s", 44 "rows": [ 45 { 46 "collapse": false, 47 "collapsed": false, 48 "panels": [ 49 { 50 "cacheTimeout": null, 51 "colorBackground": false, 52 "colorValue": false, 53 "colors": [ 54 "#299c46", 55 "rgba(237, 129, 40, 0.89)", 56 "#d44a3a" 57 ], 58 "datasource": "$datasource", 59 "format": "none", 60 "gauge": { 61 "maxValue": 100, 62 "minValue": 0, 63 "show": false, 64 "thresholdLabels": false, 65 "thresholdMarkers": true 66 }, 67 "gridPos": { 68 69 }, 70 "id": 2, 71 "interval": "1m", 72 "legend": { 73 "alignAsTable": true, 74 "rightSide": true 75 }, 76 "links": [ 77 78 ], 79 "mappingType": 1, 80 "mappingTypes": [ 81 { 82 "name": "value to text", 83 "value": 1 84 }, 85 { 86 "name": "range to text", 87 "value": 2 88 } 89 ], 90 "maxDataPoints": 100, 91 "nullPointMode": "connected", 92 "nullText": null, 93 "postfix": "", 94 "postfixFontSize": "50%", 95 "prefix": "", 96 "prefixFontSize": "50%", 97 "rangeMaps": [ 98 { 99 "from": "null", 100 "text": "N/A", 101 "to": "null" 102 } 103 ], 104 "span": 2, 105 "sparkline": { 106 "fillColor": "rgba(31, 118, 189, 0.18)", 107 "full": false, 108 "lineColor": "rgb(31, 120, 193)", 109 "show": false 110 }, 111 "tableColumn": "", 112 "targets": [ 113 { 114 "expr": "sum(up{cluster=\"$cluster\", job=\"kube-scheduler\"})", 115 "format": "time_series", 116 "intervalFactor": 2, 117 "legendFormat": "", 118 "refId": "A" 119 } 120 ], 121 "thresholds": "", 122 "title": "Up", 123 "tooltip": { 124 "shared": false 125 }, 126 "type": "singlestat", 127 "valueFontSize": "80%", 128 "valueMaps": [ 129 { 130 "op": "=", 131 "text": "N/A", 132 "value": "null" 133 } 134 ], 135 "valueName": "min" 136 }, 137 { 138 "aliasColors": { 139 140 }, 141 "bars": false, 142 "dashLength": 10, 143 "dashes": false, 144 "datasource": "$datasource", 145 "fill": 1, 146 "fillGradient": 0, 147 "gridPos": { 148 149 }, 150 "id": 3, 151 "interval": "1m", 152 "legend": { 153 "alignAsTable": true, 154 "avg": false, 155 "current": true, 156 "max": false, 157 "min": false, 158 "rightSide": true, 159 "show": true, 160 "sideWidth": null, 161 "total": false, 162 "values": true 163 }, 164 "lines": true, 165 "linewidth": 1, 166 "links": [ 167 168 ], 169 "nullPointMode": "null", 170 "percentage": false, 171 "pointradius": 5, 172 "points": false, 173 "renderer": "flot", 174 "repeat": null, 175 "seriesOverrides": [ 176 177 ], 178 "spaceLength": 10, 179 "span": 5, 180 "stack": false, 181 "steppedLine": false, 182 "targets": [ 183 { 184 "expr": "sum(rate(scheduler_e2e_scheduling_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)", 185 "format": "time_series", 186 "intervalFactor": 2, 187 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} e2e", 188 "refId": "A" 189 }, 190 { 191 "expr": "sum(rate(scheduler_binding_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)", 192 "format": "time_series", 193 "intervalFactor": 2, 194 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} binding", 195 "refId": "B" 196 }, 197 { 198 "expr": "sum(rate(scheduler_scheduling_algorithm_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)", 199 "format": "time_series", 200 "intervalFactor": 2, 201 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} scheduling algorithm", 202 "refId": "C" 203 }, 204 { 205 "expr": "sum(rate(scheduler_volume_scheduling_duration_seconds_count{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance)", 206 "format": "time_series", 207 "intervalFactor": 2, 208 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} volume", 209 "refId": "D" 210 } 211 ], 212 "thresholds": [ 213 214 ], 215 "timeFrom": null, 216 "timeShift": null, 217 "title": "Scheduling Rate", 218 "tooltip": { 219 "shared": false, 220 "sort": 0, 221 "value_type": "individual" 222 }, 223 "type": "graph", 224 "xaxis": { 225 "buckets": null, 226 "mode": "time", 227 "name": null, 228 "show": true, 229 "values": [ 230 231 ] 232 }, 233 "yaxes": [ 234 { 235 "format": "ops", 236 "label": null, 237 "logBase": 1, 238 "max": null, 239 "min": 0, 240 "show": true 241 }, 242 { 243 "format": "ops", 244 "label": null, 245 "logBase": 1, 246 "max": null, 247 "min": 0, 248 "show": true 249 } 250 ] 251 }, 252 { 253 "aliasColors": { 254 255 }, 256 "bars": false, 257 "dashLength": 10, 258 "dashes": false, 259 "datasource": "$datasource", 260 "fill": 1, 261 "fillGradient": 0, 262 "gridPos": { 263 264 }, 265 "id": 4, 266 "interval": "1m", 267 "legend": { 268 "alignAsTable": true, 269 "avg": false, 270 "current": true, 271 "max": false, 272 "min": false, 273 "rightSide": true, 274 "show": true, 275 "sideWidth": null, 276 "total": false, 277 "values": true 278 }, 279 "lines": true, 280 "linewidth": 1, 281 "links": [ 282 283 ], 284 "nullPointMode": "null", 285 "percentage": false, 286 "pointradius": 5, 287 "points": false, 288 "renderer": "flot", 289 "repeat": null, 290 "seriesOverrides": [ 291 292 ], 293 "spaceLength": 10, 294 "span": 5, 295 "stack": false, 296 "steppedLine": false, 297 "targets": [ 298 { 299 "expr": "histogram_quantile(0.99, sum(rate(scheduler_e2e_scheduling_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))", 300 "format": "time_series", 301 "intervalFactor": 2, 302 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} e2e", 303 "refId": "A" 304 }, 305 { 306 "expr": "histogram_quantile(0.99, sum(rate(scheduler_binding_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))", 307 "format": "time_series", 308 "intervalFactor": 2, 309 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} binding", 310 "refId": "B" 311 }, 312 { 313 "expr": "histogram_quantile(0.99, sum(rate(scheduler_scheduling_algorithm_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))", 314 "format": "time_series", 315 "intervalFactor": 2, 316 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} scheduling algorithm", 317 "refId": "C" 318 }, 319 { 320 "expr": "histogram_quantile(0.99, sum(rate(scheduler_volume_scheduling_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}[$__rate_interval])) by (cluster, instance, le))", 321 "format": "time_series", 322 "intervalFactor": 2, 323 "legendFormat": "{{`{{`}}cluster{{`}}`}} {{`{{`}}instance{{`}}`}} volume", 324 "refId": "D" 325 } 326 ], 327 "thresholds": [ 328 329 ], 330 "timeFrom": null, 331 "timeShift": null, 332 "title": "Scheduling latency 99th Quantile", 333 "tooltip": { 334 "shared": false, 335 "sort": 0, 336 "value_type": "individual" 337 }, 338 "type": "graph", 339 "xaxis": { 340 "buckets": null, 341 "mode": "time", 342 "name": null, 343 "show": true, 344 "values": [ 345 346 ] 347 }, 348 "yaxes": [ 349 { 350 "format": "s", 351 "label": null, 352 "logBase": 1, 353 "max": null, 354 "min": 0, 355 "show": true 356 }, 357 { 358 "format": "s", 359 "label": null, 360 "logBase": 1, 361 "max": null, 362 "min": 0, 363 "show": true 364 } 365 ] 366 } 367 ], 368 "repeat": null, 369 "repeatIteration": null, 370 "repeatRowId": null, 371 "showTitle": false, 372 "title": "Dashboard Row", 373 "titleSize": "h6", 374 "type": "row" 375 }, 376 { 377 "collapse": false, 378 "collapsed": false, 379 "panels": [ 380 { 381 "aliasColors": { 382 383 }, 384 "bars": false, 385 "dashLength": 10, 386 "dashes": false, 387 "datasource": "$datasource", 388 "fill": 1, 389 "fillGradient": 0, 390 "gridPos": { 391 392 }, 393 "id": 5, 394 "interval": "1m", 395 "legend": { 396 "alignAsTable": true, 397 "avg": false, 398 "current": false, 399 "max": false, 400 "min": false, 401 "rightSide": true, 402 "show": true, 403 "sideWidth": null, 404 "total": false, 405 "values": false 406 }, 407 "lines": true, 408 "linewidth": 1, 409 "links": [ 410 411 ], 412 "nullPointMode": "null", 413 "percentage": false, 414 "pointradius": 5, 415 "points": false, 416 "renderer": "flot", 417 "repeat": null, 418 "seriesOverrides": [ 419 420 ], 421 "spaceLength": 10, 422 "span": 4, 423 "stack": false, 424 "steppedLine": false, 425 "targets": [ 426 { 427 "expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\",code=~\"2..\"}[$__rate_interval]))", 428 "format": "time_series", 429 "intervalFactor": 2, 430 "legendFormat": "2xx", 431 "refId": "A" 432 }, 433 { 434 "expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\",code=~\"3..\"}[$__rate_interval]))", 435 "format": "time_series", 436 "intervalFactor": 2, 437 "legendFormat": "3xx", 438 "refId": "B" 439 }, 440 { 441 "expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\",code=~\"4..\"}[$__rate_interval]))", 442 "format": "time_series", 443 "intervalFactor": 2, 444 "legendFormat": "4xx", 445 "refId": "C" 446 }, 447 { 448 "expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\",code=~\"5..\"}[$__rate_interval]))", 449 "format": "time_series", 450 "intervalFactor": 2, 451 "legendFormat": "5xx", 452 "refId": "D" 453 } 454 ], 455 "thresholds": [ 456 457 ], 458 "timeFrom": null, 459 "timeShift": null, 460 "title": "Kube API Request Rate", 461 "tooltip": { 462 "shared": false, 463 "sort": 0, 464 "value_type": "individual" 465 }, 466 "type": "graph", 467 "xaxis": { 468 "buckets": null, 469 "mode": "time", 470 "name": null, 471 "show": true, 472 "values": [ 473 474 ] 475 }, 476 "yaxes": [ 477 { 478 "format": "ops", 479 "label": null, 480 "logBase": 1, 481 "max": null, 482 "min": 0, 483 "show": true 484 }, 485 { 486 "format": "ops", 487 "label": null, 488 "logBase": 1, 489 "max": null, 490 "min": 0, 491 "show": true 492 } 493 ] 494 }, 495 { 496 "aliasColors": { 497 498 }, 499 "bars": false, 500 "dashLength": 10, 501 "dashes": false, 502 "datasource": "$datasource", 503 "fill": 1, 504 "fillGradient": 0, 505 "gridPos": { 506 507 }, 508 "id": 6, 509 "interval": "1m", 510 "legend": { 511 "alignAsTable": true, 512 "avg": false, 513 "current": false, 514 "max": false, 515 "min": false, 516 "rightSide": true, 517 "show": true, 518 "sideWidth": null, 519 "total": false, 520 "values": false 521 }, 522 "lines": true, 523 "linewidth": 1, 524 "links": [ 525 526 ], 527 "nullPointMode": "null", 528 "percentage": false, 529 "pointradius": 5, 530 "points": false, 531 "renderer": "flot", 532 "repeat": null, 533 "seriesOverrides": [ 534 535 ], 536 "spaceLength": 10, 537 "span": 8, 538 "stack": false, 539 "steppedLine": false, 540 "targets": [ 541 { 542 "expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\", verb=\"POST\"}[$__rate_interval])) by (verb, url, le))", 543 "format": "time_series", 544 "intervalFactor": 2, 545 "legendFormat": "{{`{{`}}verb{{`}}`}} {{`{{`}}url{{`}}`}}", 546 "refId": "A" 547 } 548 ], 549 "thresholds": [ 550 551 ], 552 "timeFrom": null, 553 "timeShift": null, 554 "title": "Post Request Latency 99th Quantile", 555 "tooltip": { 556 "shared": false, 557 "sort": 0, 558 "value_type": "individual" 559 }, 560 "type": "graph", 561 "xaxis": { 562 "buckets": null, 563 "mode": "time", 564 "name": null, 565 "show": true, 566 "values": [ 567 568 ] 569 }, 570 "yaxes": [ 571 { 572 "format": "s", 573 "label": null, 574 "logBase": 1, 575 "max": null, 576 "min": 0, 577 "show": true 578 }, 579 { 580 "format": "s", 581 "label": null, 582 "logBase": 1, 583 "max": null, 584 "min": 0, 585 "show": true 586 } 587 ] 588 } 589 ], 590 "repeat": null, 591 "repeatIteration": null, 592 "repeatRowId": null, 593 "showTitle": false, 594 "title": "Dashboard Row", 595 "titleSize": "h6", 596 "type": "row" 597 }, 598 { 599 "collapse": false, 600 "collapsed": false, 601 "panels": [ 602 { 603 "aliasColors": { 604 605 }, 606 "bars": false, 607 "dashLength": 10, 608 "dashes": false, 609 "datasource": "$datasource", 610 "fill": 1, 611 "fillGradient": 0, 612 "gridPos": { 613 614 }, 615 "id": 7, 616 "interval": "1m", 617 "legend": { 618 "alignAsTable": true, 619 "avg": false, 620 "current": true, 621 "max": false, 622 "min": false, 623 "rightSide": true, 624 "show": true, 625 "sideWidth": null, 626 "total": false, 627 "values": true 628 }, 629 "lines": true, 630 "linewidth": 1, 631 "links": [ 632 633 ], 634 "nullPointMode": "null", 635 "percentage": false, 636 "pointradius": 5, 637 "points": false, 638 "renderer": "flot", 639 "repeat": null, 640 "seriesOverrides": [ 641 642 ], 643 "spaceLength": 10, 644 "span": 12, 645 "stack": false, 646 "steppedLine": false, 647 "targets": [ 648 { 649 "expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\", verb=\"GET\"}[$__rate_interval])) by (verb, url, le))", 650 "format": "time_series", 651 "intervalFactor": 2, 652 "legendFormat": "{{`{{`}}verb{{`}}`}} {{`{{`}}url{{`}}`}}", 653 "refId": "A" 654 } 655 ], 656 "thresholds": [ 657 658 ], 659 "timeFrom": null, 660 "timeShift": null, 661 "title": "Get Request Latency 99th Quantile", 662 "tooltip": { 663 "shared": false, 664 "sort": 0, 665 "value_type": "individual" 666 }, 667 "type": "graph", 668 "xaxis": { 669 "buckets": null, 670 "mode": "time", 671 "name": null, 672 "show": true, 673 "values": [ 674 675 ] 676 }, 677 "yaxes": [ 678 { 679 "format": "s", 680 "label": null, 681 "logBase": 1, 682 "max": null, 683 "min": 0, 684 "show": true 685 }, 686 { 687 "format": "s", 688 "label": null, 689 "logBase": 1, 690 "max": null, 691 "min": 0, 692 "show": true 693 } 694 ] 695 } 696 ], 697 "repeat": null, 698 "repeatIteration": null, 699 "repeatRowId": null, 700 "showTitle": false, 701 "title": "Dashboard Row", 702 "titleSize": "h6", 703 "type": "row" 704 }, 705 { 706 "collapse": false, 707 "collapsed": false, 708 "panels": [ 709 { 710 "aliasColors": { 711 712 }, 713 "bars": false, 714 "dashLength": 10, 715 "dashes": false, 716 "datasource": "$datasource", 717 "fill": 1, 718 "fillGradient": 0, 719 "gridPos": { 720 721 }, 722 "id": 8, 723 "interval": "1m", 724 "legend": { 725 "alignAsTable": true, 726 "avg": false, 727 "current": false, 728 "max": false, 729 "min": false, 730 "rightSide": true, 731 "show": true, 732 "sideWidth": null, 733 "total": false, 734 "values": false 735 }, 736 "lines": true, 737 "linewidth": 1, 738 "links": [ 739 740 ], 741 "nullPointMode": "null", 742 "percentage": false, 743 "pointradius": 5, 744 "points": false, 745 "renderer": "flot", 746 "repeat": null, 747 "seriesOverrides": [ 748 749 ], 750 "spaceLength": 10, 751 "span": 4, 752 "stack": false, 753 "steppedLine": false, 754 "targets": [ 755 { 756 "expr": "process_resident_memory_bytes{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}", 757 "format": "time_series", 758 "intervalFactor": 2, 759 "legendFormat": "{{`{{`}}instance{{`}}`}}", 760 "refId": "A" 761 } 762 ], 763 "thresholds": [ 764 765 ], 766 "timeFrom": null, 767 "timeShift": null, 768 "title": "Memory", 769 "tooltip": { 770 "shared": false, 771 "sort": 0, 772 "value_type": "individual" 773 }, 774 "type": "graph", 775 "xaxis": { 776 "buckets": null, 777 "mode": "time", 778 "name": null, 779 "show": true, 780 "values": [ 781 782 ] 783 }, 784 "yaxes": [ 785 { 786 "format": "bytes", 787 "label": null, 788 "logBase": 1, 789 "max": null, 790 "min": null, 791 "show": true 792 }, 793 { 794 "format": "bytes", 795 "label": null, 796 "logBase": 1, 797 "max": null, 798 "min": null, 799 "show": true 800 } 801 ] 802 }, 803 { 804 "aliasColors": { 805 806 }, 807 "bars": false, 808 "dashLength": 10, 809 "dashes": false, 810 "datasource": "$datasource", 811 "fill": 1, 812 "fillGradient": 0, 813 "gridPos": { 814 815 }, 816 "id": 9, 817 "interval": "1m", 818 "legend": { 819 "alignAsTable": true, 820 "avg": false, 821 "current": false, 822 "max": false, 823 "min": false, 824 "rightSide": true, 825 "show": true, 826 "sideWidth": null, 827 "total": false, 828 "values": false 829 }, 830 "lines": true, 831 "linewidth": 1, 832 "links": [ 833 834 ], 835 "nullPointMode": "null", 836 "percentage": false, 837 "pointradius": 5, 838 "points": false, 839 "renderer": "flot", 840 "repeat": null, 841 "seriesOverrides": [ 842 843 ], 844 "spaceLength": 10, 845 "span": 4, 846 "stack": false, 847 "steppedLine": false, 848 "targets": [ 849 { 850 "expr": "rate(process_cpu_seconds_total{cluster=\"$cluster\", job=\"kube-scheduler\", instance=~\"$instance\"}[$__rate_interval])", 851 "format": "time_series", 852 "intervalFactor": 2, 853 "legendFormat": "{{`{{`}}instance{{`}}`}}", 854 "refId": "A" 855 } 856 ], 857 "thresholds": [ 858 859 ], 860 "timeFrom": null, 861 "timeShift": null, 862 "title": "CPU usage", 863 "tooltip": { 864 "shared": false, 865 "sort": 0, 866 "value_type": "individual" 867 }, 868 "type": "graph", 869 "xaxis": { 870 "buckets": null, 871 "mode": "time", 872 "name": null, 873 "show": true, 874 "values": [ 875 876 ] 877 }, 878 "yaxes": [ 879 { 880 "format": "bytes", 881 "label": null, 882 "logBase": 1, 883 "max": null, 884 "min": 0, 885 "show": true 886 }, 887 { 888 "format": "bytes", 889 "label": null, 890 "logBase": 1, 891 "max": null, 892 "min": 0, 893 "show": true 894 } 895 ] 896 }, 897 { 898 "aliasColors": { 899 900 }, 901 "bars": false, 902 "dashLength": 10, 903 "dashes": false, 904 "datasource": "$datasource", 905 "fill": 1, 906 "fillGradient": 0, 907 "gridPos": { 908 909 }, 910 "id": 10, 911 "interval": "1m", 912 "legend": { 913 "alignAsTable": true, 914 "avg": false, 915 "current": false, 916 "max": false, 917 "min": false, 918 "rightSide": true, 919 "show": true, 920 "sideWidth": null, 921 "total": false, 922 "values": false 923 }, 924 "lines": true, 925 "linewidth": 1, 926 "links": [ 927 928 ], 929 "nullPointMode": "null", 930 "percentage": false, 931 "pointradius": 5, 932 "points": false, 933 "renderer": "flot", 934 "repeat": null, 935 "seriesOverrides": [ 936 937 ], 938 "spaceLength": 10, 939 "span": 4, 940 "stack": false, 941 "steppedLine": false, 942 "targets": [ 943 { 944 "expr": "go_goroutines{cluster=\"$cluster\", job=\"kube-scheduler\",instance=~\"$instance\"}", 945 "format": "time_series", 946 "intervalFactor": 2, 947 "legendFormat": "{{`{{`}}instance{{`}}`}}", 948 "refId": "A" 949 } 950 ], 951 "thresholds": [ 952 953 ], 954 "timeFrom": null, 955 "timeShift": null, 956 "title": "Goroutines", 957 "tooltip": { 958 "shared": false, 959 "sort": 0, 960 "value_type": "individual" 961 }, 962 "type": "graph", 963 "xaxis": { 964 "buckets": null, 965 "mode": "time", 966 "name": null, 967 "show": true, 968 "values": [ 969 970 ] 971 }, 972 "yaxes": [ 973 { 974 "format": "short", 975 "label": null, 976 "logBase": 1, 977 "max": null, 978 "min": null, 979 "show": true 980 }, 981 { 982 "format": "short", 983 "label": null, 984 "logBase": 1, 985 "max": null, 986 "min": null, 987 "show": true 988 } 989 ] 990 } 991 ], 992 "repeat": null, 993 "repeatIteration": null, 994 "repeatRowId": null, 995 "showTitle": false, 996 "title": "Dashboard Row", 997 "titleSize": "h6", 998 "type": "row" 999 } 1000 ], 1001 "schemaVersion": 14, 1002 "style": "dark", 1003 "tags": [ 1004 "kubernetes-mixin" 1005 ], 1006 "templating": { 1007 "list": [ 1008 { 1009 "current": { 1010 "text": "default", 1011 "value": "default" 1012 }, 1013 "hide": 0, 1014 "label": "Data Source", 1015 "name": "datasource", 1016 "options": [ 1017 1018 ], 1019 "query": "prometheus", 1020 "refresh": 1, 1021 "regex": "", 1022 "type": "datasource" 1023 }, 1024 { 1025 "allValue": null, 1026 "current": { 1027 1028 }, 1029 "datasource": "$datasource", 1030 "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }}, 1031 "includeAll": false, 1032 "label": "cluster", 1033 "multi": false, 1034 "name": "cluster", 1035 "options": [ 1036 1037 ], 1038 "query": "label_values(up{job=\"kube-scheduler\"}, cluster)", 1039 "refresh": 2, 1040 "regex": "", 1041 "sort": 1, 1042 "tagValuesQuery": "", 1043 "tags": [ 1044 1045 ], 1046 "tagsQuery": "", 1047 "type": "query", 1048 "useTags": false 1049 }, 1050 { 1051 "allValue": null, 1052 "current": { 1053 1054 }, 1055 "datasource": "$datasource", 1056 "hide": 0, 1057 "includeAll": true, 1058 "label": null, 1059 "multi": false, 1060 "name": "instance", 1061 "options": [ 1062 1063 ], 1064 "query": "label_values(up{job=\"kube-scheduler\", cluster=\"$cluster\"}, instance)", 1065 "refresh": 2, 1066 "regex": "", 1067 "sort": 1, 1068 "tagValuesQuery": "", 1069 "tags": [ 1070 1071 ], 1072 "tagsQuery": "", 1073 "type": "query", 1074 "useTags": false 1075 } 1076 ] 1077 }, 1078 "time": { 1079 "from": "now-1h", 1080 "to": "now" 1081 }, 1082 "timepicker": { 1083 "refresh_intervals": [ 1084 "5s", 1085 "10s", 1086 "30s", 1087 "1m", 1088 "5m", 1089 "15m", 1090 "30m", 1091 "1h", 1092 "2h", 1093 "1d" 1094 ], 1095 "time_options": [ 1096 "5m", 1097 "15m", 1098 "1h", 1099 "6h", 1100 "12h", 1101 "24h", 1102 "2d", 1103 "7d", 1104 "30d" 1105 ] 1106 }, 1107 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 1108 "title": "Kubernetes / Scheduler", 1109 "uid": "2e6b6a3b4bddf1427b3a55aa1311c656", 1110 "version": 0 1111 } 1112 {{- end }}