github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-cluster.yaml (about) 1 {{- /* 2 Generated from 'k8s-resources-cluster' 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 }} 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" $) "k8s-resources-cluster" | 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 k8s-resources-cluster.json: |- 23 { 24 "annotations": { 25 "list": [ 26 27 ] 28 }, 29 "editable": true, 30 "gnetId": null, 31 "graphTooltip": 0, 32 "hideControls": false, 33 "links": [ 34 35 ], 36 "refresh": "10s", 37 "rows": [ 38 { 39 "collapse": false, 40 "height": "100px", 41 "panels": [ 42 { 43 "aliasColors": { 44 45 }, 46 "bars": false, 47 "dashLength": 10, 48 "dashes": false, 49 "datasource": "$datasource", 50 "fill": 1, 51 "format": "percentunit", 52 "id": 1, 53 "interval": "1m", 54 "legend": { 55 "alignAsTable": true, 56 "avg": false, 57 "current": false, 58 "max": false, 59 "min": false, 60 "rightSide": true, 61 "show": true, 62 "total": false, 63 "values": false 64 }, 65 "lines": true, 66 "linewidth": 1, 67 "links": [ 68 69 ], 70 "nullPointMode": "null as zero", 71 "percentage": false, 72 "pointradius": 5, 73 "points": false, 74 "renderer": "flot", 75 "seriesOverrides": [ 76 77 ], 78 "spaceLength": 10, 79 "span": 2, 80 "stack": false, 81 "steppedLine": false, 82 "targets": [ 83 { 84 "expr": "cluster:node_cpu:ratio_rate5m{cluster=\"$cluster\"}", 85 "format": "time_series", 86 "instant": true, 87 "intervalFactor": 2, 88 "refId": "A" 89 } 90 ], 91 "thresholds": "70,80", 92 "timeFrom": null, 93 "timeShift": null, 94 "title": "CPU Utilisation", 95 "tooltip": { 96 "shared": false, 97 "sort": 2, 98 "value_type": "individual" 99 }, 100 "type": "singlestat", 101 "xaxis": { 102 "buckets": null, 103 "mode": "time", 104 "name": null, 105 "show": true, 106 "values": [ 107 108 ] 109 }, 110 "yaxes": [ 111 { 112 "format": "short", 113 "label": null, 114 "logBase": 1, 115 "max": null, 116 "min": 0, 117 "show": true 118 }, 119 { 120 "format": "short", 121 "label": null, 122 "logBase": 1, 123 "max": null, 124 "min": null, 125 "show": false 126 } 127 ] 128 }, 129 { 130 "aliasColors": { 131 132 }, 133 "bars": false, 134 "dashLength": 10, 135 "dashes": false, 136 "datasource": "$datasource", 137 "fill": 1, 138 "format": "percentunit", 139 "id": 2, 140 "interval": "1m", 141 "legend": { 142 "alignAsTable": true, 143 "avg": false, 144 "current": false, 145 "max": false, 146 "min": false, 147 "rightSide": true, 148 "show": true, 149 "total": false, 150 "values": false 151 }, 152 "lines": true, 153 "linewidth": 1, 154 "links": [ 155 156 ], 157 "nullPointMode": "null as zero", 158 "percentage": false, 159 "pointradius": 5, 160 "points": false, 161 "renderer": "flot", 162 "seriesOverrides": [ 163 164 ], 165 "spaceLength": 10, 166 "span": 2, 167 "stack": false, 168 "steppedLine": false, 169 "targets": [ 170 { 171 "expr": "sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{job=\"kube-state-metrics\",resource=\"cpu\",cluster=\"$cluster\"})", 172 "format": "time_series", 173 "instant": true, 174 "intervalFactor": 2, 175 "refId": "A" 176 } 177 ], 178 "thresholds": "70,80", 179 "timeFrom": null, 180 "timeShift": null, 181 "title": "CPU Requests Commitment", 182 "tooltip": { 183 "shared": false, 184 "sort": 2, 185 "value_type": "individual" 186 }, 187 "type": "singlestat", 188 "xaxis": { 189 "buckets": null, 190 "mode": "time", 191 "name": null, 192 "show": true, 193 "values": [ 194 195 ] 196 }, 197 "yaxes": [ 198 { 199 "format": "short", 200 "label": null, 201 "logBase": 1, 202 "max": null, 203 "min": 0, 204 "show": true 205 }, 206 { 207 "format": "short", 208 "label": null, 209 "logBase": 1, 210 "max": null, 211 "min": null, 212 "show": false 213 } 214 ] 215 }, 216 { 217 "aliasColors": { 218 219 }, 220 "bars": false, 221 "dashLength": 10, 222 "dashes": false, 223 "datasource": "$datasource", 224 "fill": 1, 225 "format": "percentunit", 226 "id": 3, 227 "interval": "1m", 228 "legend": { 229 "alignAsTable": true, 230 "avg": false, 231 "current": false, 232 "max": false, 233 "min": false, 234 "rightSide": true, 235 "show": true, 236 "total": false, 237 "values": false 238 }, 239 "lines": true, 240 "linewidth": 1, 241 "links": [ 242 243 ], 244 "nullPointMode": "null as zero", 245 "percentage": false, 246 "pointradius": 5, 247 "points": false, 248 "renderer": "flot", 249 "seriesOverrides": [ 250 251 ], 252 "spaceLength": 10, 253 "span": 2, 254 "stack": false, 255 "steppedLine": false, 256 "targets": [ 257 { 258 "expr": "sum(namespace_cpu:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{job=\"kube-state-metrics\",resource=\"cpu\",cluster=\"$cluster\"})", 259 "format": "time_series", 260 "instant": true, 261 "intervalFactor": 2, 262 "refId": "A" 263 } 264 ], 265 "thresholds": "70,80", 266 "timeFrom": null, 267 "timeShift": null, 268 "title": "CPU Limits Commitment", 269 "tooltip": { 270 "shared": false, 271 "sort": 2, 272 "value_type": "individual" 273 }, 274 "type": "singlestat", 275 "xaxis": { 276 "buckets": null, 277 "mode": "time", 278 "name": null, 279 "show": true, 280 "values": [ 281 282 ] 283 }, 284 "yaxes": [ 285 { 286 "format": "short", 287 "label": null, 288 "logBase": 1, 289 "max": null, 290 "min": 0, 291 "show": true 292 }, 293 { 294 "format": "short", 295 "label": null, 296 "logBase": 1, 297 "max": null, 298 "min": null, 299 "show": false 300 } 301 ] 302 }, 303 { 304 "aliasColors": { 305 306 }, 307 "bars": false, 308 "dashLength": 10, 309 "dashes": false, 310 "datasource": "$datasource", 311 "fill": 1, 312 "format": "percentunit", 313 "id": 4, 314 "interval": "1m", 315 "legend": { 316 "alignAsTable": true, 317 "avg": false, 318 "current": false, 319 "max": false, 320 "min": false, 321 "rightSide": true, 322 "show": true, 323 "total": false, 324 "values": false 325 }, 326 "lines": true, 327 "linewidth": 1, 328 "links": [ 329 330 ], 331 "nullPointMode": "null as zero", 332 "percentage": false, 333 "pointradius": 5, 334 "points": false, 335 "renderer": "flot", 336 "seriesOverrides": [ 337 338 ], 339 "spaceLength": 10, 340 "span": 2, 341 "stack": false, 342 "steppedLine": false, 343 "targets": [ 344 { 345 "expr": "1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=\"$cluster\"}) / sum(node_memory_MemTotal_bytes{job=\"node-exporter\",cluster=\"$cluster\"})", 346 "format": "time_series", 347 "instant": true, 348 "intervalFactor": 2, 349 "refId": "A" 350 } 351 ], 352 "thresholds": "70,80", 353 "timeFrom": null, 354 "timeShift": null, 355 "title": "Memory Utilisation", 356 "tooltip": { 357 "shared": false, 358 "sort": 2, 359 "value_type": "individual" 360 }, 361 "type": "singlestat", 362 "xaxis": { 363 "buckets": null, 364 "mode": "time", 365 "name": null, 366 "show": true, 367 "values": [ 368 369 ] 370 }, 371 "yaxes": [ 372 { 373 "format": "short", 374 "label": null, 375 "logBase": 1, 376 "max": null, 377 "min": 0, 378 "show": true 379 }, 380 { 381 "format": "short", 382 "label": null, 383 "logBase": 1, 384 "max": null, 385 "min": null, 386 "show": false 387 } 388 ] 389 }, 390 { 391 "aliasColors": { 392 393 }, 394 "bars": false, 395 "dashLength": 10, 396 "dashes": false, 397 "datasource": "$datasource", 398 "fill": 1, 399 "format": "percentunit", 400 "id": 5, 401 "interval": "1m", 402 "legend": { 403 "alignAsTable": true, 404 "avg": false, 405 "current": false, 406 "max": false, 407 "min": false, 408 "rightSide": true, 409 "show": true, 410 "total": false, 411 "values": false 412 }, 413 "lines": true, 414 "linewidth": 1, 415 "links": [ 416 417 ], 418 "nullPointMode": "null as zero", 419 "percentage": false, 420 "pointradius": 5, 421 "points": false, 422 "renderer": "flot", 423 "seriesOverrides": [ 424 425 ], 426 "spaceLength": 10, 427 "span": 2, 428 "stack": false, 429 "steppedLine": false, 430 "targets": [ 431 { 432 "expr": "sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{job=\"kube-state-metrics\",resource=\"memory\",cluster=\"$cluster\"})", 433 "format": "time_series", 434 "instant": true, 435 "intervalFactor": 2, 436 "refId": "A" 437 } 438 ], 439 "thresholds": "70,80", 440 "timeFrom": null, 441 "timeShift": null, 442 "title": "Memory Requests Commitment", 443 "tooltip": { 444 "shared": false, 445 "sort": 2, 446 "value_type": "individual" 447 }, 448 "type": "singlestat", 449 "xaxis": { 450 "buckets": null, 451 "mode": "time", 452 "name": null, 453 "show": true, 454 "values": [ 455 456 ] 457 }, 458 "yaxes": [ 459 { 460 "format": "short", 461 "label": null, 462 "logBase": 1, 463 "max": null, 464 "min": 0, 465 "show": true 466 }, 467 { 468 "format": "short", 469 "label": null, 470 "logBase": 1, 471 "max": null, 472 "min": null, 473 "show": false 474 } 475 ] 476 }, 477 { 478 "aliasColors": { 479 480 }, 481 "bars": false, 482 "dashLength": 10, 483 "dashes": false, 484 "datasource": "$datasource", 485 "fill": 1, 486 "format": "percentunit", 487 "id": 6, 488 "interval": "1m", 489 "legend": { 490 "alignAsTable": true, 491 "avg": false, 492 "current": false, 493 "max": false, 494 "min": false, 495 "rightSide": true, 496 "show": true, 497 "total": false, 498 "values": false 499 }, 500 "lines": true, 501 "linewidth": 1, 502 "links": [ 503 504 ], 505 "nullPointMode": "null as zero", 506 "percentage": false, 507 "pointradius": 5, 508 "points": false, 509 "renderer": "flot", 510 "seriesOverrides": [ 511 512 ], 513 "spaceLength": 10, 514 "span": 2, 515 "stack": false, 516 "steppedLine": false, 517 "targets": [ 518 { 519 "expr": "sum(namespace_memory:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{job=\"kube-state-metrics\",resource=\"memory\",cluster=\"$cluster\"})", 520 "format": "time_series", 521 "instant": true, 522 "intervalFactor": 2, 523 "refId": "A" 524 } 525 ], 526 "thresholds": "70,80", 527 "timeFrom": null, 528 "timeShift": null, 529 "title": "Memory Limits Commitment", 530 "tooltip": { 531 "shared": false, 532 "sort": 2, 533 "value_type": "individual" 534 }, 535 "type": "singlestat", 536 "xaxis": { 537 "buckets": null, 538 "mode": "time", 539 "name": null, 540 "show": true, 541 "values": [ 542 543 ] 544 }, 545 "yaxes": [ 546 { 547 "format": "short", 548 "label": null, 549 "logBase": 1, 550 "max": null, 551 "min": 0, 552 "show": true 553 }, 554 { 555 "format": "short", 556 "label": null, 557 "logBase": 1, 558 "max": null, 559 "min": null, 560 "show": false 561 } 562 ] 563 } 564 ], 565 "repeat": null, 566 "repeatIteration": null, 567 "repeatRowId": null, 568 "showTitle": false, 569 "title": "Headlines", 570 "titleSize": "h6" 571 }, 572 { 573 "collapse": false, 574 "height": "250px", 575 "panels": [ 576 { 577 "aliasColors": { 578 579 }, 580 "bars": false, 581 "dashLength": 10, 582 "dashes": false, 583 "datasource": "$datasource", 584 "fill": 10, 585 "id": 7, 586 "interval": "1m", 587 "legend": { 588 "alignAsTable": true, 589 "avg": false, 590 "current": false, 591 "max": false, 592 "min": false, 593 "rightSide": true, 594 "show": true, 595 "total": false, 596 "values": false 597 }, 598 "lines": true, 599 "linewidth": 0, 600 "links": [ 601 602 ], 603 "nullPointMode": "null as zero", 604 "percentage": false, 605 "pointradius": 5, 606 "points": false, 607 "renderer": "flot", 608 "seriesOverrides": [ 609 610 ], 611 "spaceLength": 10, 612 "span": 12, 613 "stack": true, 614 "steppedLine": false, 615 "targets": [ 616 { 617 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace)", 618 "format": "time_series", 619 "intervalFactor": 2, 620 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 621 "legendLink": null, 622 "step": 10 623 } 624 ], 625 "thresholds": [ 626 627 ], 628 "timeFrom": null, 629 "timeShift": null, 630 "title": "CPU Usage", 631 "tooltip": { 632 "shared": false, 633 "sort": 2, 634 "value_type": "individual" 635 }, 636 "type": "graph", 637 "xaxis": { 638 "buckets": null, 639 "mode": "time", 640 "name": null, 641 "show": true, 642 "values": [ 643 644 ] 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": null, 658 "logBase": 1, 659 "max": null, 660 "min": null, 661 "show": false 662 } 663 ] 664 } 665 ], 666 "repeat": null, 667 "repeatIteration": null, 668 "repeatRowId": null, 669 "showTitle": true, 670 "title": "CPU", 671 "titleSize": "h6" 672 }, 673 { 674 "collapse": false, 675 "height": "250px", 676 "panels": [ 677 { 678 "aliasColors": { 679 680 }, 681 "bars": false, 682 "dashLength": 10, 683 "dashes": false, 684 "datasource": "$datasource", 685 "fill": 1, 686 "id": 8, 687 "interval": "1m", 688 "legend": { 689 "alignAsTable": true, 690 "avg": false, 691 "current": false, 692 "max": false, 693 "min": false, 694 "rightSide": true, 695 "show": true, 696 "total": false, 697 "values": false 698 }, 699 "lines": true, 700 "linewidth": 1, 701 "links": [ 702 703 ], 704 "nullPointMode": "null as zero", 705 "percentage": false, 706 "pointradius": 5, 707 "points": false, 708 "renderer": "flot", 709 "seriesOverrides": [ 710 711 ], 712 "spaceLength": 10, 713 "span": 12, 714 "stack": false, 715 "steppedLine": false, 716 "styles": [ 717 { 718 "alias": "Time", 719 "dateFormat": "YYYY-MM-DD HH:mm:ss", 720 "pattern": "Time", 721 "type": "hidden" 722 }, 723 { 724 "alias": "Pods", 725 "colorMode": null, 726 "colors": [ 727 728 ], 729 "dateFormat": "YYYY-MM-DD HH:mm:ss", 730 "decimals": 0, 731 "link": true, 732 "linkTargetBlank": false, 733 "linkTooltip": "Drill down to pods", 734 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1", 735 "pattern": "Value #A", 736 "thresholds": [ 737 738 ], 739 "type": "number", 740 "unit": "short" 741 }, 742 { 743 "alias": "Workloads", 744 "colorMode": null, 745 "colors": [ 746 747 ], 748 "dateFormat": "YYYY-MM-DD HH:mm:ss", 749 "decimals": 0, 750 "link": true, 751 "linkTargetBlank": false, 752 "linkTooltip": "Drill down to workloads", 753 "linkUrl": "/d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1", 754 "pattern": "Value #B", 755 "thresholds": [ 756 757 ], 758 "type": "number", 759 "unit": "short" 760 }, 761 { 762 "alias": "CPU Usage", 763 "colorMode": null, 764 "colors": [ 765 766 ], 767 "dateFormat": "YYYY-MM-DD HH:mm:ss", 768 "decimals": 2, 769 "link": false, 770 "linkTargetBlank": false, 771 "linkTooltip": "Drill down", 772 "linkUrl": "", 773 "pattern": "Value #C", 774 "thresholds": [ 775 776 ], 777 "type": "number", 778 "unit": "short" 779 }, 780 { 781 "alias": "CPU Requests", 782 "colorMode": null, 783 "colors": [ 784 785 ], 786 "dateFormat": "YYYY-MM-DD HH:mm:ss", 787 "decimals": 2, 788 "link": false, 789 "linkTargetBlank": false, 790 "linkTooltip": "Drill down", 791 "linkUrl": "", 792 "pattern": "Value #D", 793 "thresholds": [ 794 795 ], 796 "type": "number", 797 "unit": "short" 798 }, 799 { 800 "alias": "CPU Requests %", 801 "colorMode": null, 802 "colors": [ 803 804 ], 805 "dateFormat": "YYYY-MM-DD HH:mm:ss", 806 "decimals": 2, 807 "link": false, 808 "linkTargetBlank": false, 809 "linkTooltip": "Drill down", 810 "linkUrl": "", 811 "pattern": "Value #E", 812 "thresholds": [ 813 814 ], 815 "type": "number", 816 "unit": "percentunit" 817 }, 818 { 819 "alias": "CPU Limits", 820 "colorMode": null, 821 "colors": [ 822 823 ], 824 "dateFormat": "YYYY-MM-DD HH:mm:ss", 825 "decimals": 2, 826 "link": false, 827 "linkTargetBlank": false, 828 "linkTooltip": "Drill down", 829 "linkUrl": "", 830 "pattern": "Value #F", 831 "thresholds": [ 832 833 ], 834 "type": "number", 835 "unit": "short" 836 }, 837 { 838 "alias": "CPU Limits %", 839 "colorMode": null, 840 "colors": [ 841 842 ], 843 "dateFormat": "YYYY-MM-DD HH:mm:ss", 844 "decimals": 2, 845 "link": false, 846 "linkTargetBlank": false, 847 "linkTooltip": "Drill down", 848 "linkUrl": "", 849 "pattern": "Value #G", 850 "thresholds": [ 851 852 ], 853 "type": "number", 854 "unit": "percentunit" 855 }, 856 { 857 "alias": "Namespace", 858 "colorMode": null, 859 "colors": [ 860 861 ], 862 "dateFormat": "YYYY-MM-DD HH:mm:ss", 863 "decimals": 2, 864 "link": true, 865 "linkTargetBlank": false, 866 "linkTooltip": "Drill down to pods", 867 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell", 868 "pattern": "namespace", 869 "thresholds": [ 870 871 ], 872 "type": "number", 873 "unit": "short" 874 }, 875 { 876 "alias": "", 877 "colorMode": null, 878 "colors": [ 879 880 ], 881 "dateFormat": "YYYY-MM-DD HH:mm:ss", 882 "decimals": 2, 883 "pattern": "/.*/", 884 "thresholds": [ 885 886 ], 887 "type": "string", 888 "unit": "short" 889 } 890 ], 891 "targets": [ 892 { 893 "expr": "sum(kube_pod_owner{job=\"kube-state-metrics\", cluster=\"$cluster\"}) by (namespace)", 894 "format": "table", 895 "instant": true, 896 "intervalFactor": 2, 897 "legendFormat": "", 898 "refId": "A", 899 "step": 10 900 }, 901 { 902 "expr": "count(avg(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)", 903 "format": "table", 904 "instant": true, 905 "intervalFactor": 2, 906 "legendFormat": "", 907 "refId": "B", 908 "step": 10 909 }, 910 { 911 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace)", 912 "format": "table", 913 "instant": true, 914 "intervalFactor": 2, 915 "legendFormat": "", 916 "refId": "C", 917 "step": 10 918 }, 919 { 920 "expr": "sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)", 921 "format": "table", 922 "instant": true, 923 "intervalFactor": 2, 924 "legendFormat": "", 925 "refId": "D", 926 "step": 10 927 }, 928 { 929 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)", 930 "format": "table", 931 "instant": true, 932 "intervalFactor": 2, 933 "legendFormat": "", 934 "refId": "E", 935 "step": 10 936 }, 937 { 938 "expr": "sum(namespace_cpu:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)", 939 "format": "table", 940 "instant": true, 941 "intervalFactor": 2, 942 "legendFormat": "", 943 "refId": "F", 944 "step": 10 945 }, 946 { 947 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)", 948 "format": "table", 949 "instant": true, 950 "intervalFactor": 2, 951 "legendFormat": "", 952 "refId": "G", 953 "step": 10 954 } 955 ], 956 "thresholds": [ 957 958 ], 959 "timeFrom": null, 960 "timeShift": null, 961 "title": "CPU Quota", 962 "tooltip": { 963 "shared": false, 964 "sort": 2, 965 "value_type": "individual" 966 }, 967 "transform": "table", 968 "type": "table", 969 "xaxis": { 970 "buckets": null, 971 "mode": "time", 972 "name": null, 973 "show": true, 974 "values": [ 975 976 ] 977 }, 978 "yaxes": [ 979 { 980 "format": "short", 981 "label": null, 982 "logBase": 1, 983 "max": null, 984 "min": 0, 985 "show": true 986 }, 987 { 988 "format": "short", 989 "label": null, 990 "logBase": 1, 991 "max": null, 992 "min": null, 993 "show": false 994 } 995 ] 996 } 997 ], 998 "repeat": null, 999 "repeatIteration": null, 1000 "repeatRowId": null, 1001 "showTitle": true, 1002 "title": "CPU Quota", 1003 "titleSize": "h6" 1004 }, 1005 { 1006 "collapse": false, 1007 "height": "250px", 1008 "panels": [ 1009 { 1010 "aliasColors": { 1011 1012 }, 1013 "bars": false, 1014 "dashLength": 10, 1015 "dashes": false, 1016 "datasource": "$datasource", 1017 "fill": 10, 1018 "id": 9, 1019 "interval": "1m", 1020 "legend": { 1021 "alignAsTable": true, 1022 "avg": false, 1023 "current": false, 1024 "max": false, 1025 "min": false, 1026 "rightSide": true, 1027 "show": true, 1028 "total": false, 1029 "values": false 1030 }, 1031 "lines": true, 1032 "linewidth": 0, 1033 "links": [ 1034 1035 ], 1036 "nullPointMode": "null as zero", 1037 "percentage": false, 1038 "pointradius": 5, 1039 "points": false, 1040 "renderer": "flot", 1041 "seriesOverrides": [ 1042 1043 ], 1044 "spaceLength": 10, 1045 "span": 12, 1046 "stack": true, 1047 "steppedLine": false, 1048 "targets": [ 1049 { 1050 "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace)", 1051 "format": "time_series", 1052 "intervalFactor": 2, 1053 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 1054 "legendLink": null, 1055 "step": 10 1056 } 1057 ], 1058 "thresholds": [ 1059 1060 ], 1061 "timeFrom": null, 1062 "timeShift": null, 1063 "title": "Memory Usage (w/o cache)", 1064 "tooltip": { 1065 "shared": false, 1066 "sort": 2, 1067 "value_type": "individual" 1068 }, 1069 "type": "graph", 1070 "xaxis": { 1071 "buckets": null, 1072 "mode": "time", 1073 "name": null, 1074 "show": true, 1075 "values": [ 1076 1077 ] 1078 }, 1079 "yaxes": [ 1080 { 1081 "format": "bytes", 1082 "label": null, 1083 "logBase": 1, 1084 "max": null, 1085 "min": 0, 1086 "show": true 1087 }, 1088 { 1089 "format": "short", 1090 "label": null, 1091 "logBase": 1, 1092 "max": null, 1093 "min": null, 1094 "show": false 1095 } 1096 ] 1097 } 1098 ], 1099 "repeat": null, 1100 "repeatIteration": null, 1101 "repeatRowId": null, 1102 "showTitle": true, 1103 "title": "Memory", 1104 "titleSize": "h6" 1105 }, 1106 { 1107 "collapse": false, 1108 "height": "250px", 1109 "panels": [ 1110 { 1111 "aliasColors": { 1112 1113 }, 1114 "bars": false, 1115 "dashLength": 10, 1116 "dashes": false, 1117 "datasource": "$datasource", 1118 "fill": 1, 1119 "id": 10, 1120 "interval": "1m", 1121 "legend": { 1122 "alignAsTable": true, 1123 "avg": false, 1124 "current": false, 1125 "max": false, 1126 "min": false, 1127 "rightSide": true, 1128 "show": true, 1129 "total": false, 1130 "values": false 1131 }, 1132 "lines": true, 1133 "linewidth": 1, 1134 "links": [ 1135 1136 ], 1137 "nullPointMode": "null as zero", 1138 "percentage": false, 1139 "pointradius": 5, 1140 "points": false, 1141 "renderer": "flot", 1142 "seriesOverrides": [ 1143 1144 ], 1145 "spaceLength": 10, 1146 "span": 12, 1147 "stack": false, 1148 "steppedLine": false, 1149 "styles": [ 1150 { 1151 "alias": "Time", 1152 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1153 "pattern": "Time", 1154 "type": "hidden" 1155 }, 1156 { 1157 "alias": "Pods", 1158 "colorMode": null, 1159 "colors": [ 1160 1161 ], 1162 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1163 "decimals": 0, 1164 "link": true, 1165 "linkTargetBlank": false, 1166 "linkTooltip": "Drill down to pods", 1167 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1", 1168 "pattern": "Value #A", 1169 "thresholds": [ 1170 1171 ], 1172 "type": "number", 1173 "unit": "short" 1174 }, 1175 { 1176 "alias": "Workloads", 1177 "colorMode": null, 1178 "colors": [ 1179 1180 ], 1181 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1182 "decimals": 0, 1183 "link": true, 1184 "linkTargetBlank": false, 1185 "linkTooltip": "Drill down to workloads", 1186 "linkUrl": "/d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1", 1187 "pattern": "Value #B", 1188 "thresholds": [ 1189 1190 ], 1191 "type": "number", 1192 "unit": "short" 1193 }, 1194 { 1195 "alias": "Memory Usage", 1196 "colorMode": null, 1197 "colors": [ 1198 1199 ], 1200 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1201 "decimals": 2, 1202 "link": false, 1203 "linkTargetBlank": false, 1204 "linkTooltip": "Drill down", 1205 "linkUrl": "", 1206 "pattern": "Value #C", 1207 "thresholds": [ 1208 1209 ], 1210 "type": "number", 1211 "unit": "bytes" 1212 }, 1213 { 1214 "alias": "Memory Requests", 1215 "colorMode": null, 1216 "colors": [ 1217 1218 ], 1219 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1220 "decimals": 2, 1221 "link": false, 1222 "linkTargetBlank": false, 1223 "linkTooltip": "Drill down", 1224 "linkUrl": "", 1225 "pattern": "Value #D", 1226 "thresholds": [ 1227 1228 ], 1229 "type": "number", 1230 "unit": "bytes" 1231 }, 1232 { 1233 "alias": "Memory Requests %", 1234 "colorMode": null, 1235 "colors": [ 1236 1237 ], 1238 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1239 "decimals": 2, 1240 "link": false, 1241 "linkTargetBlank": false, 1242 "linkTooltip": "Drill down", 1243 "linkUrl": "", 1244 "pattern": "Value #E", 1245 "thresholds": [ 1246 1247 ], 1248 "type": "number", 1249 "unit": "percentunit" 1250 }, 1251 { 1252 "alias": "Memory Limits", 1253 "colorMode": null, 1254 "colors": [ 1255 1256 ], 1257 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1258 "decimals": 2, 1259 "link": false, 1260 "linkTargetBlank": false, 1261 "linkTooltip": "Drill down", 1262 "linkUrl": "", 1263 "pattern": "Value #F", 1264 "thresholds": [ 1265 1266 ], 1267 "type": "number", 1268 "unit": "bytes" 1269 }, 1270 { 1271 "alias": "Memory Limits %", 1272 "colorMode": null, 1273 "colors": [ 1274 1275 ], 1276 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1277 "decimals": 2, 1278 "link": false, 1279 "linkTargetBlank": false, 1280 "linkTooltip": "Drill down", 1281 "linkUrl": "", 1282 "pattern": "Value #G", 1283 "thresholds": [ 1284 1285 ], 1286 "type": "number", 1287 "unit": "percentunit" 1288 }, 1289 { 1290 "alias": "Namespace", 1291 "colorMode": null, 1292 "colors": [ 1293 1294 ], 1295 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1296 "decimals": 2, 1297 "link": true, 1298 "linkTargetBlank": false, 1299 "linkTooltip": "Drill down to pods", 1300 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell", 1301 "pattern": "namespace", 1302 "thresholds": [ 1303 1304 ], 1305 "type": "number", 1306 "unit": "short" 1307 }, 1308 { 1309 "alias": "", 1310 "colorMode": null, 1311 "colors": [ 1312 1313 ], 1314 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1315 "decimals": 2, 1316 "pattern": "/.*/", 1317 "thresholds": [ 1318 1319 ], 1320 "type": "string", 1321 "unit": "short" 1322 } 1323 ], 1324 "targets": [ 1325 { 1326 "expr": "sum(kube_pod_owner{job=\"kube-state-metrics\", cluster=\"$cluster\"}) by (namespace)", 1327 "format": "table", 1328 "instant": true, 1329 "intervalFactor": 2, 1330 "legendFormat": "", 1331 "refId": "A", 1332 "step": 10 1333 }, 1334 { 1335 "expr": "count(avg(namespace_workload_pod:kube_pod_owner:relabel{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)", 1336 "format": "table", 1337 "instant": true, 1338 "intervalFactor": 2, 1339 "legendFormat": "", 1340 "refId": "B", 1341 "step": 10 1342 }, 1343 { 1344 "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace)", 1345 "format": "table", 1346 "instant": true, 1347 "intervalFactor": 2, 1348 "legendFormat": "", 1349 "refId": "C", 1350 "step": 10 1351 }, 1352 { 1353 "expr": "sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)", 1354 "format": "table", 1355 "instant": true, 1356 "intervalFactor": 2, 1357 "legendFormat": "", 1358 "refId": "D", 1359 "step": 10 1360 }, 1361 { 1362 "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)", 1363 "format": "table", 1364 "instant": true, 1365 "intervalFactor": 2, 1366 "legendFormat": "", 1367 "refId": "E", 1368 "step": 10 1369 }, 1370 { 1371 "expr": "sum(namespace_memory:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)", 1372 "format": "table", 1373 "instant": true, 1374 "intervalFactor": 2, 1375 "legendFormat": "", 1376 "refId": "F", 1377 "step": 10 1378 }, 1379 { 1380 "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_limits:sum{cluster=\"$cluster\"}) by (namespace)", 1381 "format": "table", 1382 "instant": true, 1383 "intervalFactor": 2, 1384 "legendFormat": "", 1385 "refId": "G", 1386 "step": 10 1387 } 1388 ], 1389 "thresholds": [ 1390 1391 ], 1392 "timeFrom": null, 1393 "timeShift": null, 1394 "title": "Requests by Namespace", 1395 "tooltip": { 1396 "shared": false, 1397 "sort": 2, 1398 "value_type": "individual" 1399 }, 1400 "transform": "table", 1401 "type": "table", 1402 "xaxis": { 1403 "buckets": null, 1404 "mode": "time", 1405 "name": null, 1406 "show": true, 1407 "values": [ 1408 1409 ] 1410 }, 1411 "yaxes": [ 1412 { 1413 "format": "short", 1414 "label": null, 1415 "logBase": 1, 1416 "max": null, 1417 "min": 0, 1418 "show": true 1419 }, 1420 { 1421 "format": "short", 1422 "label": null, 1423 "logBase": 1, 1424 "max": null, 1425 "min": null, 1426 "show": false 1427 } 1428 ] 1429 } 1430 ], 1431 "repeat": null, 1432 "repeatIteration": null, 1433 "repeatRowId": null, 1434 "showTitle": true, 1435 "title": "Memory Requests", 1436 "titleSize": "h6" 1437 }, 1438 { 1439 "collapse": false, 1440 "height": "250px", 1441 "panels": [ 1442 { 1443 "aliasColors": { 1444 1445 }, 1446 "bars": false, 1447 "dashLength": 10, 1448 "dashes": false, 1449 "datasource": "$datasource", 1450 "fill": 1, 1451 "id": 11, 1452 "interval": "1m", 1453 "legend": { 1454 "alignAsTable": true, 1455 "avg": false, 1456 "current": false, 1457 "max": false, 1458 "min": false, 1459 "rightSide": true, 1460 "show": true, 1461 "total": false, 1462 "values": false 1463 }, 1464 "lines": true, 1465 "linewidth": 1, 1466 "links": [ 1467 1468 ], 1469 "nullPointMode": "null as zero", 1470 "percentage": false, 1471 "pointradius": 5, 1472 "points": false, 1473 "renderer": "flot", 1474 "seriesOverrides": [ 1475 1476 ], 1477 "spaceLength": 10, 1478 "span": 12, 1479 "stack": false, 1480 "steppedLine": false, 1481 "styles": [ 1482 { 1483 "alias": "Time", 1484 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1485 "pattern": "Time", 1486 "type": "hidden" 1487 }, 1488 { 1489 "alias": "Current Receive Bandwidth", 1490 "colorMode": null, 1491 "colors": [ 1492 1493 ], 1494 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1495 "decimals": 2, 1496 "link": false, 1497 "linkTargetBlank": false, 1498 "linkTooltip": "Drill down", 1499 "linkUrl": "", 1500 "pattern": "Value #A", 1501 "thresholds": [ 1502 1503 ], 1504 "type": "number", 1505 "unit": "Bps" 1506 }, 1507 { 1508 "alias": "Current Transmit Bandwidth", 1509 "colorMode": null, 1510 "colors": [ 1511 1512 ], 1513 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1514 "decimals": 2, 1515 "link": false, 1516 "linkTargetBlank": false, 1517 "linkTooltip": "Drill down", 1518 "linkUrl": "", 1519 "pattern": "Value #B", 1520 "thresholds": [ 1521 1522 ], 1523 "type": "number", 1524 "unit": "Bps" 1525 }, 1526 { 1527 "alias": "Rate of Received Packets", 1528 "colorMode": null, 1529 "colors": [ 1530 1531 ], 1532 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1533 "decimals": 2, 1534 "link": false, 1535 "linkTargetBlank": false, 1536 "linkTooltip": "Drill down", 1537 "linkUrl": "", 1538 "pattern": "Value #C", 1539 "thresholds": [ 1540 1541 ], 1542 "type": "number", 1543 "unit": "pps" 1544 }, 1545 { 1546 "alias": "Rate of Transmitted Packets", 1547 "colorMode": null, 1548 "colors": [ 1549 1550 ], 1551 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1552 "decimals": 2, 1553 "link": false, 1554 "linkTargetBlank": false, 1555 "linkTooltip": "Drill down", 1556 "linkUrl": "", 1557 "pattern": "Value #D", 1558 "thresholds": [ 1559 1560 ], 1561 "type": "number", 1562 "unit": "pps" 1563 }, 1564 { 1565 "alias": "Rate of Received Packets Dropped", 1566 "colorMode": null, 1567 "colors": [ 1568 1569 ], 1570 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1571 "decimals": 2, 1572 "link": false, 1573 "linkTargetBlank": false, 1574 "linkTooltip": "Drill down", 1575 "linkUrl": "", 1576 "pattern": "Value #E", 1577 "thresholds": [ 1578 1579 ], 1580 "type": "number", 1581 "unit": "pps" 1582 }, 1583 { 1584 "alias": "Rate of Transmitted Packets Dropped", 1585 "colorMode": null, 1586 "colors": [ 1587 1588 ], 1589 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1590 "decimals": 2, 1591 "link": false, 1592 "linkTargetBlank": false, 1593 "linkTooltip": "Drill down", 1594 "linkUrl": "", 1595 "pattern": "Value #F", 1596 "thresholds": [ 1597 1598 ], 1599 "type": "number", 1600 "unit": "pps" 1601 }, 1602 { 1603 "alias": "Namespace", 1604 "colorMode": null, 1605 "colors": [ 1606 1607 ], 1608 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1609 "decimals": 2, 1610 "link": true, 1611 "linkTargetBlank": false, 1612 "linkTooltip": "Drill down to pods", 1613 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell", 1614 "pattern": "namespace", 1615 "thresholds": [ 1616 1617 ], 1618 "type": "number", 1619 "unit": "short" 1620 }, 1621 { 1622 "alias": "", 1623 "colorMode": null, 1624 "colors": [ 1625 1626 ], 1627 "dateFormat": "YYYY-MM-DD HH:mm:ss", 1628 "decimals": 2, 1629 "pattern": "/.*/", 1630 "thresholds": [ 1631 1632 ], 1633 "type": "string", 1634 "unit": "short" 1635 } 1636 ], 1637 "targets": [ 1638 { 1639 "expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1640 "format": "table", 1641 "instant": true, 1642 "intervalFactor": 2, 1643 "legendFormat": "", 1644 "refId": "A", 1645 "step": 10 1646 }, 1647 { 1648 "expr": "sum(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1649 "format": "table", 1650 "instant": true, 1651 "intervalFactor": 2, 1652 "legendFormat": "", 1653 "refId": "B", 1654 "step": 10 1655 }, 1656 { 1657 "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1658 "format": "table", 1659 "instant": true, 1660 "intervalFactor": 2, 1661 "legendFormat": "", 1662 "refId": "C", 1663 "step": 10 1664 }, 1665 { 1666 "expr": "sum(irate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1667 "format": "table", 1668 "instant": true, 1669 "intervalFactor": 2, 1670 "legendFormat": "", 1671 "refId": "D", 1672 "step": 10 1673 }, 1674 { 1675 "expr": "sum(irate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1676 "format": "table", 1677 "instant": true, 1678 "intervalFactor": 2, 1679 "legendFormat": "", 1680 "refId": "E", 1681 "step": 10 1682 }, 1683 { 1684 "expr": "sum(irate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1685 "format": "table", 1686 "instant": true, 1687 "intervalFactor": 2, 1688 "legendFormat": "", 1689 "refId": "F", 1690 "step": 10 1691 } 1692 ], 1693 "thresholds": [ 1694 1695 ], 1696 "timeFrom": null, 1697 "timeShift": null, 1698 "title": "Current Network Usage", 1699 "tooltip": { 1700 "shared": false, 1701 "sort": 2, 1702 "value_type": "individual" 1703 }, 1704 "transform": "table", 1705 "type": "table", 1706 "xaxis": { 1707 "buckets": null, 1708 "mode": "time", 1709 "name": null, 1710 "show": true, 1711 "values": [ 1712 1713 ] 1714 }, 1715 "yaxes": [ 1716 { 1717 "format": "short", 1718 "label": null, 1719 "logBase": 1, 1720 "max": null, 1721 "min": 0, 1722 "show": true 1723 }, 1724 { 1725 "format": "short", 1726 "label": null, 1727 "logBase": 1, 1728 "max": null, 1729 "min": null, 1730 "show": false 1731 } 1732 ] 1733 } 1734 ], 1735 "repeat": null, 1736 "repeatIteration": null, 1737 "repeatRowId": null, 1738 "showTitle": true, 1739 "title": "Current Network Usage", 1740 "titleSize": "h6" 1741 }, 1742 { 1743 "collapse": false, 1744 "height": "250px", 1745 "panels": [ 1746 { 1747 "aliasColors": { 1748 1749 }, 1750 "bars": false, 1751 "dashLength": 10, 1752 "dashes": false, 1753 "datasource": "$datasource", 1754 "fill": 10, 1755 "id": 12, 1756 "interval": "1m", 1757 "legend": { 1758 "alignAsTable": true, 1759 "avg": false, 1760 "current": false, 1761 "max": false, 1762 "min": false, 1763 "rightSide": true, 1764 "show": true, 1765 "total": false, 1766 "values": false 1767 }, 1768 "lines": true, 1769 "linewidth": 0, 1770 "links": [ 1771 1772 ], 1773 "nullPointMode": "null as zero", 1774 "percentage": false, 1775 "pointradius": 5, 1776 "points": false, 1777 "renderer": "flot", 1778 "seriesOverrides": [ 1779 1780 ], 1781 "spaceLength": 10, 1782 "span": 6, 1783 "stack": true, 1784 "steppedLine": false, 1785 "targets": [ 1786 { 1787 "expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1788 "format": "time_series", 1789 "intervalFactor": 2, 1790 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 1791 "legendLink": null, 1792 "step": 10 1793 } 1794 ], 1795 "thresholds": [ 1796 1797 ], 1798 "timeFrom": null, 1799 "timeShift": null, 1800 "title": "Receive Bandwidth", 1801 "tooltip": { 1802 "shared": false, 1803 "sort": 2, 1804 "value_type": "individual" 1805 }, 1806 "type": "graph", 1807 "xaxis": { 1808 "buckets": null, 1809 "mode": "time", 1810 "name": null, 1811 "show": true, 1812 "values": [ 1813 1814 ] 1815 }, 1816 "yaxes": [ 1817 { 1818 "format": "Bps", 1819 "label": null, 1820 "logBase": 1, 1821 "max": null, 1822 "min": 0, 1823 "show": true 1824 }, 1825 { 1826 "format": "short", 1827 "label": null, 1828 "logBase": 1, 1829 "max": null, 1830 "min": null, 1831 "show": false 1832 } 1833 ] 1834 }, 1835 { 1836 "aliasColors": { 1837 1838 }, 1839 "bars": false, 1840 "dashLength": 10, 1841 "dashes": false, 1842 "datasource": "$datasource", 1843 "fill": 10, 1844 "id": 13, 1845 "interval": "1m", 1846 "legend": { 1847 "alignAsTable": true, 1848 "avg": false, 1849 "current": false, 1850 "max": false, 1851 "min": false, 1852 "rightSide": true, 1853 "show": true, 1854 "total": false, 1855 "values": false 1856 }, 1857 "lines": true, 1858 "linewidth": 0, 1859 "links": [ 1860 1861 ], 1862 "nullPointMode": "null as zero", 1863 "percentage": false, 1864 "pointradius": 5, 1865 "points": false, 1866 "renderer": "flot", 1867 "seriesOverrides": [ 1868 1869 ], 1870 "spaceLength": 10, 1871 "span": 6, 1872 "stack": true, 1873 "steppedLine": false, 1874 "targets": [ 1875 { 1876 "expr": "sum(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1877 "format": "time_series", 1878 "intervalFactor": 2, 1879 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 1880 "legendLink": null, 1881 "step": 10 1882 } 1883 ], 1884 "thresholds": [ 1885 1886 ], 1887 "timeFrom": null, 1888 "timeShift": null, 1889 "title": "Transmit Bandwidth", 1890 "tooltip": { 1891 "shared": false, 1892 "sort": 2, 1893 "value_type": "individual" 1894 }, 1895 "type": "graph", 1896 "xaxis": { 1897 "buckets": null, 1898 "mode": "time", 1899 "name": null, 1900 "show": true, 1901 "values": [ 1902 1903 ] 1904 }, 1905 "yaxes": [ 1906 { 1907 "format": "Bps", 1908 "label": null, 1909 "logBase": 1, 1910 "max": null, 1911 "min": 0, 1912 "show": true 1913 }, 1914 { 1915 "format": "short", 1916 "label": null, 1917 "logBase": 1, 1918 "max": null, 1919 "min": null, 1920 "show": false 1921 } 1922 ] 1923 } 1924 ], 1925 "repeat": null, 1926 "repeatIteration": null, 1927 "repeatRowId": null, 1928 "showTitle": true, 1929 "title": "Bandwidth", 1930 "titleSize": "h6" 1931 }, 1932 { 1933 "collapse": false, 1934 "height": "250px", 1935 "panels": [ 1936 { 1937 "aliasColors": { 1938 1939 }, 1940 "bars": false, 1941 "dashLength": 10, 1942 "dashes": false, 1943 "datasource": "$datasource", 1944 "fill": 10, 1945 "id": 14, 1946 "interval": "1m", 1947 "legend": { 1948 "alignAsTable": true, 1949 "avg": false, 1950 "current": false, 1951 "max": false, 1952 "min": false, 1953 "rightSide": true, 1954 "show": true, 1955 "total": false, 1956 "values": false 1957 }, 1958 "lines": true, 1959 "linewidth": 0, 1960 "links": [ 1961 1962 ], 1963 "nullPointMode": "null as zero", 1964 "percentage": false, 1965 "pointradius": 5, 1966 "points": false, 1967 "renderer": "flot", 1968 "seriesOverrides": [ 1969 1970 ], 1971 "spaceLength": 10, 1972 "span": 6, 1973 "stack": true, 1974 "steppedLine": false, 1975 "targets": [ 1976 { 1977 "expr": "avg(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 1978 "format": "time_series", 1979 "intervalFactor": 2, 1980 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 1981 "legendLink": null, 1982 "step": 10 1983 } 1984 ], 1985 "thresholds": [ 1986 1987 ], 1988 "timeFrom": null, 1989 "timeShift": null, 1990 "title": "Average Container Bandwidth by Namespace: Received", 1991 "tooltip": { 1992 "shared": false, 1993 "sort": 2, 1994 "value_type": "individual" 1995 }, 1996 "type": "graph", 1997 "xaxis": { 1998 "buckets": null, 1999 "mode": "time", 2000 "name": null, 2001 "show": true, 2002 "values": [ 2003 2004 ] 2005 }, 2006 "yaxes": [ 2007 { 2008 "format": "Bps", 2009 "label": null, 2010 "logBase": 1, 2011 "max": null, 2012 "min": 0, 2013 "show": true 2014 }, 2015 { 2016 "format": "short", 2017 "label": null, 2018 "logBase": 1, 2019 "max": null, 2020 "min": null, 2021 "show": false 2022 } 2023 ] 2024 }, 2025 { 2026 "aliasColors": { 2027 2028 }, 2029 "bars": false, 2030 "dashLength": 10, 2031 "dashes": false, 2032 "datasource": "$datasource", 2033 "fill": 10, 2034 "id": 15, 2035 "interval": "1m", 2036 "legend": { 2037 "alignAsTable": true, 2038 "avg": false, 2039 "current": false, 2040 "max": false, 2041 "min": false, 2042 "rightSide": true, 2043 "show": true, 2044 "total": false, 2045 "values": false 2046 }, 2047 "lines": true, 2048 "linewidth": 0, 2049 "links": [ 2050 2051 ], 2052 "nullPointMode": "null as zero", 2053 "percentage": false, 2054 "pointradius": 5, 2055 "points": false, 2056 "renderer": "flot", 2057 "seriesOverrides": [ 2058 2059 ], 2060 "spaceLength": 10, 2061 "span": 6, 2062 "stack": true, 2063 "steppedLine": false, 2064 "targets": [ 2065 { 2066 "expr": "avg(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 2067 "format": "time_series", 2068 "intervalFactor": 2, 2069 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2070 "legendLink": null, 2071 "step": 10 2072 } 2073 ], 2074 "thresholds": [ 2075 2076 ], 2077 "timeFrom": null, 2078 "timeShift": null, 2079 "title": "Average Container Bandwidth by Namespace: Transmitted", 2080 "tooltip": { 2081 "shared": false, 2082 "sort": 2, 2083 "value_type": "individual" 2084 }, 2085 "type": "graph", 2086 "xaxis": { 2087 "buckets": null, 2088 "mode": "time", 2089 "name": null, 2090 "show": true, 2091 "values": [ 2092 2093 ] 2094 }, 2095 "yaxes": [ 2096 { 2097 "format": "Bps", 2098 "label": null, 2099 "logBase": 1, 2100 "max": null, 2101 "min": 0, 2102 "show": true 2103 }, 2104 { 2105 "format": "short", 2106 "label": null, 2107 "logBase": 1, 2108 "max": null, 2109 "min": null, 2110 "show": false 2111 } 2112 ] 2113 } 2114 ], 2115 "repeat": null, 2116 "repeatIteration": null, 2117 "repeatRowId": null, 2118 "showTitle": true, 2119 "title": "Average Container Bandwidth by Namespace", 2120 "titleSize": "h6" 2121 }, 2122 { 2123 "collapse": false, 2124 "height": "250px", 2125 "panels": [ 2126 { 2127 "aliasColors": { 2128 2129 }, 2130 "bars": false, 2131 "dashLength": 10, 2132 "dashes": false, 2133 "datasource": "$datasource", 2134 "fill": 10, 2135 "id": 16, 2136 "interval": "1m", 2137 "legend": { 2138 "alignAsTable": true, 2139 "avg": false, 2140 "current": false, 2141 "max": false, 2142 "min": false, 2143 "rightSide": true, 2144 "show": true, 2145 "total": false, 2146 "values": false 2147 }, 2148 "lines": true, 2149 "linewidth": 0, 2150 "links": [ 2151 2152 ], 2153 "nullPointMode": "null as zero", 2154 "percentage": false, 2155 "pointradius": 5, 2156 "points": false, 2157 "renderer": "flot", 2158 "seriesOverrides": [ 2159 2160 ], 2161 "spaceLength": 10, 2162 "span": 6, 2163 "stack": true, 2164 "steppedLine": false, 2165 "targets": [ 2166 { 2167 "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 2168 "format": "time_series", 2169 "intervalFactor": 2, 2170 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2171 "legendLink": null, 2172 "step": 10 2173 } 2174 ], 2175 "thresholds": [ 2176 2177 ], 2178 "timeFrom": null, 2179 "timeShift": null, 2180 "title": "Rate of Received Packets", 2181 "tooltip": { 2182 "shared": false, 2183 "sort": 2, 2184 "value_type": "individual" 2185 }, 2186 "type": "graph", 2187 "xaxis": { 2188 "buckets": null, 2189 "mode": "time", 2190 "name": null, 2191 "show": true, 2192 "values": [ 2193 2194 ] 2195 }, 2196 "yaxes": [ 2197 { 2198 "format": "pps", 2199 "label": null, 2200 "logBase": 1, 2201 "max": null, 2202 "min": 0, 2203 "show": true 2204 }, 2205 { 2206 "format": "short", 2207 "label": null, 2208 "logBase": 1, 2209 "max": null, 2210 "min": null, 2211 "show": false 2212 } 2213 ] 2214 }, 2215 { 2216 "aliasColors": { 2217 2218 }, 2219 "bars": false, 2220 "dashLength": 10, 2221 "dashes": false, 2222 "datasource": "$datasource", 2223 "fill": 10, 2224 "id": 17, 2225 "interval": "1m", 2226 "legend": { 2227 "alignAsTable": true, 2228 "avg": false, 2229 "current": false, 2230 "max": false, 2231 "min": false, 2232 "rightSide": true, 2233 "show": true, 2234 "total": false, 2235 "values": false 2236 }, 2237 "lines": true, 2238 "linewidth": 0, 2239 "links": [ 2240 2241 ], 2242 "nullPointMode": "null as zero", 2243 "percentage": false, 2244 "pointradius": 5, 2245 "points": false, 2246 "renderer": "flot", 2247 "seriesOverrides": [ 2248 2249 ], 2250 "spaceLength": 10, 2251 "span": 6, 2252 "stack": true, 2253 "steppedLine": false, 2254 "targets": [ 2255 { 2256 "expr": "sum(irate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 2257 "format": "time_series", 2258 "intervalFactor": 2, 2259 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2260 "legendLink": null, 2261 "step": 10 2262 } 2263 ], 2264 "thresholds": [ 2265 2266 ], 2267 "timeFrom": null, 2268 "timeShift": null, 2269 "title": "Rate of Transmitted Packets", 2270 "tooltip": { 2271 "shared": false, 2272 "sort": 2, 2273 "value_type": "individual" 2274 }, 2275 "type": "graph", 2276 "xaxis": { 2277 "buckets": null, 2278 "mode": "time", 2279 "name": null, 2280 "show": true, 2281 "values": [ 2282 2283 ] 2284 }, 2285 "yaxes": [ 2286 { 2287 "format": "pps", 2288 "label": null, 2289 "logBase": 1, 2290 "max": null, 2291 "min": 0, 2292 "show": true 2293 }, 2294 { 2295 "format": "short", 2296 "label": null, 2297 "logBase": 1, 2298 "max": null, 2299 "min": null, 2300 "show": false 2301 } 2302 ] 2303 } 2304 ], 2305 "repeat": null, 2306 "repeatIteration": null, 2307 "repeatRowId": null, 2308 "showTitle": true, 2309 "title": "Rate of Packets", 2310 "titleSize": "h6" 2311 }, 2312 { 2313 "collapse": false, 2314 "height": "250px", 2315 "panels": [ 2316 { 2317 "aliasColors": { 2318 2319 }, 2320 "bars": false, 2321 "dashLength": 10, 2322 "dashes": false, 2323 "datasource": "$datasource", 2324 "fill": 10, 2325 "id": 18, 2326 "interval": "1m", 2327 "legend": { 2328 "alignAsTable": true, 2329 "avg": false, 2330 "current": false, 2331 "max": false, 2332 "min": false, 2333 "rightSide": true, 2334 "show": true, 2335 "total": false, 2336 "values": false 2337 }, 2338 "lines": true, 2339 "linewidth": 0, 2340 "links": [ 2341 2342 ], 2343 "nullPointMode": "null as zero", 2344 "percentage": false, 2345 "pointradius": 5, 2346 "points": false, 2347 "renderer": "flot", 2348 "seriesOverrides": [ 2349 2350 ], 2351 "spaceLength": 10, 2352 "span": 6, 2353 "stack": true, 2354 "steppedLine": false, 2355 "targets": [ 2356 { 2357 "expr": "sum(irate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 2358 "format": "time_series", 2359 "intervalFactor": 2, 2360 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2361 "legendLink": null, 2362 "step": 10 2363 } 2364 ], 2365 "thresholds": [ 2366 2367 ], 2368 "timeFrom": null, 2369 "timeShift": null, 2370 "title": "Rate of Received Packets Dropped", 2371 "tooltip": { 2372 "shared": false, 2373 "sort": 2, 2374 "value_type": "individual" 2375 }, 2376 "type": "graph", 2377 "xaxis": { 2378 "buckets": null, 2379 "mode": "time", 2380 "name": null, 2381 "show": true, 2382 "values": [ 2383 2384 ] 2385 }, 2386 "yaxes": [ 2387 { 2388 "format": "pps", 2389 "label": null, 2390 "logBase": 1, 2391 "max": null, 2392 "min": 0, 2393 "show": true 2394 }, 2395 { 2396 "format": "short", 2397 "label": null, 2398 "logBase": 1, 2399 "max": null, 2400 "min": null, 2401 "show": false 2402 } 2403 ] 2404 }, 2405 { 2406 "aliasColors": { 2407 2408 }, 2409 "bars": false, 2410 "dashLength": 10, 2411 "dashes": false, 2412 "datasource": "$datasource", 2413 "fill": 10, 2414 "id": 19, 2415 "interval": "1m", 2416 "legend": { 2417 "alignAsTable": true, 2418 "avg": false, 2419 "current": false, 2420 "max": false, 2421 "min": false, 2422 "rightSide": true, 2423 "show": true, 2424 "total": false, 2425 "values": false 2426 }, 2427 "lines": true, 2428 "linewidth": 0, 2429 "links": [ 2430 2431 ], 2432 "nullPointMode": "null as zero", 2433 "percentage": false, 2434 "pointradius": 5, 2435 "points": false, 2436 "renderer": "flot", 2437 "seriesOverrides": [ 2438 2439 ], 2440 "spaceLength": 10, 2441 "span": 6, 2442 "stack": true, 2443 "steppedLine": false, 2444 "targets": [ 2445 { 2446 "expr": "sum(irate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)", 2447 "format": "time_series", 2448 "intervalFactor": 2, 2449 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2450 "legendLink": null, 2451 "step": 10 2452 } 2453 ], 2454 "thresholds": [ 2455 2456 ], 2457 "timeFrom": null, 2458 "timeShift": null, 2459 "title": "Rate of Transmitted Packets Dropped", 2460 "tooltip": { 2461 "shared": false, 2462 "sort": 2, 2463 "value_type": "individual" 2464 }, 2465 "type": "graph", 2466 "xaxis": { 2467 "buckets": null, 2468 "mode": "time", 2469 "name": null, 2470 "show": true, 2471 "values": [ 2472 2473 ] 2474 }, 2475 "yaxes": [ 2476 { 2477 "format": "pps", 2478 "label": null, 2479 "logBase": 1, 2480 "max": null, 2481 "min": 0, 2482 "show": true 2483 }, 2484 { 2485 "format": "short", 2486 "label": null, 2487 "logBase": 1, 2488 "max": null, 2489 "min": null, 2490 "show": false 2491 } 2492 ] 2493 } 2494 ], 2495 "repeat": null, 2496 "repeatIteration": null, 2497 "repeatRowId": null, 2498 "showTitle": true, 2499 "title": "Rate of Packets Dropped", 2500 "titleSize": "h6" 2501 }, 2502 { 2503 "collapse": false, 2504 "height": "250px", 2505 "panels": [ 2506 { 2507 "aliasColors": { 2508 2509 }, 2510 "bars": false, 2511 "dashLength": 10, 2512 "dashes": false, 2513 "datasource": "$datasource", 2514 "decimals": -1, 2515 "fill": 10, 2516 "id": 20, 2517 "interval": "1m", 2518 "legend": { 2519 "alignAsTable": true, 2520 "avg": false, 2521 "current": false, 2522 "max": false, 2523 "min": false, 2524 "rightSide": true, 2525 "show": true, 2526 "total": false, 2527 "values": false 2528 }, 2529 "lines": true, 2530 "linewidth": 0, 2531 "links": [ 2532 2533 ], 2534 "nullPointMode": "null as zero", 2535 "percentage": false, 2536 "pointradius": 5, 2537 "points": false, 2538 "renderer": "flot", 2539 "seriesOverrides": [ 2540 2541 ], 2542 "spaceLength": 10, 2543 "span": 6, 2544 "stack": true, 2545 "steppedLine": false, 2546 "targets": [ 2547 { 2548 "expr": "ceil(sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval])))", 2549 "format": "time_series", 2550 "intervalFactor": 2, 2551 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2552 "legendLink": null, 2553 "step": 10 2554 } 2555 ], 2556 "thresholds": [ 2557 2558 ], 2559 "timeFrom": null, 2560 "timeShift": null, 2561 "title": "IOPS(Reads+Writes)", 2562 "tooltip": { 2563 "shared": false, 2564 "sort": 2, 2565 "value_type": "individual" 2566 }, 2567 "type": "graph", 2568 "xaxis": { 2569 "buckets": null, 2570 "mode": "time", 2571 "name": null, 2572 "show": true, 2573 "values": [ 2574 2575 ] 2576 }, 2577 "yaxes": [ 2578 { 2579 "format": "short", 2580 "label": null, 2581 "logBase": 1, 2582 "max": null, 2583 "min": 0, 2584 "show": true 2585 }, 2586 { 2587 "format": "short", 2588 "label": null, 2589 "logBase": 1, 2590 "max": null, 2591 "min": null, 2592 "show": false 2593 } 2594 ] 2595 }, 2596 { 2597 "aliasColors": { 2598 2599 }, 2600 "bars": false, 2601 "dashLength": 10, 2602 "dashes": false, 2603 "datasource": "$datasource", 2604 "fill": 10, 2605 "id": 21, 2606 "interval": "1m", 2607 "legend": { 2608 "alignAsTable": true, 2609 "avg": false, 2610 "current": false, 2611 "max": false, 2612 "min": false, 2613 "rightSide": true, 2614 "show": true, 2615 "total": false, 2616 "values": false 2617 }, 2618 "lines": true, 2619 "linewidth": 0, 2620 "links": [ 2621 2622 ], 2623 "nullPointMode": "null as zero", 2624 "percentage": false, 2625 "pointradius": 5, 2626 "points": false, 2627 "renderer": "flot", 2628 "seriesOverrides": [ 2629 2630 ], 2631 "spaceLength": 10, 2632 "span": 6, 2633 "stack": true, 2634 "steppedLine": false, 2635 "targets": [ 2636 { 2637 "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2638 "format": "time_series", 2639 "intervalFactor": 2, 2640 "legendFormat": "{{`{{`}}namespace{{`}}`}}", 2641 "legendLink": null, 2642 "step": 10 2643 } 2644 ], 2645 "thresholds": [ 2646 2647 ], 2648 "timeFrom": null, 2649 "timeShift": null, 2650 "title": "ThroughPut(Read+Write)", 2651 "tooltip": { 2652 "shared": false, 2653 "sort": 2, 2654 "value_type": "individual" 2655 }, 2656 "type": "graph", 2657 "xaxis": { 2658 "buckets": null, 2659 "mode": "time", 2660 "name": null, 2661 "show": true, 2662 "values": [ 2663 2664 ] 2665 }, 2666 "yaxes": [ 2667 { 2668 "format": "Bps", 2669 "label": null, 2670 "logBase": 1, 2671 "max": null, 2672 "min": 0, 2673 "show": true 2674 }, 2675 { 2676 "format": "short", 2677 "label": null, 2678 "logBase": 1, 2679 "max": null, 2680 "min": null, 2681 "show": false 2682 } 2683 ] 2684 } 2685 ], 2686 "repeat": null, 2687 "repeatIteration": null, 2688 "repeatRowId": null, 2689 "showTitle": true, 2690 "title": "Storage IO", 2691 "titleSize": "h6" 2692 }, 2693 { 2694 "collapse": false, 2695 "height": "250px", 2696 "panels": [ 2697 { 2698 "aliasColors": { 2699 2700 }, 2701 "bars": false, 2702 "dashLength": 10, 2703 "dashes": false, 2704 "datasource": "$datasource", 2705 "fill": 1, 2706 "id": 22, 2707 "interval": "1m", 2708 "legend": { 2709 "alignAsTable": true, 2710 "avg": false, 2711 "current": false, 2712 "max": false, 2713 "min": false, 2714 "rightSide": true, 2715 "show": true, 2716 "total": false, 2717 "values": false 2718 }, 2719 "lines": true, 2720 "linewidth": 1, 2721 "links": [ 2722 2723 ], 2724 "nullPointMode": "null as zero", 2725 "percentage": false, 2726 "pointradius": 5, 2727 "points": false, 2728 "renderer": "flot", 2729 "seriesOverrides": [ 2730 2731 ], 2732 "sort": { 2733 "col": 4, 2734 "desc": true 2735 }, 2736 "spaceLength": 10, 2737 "span": 12, 2738 "stack": false, 2739 "steppedLine": false, 2740 "styles": [ 2741 { 2742 "alias": "Time", 2743 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2744 "pattern": "Time", 2745 "type": "hidden" 2746 }, 2747 { 2748 "alias": "IOPS(Reads)", 2749 "colorMode": null, 2750 "colors": [ 2751 2752 ], 2753 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2754 "decimals": -1, 2755 "link": false, 2756 "linkTargetBlank": false, 2757 "linkTooltip": "Drill down", 2758 "linkUrl": "", 2759 "pattern": "Value #A", 2760 "thresholds": [ 2761 2762 ], 2763 "type": "number", 2764 "unit": "short" 2765 }, 2766 { 2767 "alias": "IOPS(Writes)", 2768 "colorMode": null, 2769 "colors": [ 2770 2771 ], 2772 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2773 "decimals": -1, 2774 "link": false, 2775 "linkTargetBlank": false, 2776 "linkTooltip": "Drill down", 2777 "linkUrl": "", 2778 "pattern": "Value #B", 2779 "thresholds": [ 2780 2781 ], 2782 "type": "number", 2783 "unit": "short" 2784 }, 2785 { 2786 "alias": "IOPS(Reads + Writes)", 2787 "colorMode": null, 2788 "colors": [ 2789 2790 ], 2791 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2792 "decimals": -1, 2793 "link": false, 2794 "linkTargetBlank": false, 2795 "linkTooltip": "Drill down", 2796 "linkUrl": "", 2797 "pattern": "Value #C", 2798 "thresholds": [ 2799 2800 ], 2801 "type": "number", 2802 "unit": "short" 2803 }, 2804 { 2805 "alias": "Throughput(Read)", 2806 "colorMode": null, 2807 "colors": [ 2808 2809 ], 2810 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2811 "decimals": 2, 2812 "link": false, 2813 "linkTargetBlank": false, 2814 "linkTooltip": "Drill down", 2815 "linkUrl": "", 2816 "pattern": "Value #D", 2817 "thresholds": [ 2818 2819 ], 2820 "type": "number", 2821 "unit": "Bps" 2822 }, 2823 { 2824 "alias": "Throughput(Write)", 2825 "colorMode": null, 2826 "colors": [ 2827 2828 ], 2829 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2830 "decimals": 2, 2831 "link": false, 2832 "linkTargetBlank": false, 2833 "linkTooltip": "Drill down", 2834 "linkUrl": "", 2835 "pattern": "Value #E", 2836 "thresholds": [ 2837 2838 ], 2839 "type": "number", 2840 "unit": "Bps" 2841 }, 2842 { 2843 "alias": "Throughput(Read + Write)", 2844 "colorMode": null, 2845 "colors": [ 2846 2847 ], 2848 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2849 "decimals": 2, 2850 "link": false, 2851 "linkTargetBlank": false, 2852 "linkTooltip": "Drill down", 2853 "linkUrl": "", 2854 "pattern": "Value #F", 2855 "thresholds": [ 2856 2857 ], 2858 "type": "number", 2859 "unit": "Bps" 2860 }, 2861 { 2862 "alias": "Namespace", 2863 "colorMode": null, 2864 "colors": [ 2865 2866 ], 2867 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2868 "decimals": 2, 2869 "link": true, 2870 "linkTargetBlank": false, 2871 "linkTooltip": "Drill down to pods", 2872 "linkUrl": "/d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell", 2873 "pattern": "namespace", 2874 "thresholds": [ 2875 2876 ], 2877 "type": "number", 2878 "unit": "short" 2879 }, 2880 { 2881 "alias": "", 2882 "colorMode": null, 2883 "colors": [ 2884 2885 ], 2886 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2887 "decimals": 2, 2888 "pattern": "/.*/", 2889 "thresholds": [ 2890 2891 ], 2892 "type": "string", 2893 "unit": "short" 2894 } 2895 ], 2896 "targets": [ 2897 { 2898 "expr": "sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2899 "format": "table", 2900 "instant": true, 2901 "intervalFactor": 2, 2902 "legendFormat": "", 2903 "refId": "A", 2904 "step": 10 2905 }, 2906 { 2907 "expr": "sum by(namespace) (rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2908 "format": "table", 2909 "instant": true, 2910 "intervalFactor": 2, 2911 "legendFormat": "", 2912 "refId": "B", 2913 "step": 10 2914 }, 2915 { 2916 "expr": "sum by(namespace) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2917 "format": "table", 2918 "instant": true, 2919 "intervalFactor": 2, 2920 "legendFormat": "", 2921 "refId": "C", 2922 "step": 10 2923 }, 2924 { 2925 "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2926 "format": "table", 2927 "instant": true, 2928 "intervalFactor": 2, 2929 "legendFormat": "", 2930 "refId": "D", 2931 "step": 10 2932 }, 2933 { 2934 "expr": "sum by(namespace) (rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2935 "format": "table", 2936 "instant": true, 2937 "intervalFactor": 2, 2938 "legendFormat": "", 2939 "refId": "E", 2940 "step": 10 2941 }, 2942 { 2943 "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace!=\"\"}[$__rate_interval]))", 2944 "format": "table", 2945 "instant": true, 2946 "intervalFactor": 2, 2947 "legendFormat": "", 2948 "refId": "F", 2949 "step": 10 2950 } 2951 ], 2952 "thresholds": [ 2953 2954 ], 2955 "timeFrom": null, 2956 "timeShift": null, 2957 "title": "Current Storage IO", 2958 "tooltip": { 2959 "shared": false, 2960 "sort": 2, 2961 "value_type": "individual" 2962 }, 2963 "transform": "table", 2964 "type": "table", 2965 "xaxis": { 2966 "buckets": null, 2967 "mode": "time", 2968 "name": null, 2969 "show": true, 2970 "values": [ 2971 2972 ] 2973 }, 2974 "yaxes": [ 2975 { 2976 "format": "short", 2977 "label": null, 2978 "logBase": 1, 2979 "max": null, 2980 "min": 0, 2981 "show": true 2982 }, 2983 { 2984 "format": "short", 2985 "label": null, 2986 "logBase": 1, 2987 "max": null, 2988 "min": null, 2989 "show": false 2990 } 2991 ] 2992 } 2993 ], 2994 "repeat": null, 2995 "repeatIteration": null, 2996 "repeatRowId": null, 2997 "showTitle": true, 2998 "title": "Storage IO - Distribution", 2999 "titleSize": "h6" 3000 } 3001 ], 3002 "schemaVersion": 14, 3003 "style": "dark", 3004 "tags": [ 3005 "kubernetes-mixin" 3006 ], 3007 "templating": { 3008 "list": [ 3009 { 3010 "current": { 3011 "text": "default", 3012 "value": "default" 3013 }, 3014 "hide": 0, 3015 "label": "Data Source", 3016 "name": "datasource", 3017 "options": [ 3018 3019 ], 3020 "query": "prometheus", 3021 "refresh": 1, 3022 "regex": "", 3023 "type": "datasource" 3024 }, 3025 { 3026 "allValue": null, 3027 "current": { 3028 "text": "", 3029 "value": "" 3030 }, 3031 "datasource": "$datasource", 3032 "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }}, 3033 "includeAll": false, 3034 "label": null, 3035 "multi": false, 3036 "name": "cluster", 3037 "options": [ 3038 3039 ], 3040 "query": "label_values(up{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\"}, cluster)", 3041 "refresh": 2, 3042 "regex": "", 3043 "sort": 1, 3044 "tagValuesQuery": "", 3045 "tags": [ 3046 3047 ], 3048 "tagsQuery": "", 3049 "type": "query", 3050 "useTags": false 3051 } 3052 ] 3053 }, 3054 "time": { 3055 "from": "now-1h", 3056 "to": "now" 3057 }, 3058 "timepicker": { 3059 "refresh_intervals": [ 3060 "5s", 3061 "10s", 3062 "30s", 3063 "1m", 3064 "5m", 3065 "15m", 3066 "30m", 3067 "1h", 3068 "2h", 3069 "1d" 3070 ], 3071 "time_options": [ 3072 "5m", 3073 "15m", 3074 "1h", 3075 "6h", 3076 "12h", 3077 "24h", 3078 "2d", 3079 "7d", 3080 "30d" 3081 ] 3082 }, 3083 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 3084 "title": "Kubernetes / Compute Resources / Cluster", 3085 "uid": "efa86fd1d0c121a26444b636a3f509a8", 3086 "version": 0 3087 } 3088 {{- end }}