github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/k8s-resources-pod.yaml (about) 1 {{- /* 2 Generated from 'k8s-resources-pod' 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-pod" | 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-pod.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": "250px", 41 "panels": [ 42 { 43 "aliasColors": { 44 45 }, 46 "bars": false, 47 "dashLength": 10, 48 "dashes": false, 49 "datasource": "$datasource", 50 "fill": 10, 51 "id": 1, 52 "interval": "1m", 53 "legend": { 54 "alignAsTable": true, 55 "avg": false, 56 "current": false, 57 "max": false, 58 "min": false, 59 "rightSide": true, 60 "show": true, 61 "total": false, 62 "values": false 63 }, 64 "lines": true, 65 "linewidth": 0, 66 "links": [ 67 68 ], 69 "nullPointMode": "null as zero", 70 "percentage": false, 71 "pointradius": 5, 72 "points": false, 73 "renderer": "flot", 74 "seriesOverrides": [ 75 { 76 "alias": "requests", 77 "color": "#F2495C", 78 "fill": 0, 79 "hideTooltip": true, 80 "legend": true, 81 "linewidth": 2, 82 "stack": false 83 }, 84 { 85 "alias": "limits", 86 "color": "#FF9830", 87 "fill": 0, 88 "hideTooltip": true, 89 "legend": true, 90 "linewidth": 2, 91 "stack": false 92 } 93 ], 94 "spaceLength": 10, 95 "span": 12, 96 "stack": true, 97 "steppedLine": false, 98 "targets": [ 99 { 100 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=\"$pod\", cluster=\"$cluster\"}) by (container)", 101 "format": "time_series", 102 "intervalFactor": 2, 103 "legendFormat": "{{`{{`}}container{{`}}`}}", 104 "legendLink": null, 105 "step": 10 106 }, 107 { 108 "expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}\n)\n", 109 "format": "time_series", 110 "intervalFactor": 2, 111 "legendFormat": "requests", 112 "legendLink": null, 113 "step": 10 114 }, 115 { 116 "expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}\n)\n", 117 "format": "time_series", 118 "intervalFactor": 2, 119 "legendFormat": "limits", 120 "legendLink": null, 121 "step": 10 122 } 123 ], 124 "thresholds": [ 125 126 ], 127 "timeFrom": null, 128 "timeShift": null, 129 "title": "CPU Usage", 130 "tooltip": { 131 "shared": false, 132 "sort": 2, 133 "value_type": "individual" 134 }, 135 "type": "graph", 136 "xaxis": { 137 "buckets": null, 138 "mode": "time", 139 "name": null, 140 "show": true, 141 "values": [ 142 143 ] 144 }, 145 "yaxes": [ 146 { 147 "format": "short", 148 "label": null, 149 "logBase": 1, 150 "max": null, 151 "min": 0, 152 "show": true 153 }, 154 { 155 "format": "short", 156 "label": null, 157 "logBase": 1, 158 "max": null, 159 "min": null, 160 "show": false 161 } 162 ] 163 } 164 ], 165 "repeat": null, 166 "repeatIteration": null, 167 "repeatRowId": null, 168 "showTitle": true, 169 "title": "CPU Usage", 170 "titleSize": "h6" 171 }, 172 { 173 "collapse": false, 174 "height": "250px", 175 "panels": [ 176 { 177 "aliasColors": { 178 179 }, 180 "bars": false, 181 "dashLength": 10, 182 "dashes": false, 183 "datasource": "$datasource", 184 "fill": 10, 185 "id": 2, 186 "interval": "1m", 187 "legend": { 188 "alignAsTable": true, 189 "avg": false, 190 "current": true, 191 "max": true, 192 "min": false, 193 "rightSide": true, 194 "show": true, 195 "total": false, 196 "values": false 197 }, 198 "lines": true, 199 "linewidth": 0, 200 "links": [ 201 202 ], 203 "nullPointMode": "null as zero", 204 "percentage": false, 205 "pointradius": 5, 206 "points": false, 207 "renderer": "flot", 208 "seriesOverrides": [ 209 210 ], 211 "spaceLength": 10, 212 "span": 12, 213 "stack": true, 214 "steppedLine": false, 215 "targets": [ 216 { 217 "expr": "sum(increase(container_cpu_cfs_throttled_periods_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container) /sum(increase(container_cpu_cfs_periods_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container)", 218 "format": "time_series", 219 "intervalFactor": 2, 220 "legendFormat": "{{`{{`}}container{{`}}`}}", 221 "legendLink": null, 222 "step": 10 223 } 224 ], 225 "thresholds": [ 226 { 227 "colorMode": "critical", 228 "fill": true, 229 "line": true, 230 "op": "gt", 231 "value": 0.25, 232 "yaxis": "left" 233 } 234 ], 235 "timeFrom": null, 236 "timeShift": null, 237 "title": "CPU Throttling", 238 "tooltip": { 239 "shared": false, 240 "sort": 2, 241 "value_type": "individual" 242 }, 243 "type": "graph", 244 "xaxis": { 245 "buckets": null, 246 "mode": "time", 247 "name": null, 248 "show": true, 249 "values": [ 250 251 ] 252 }, 253 "yaxes": [ 254 { 255 "format": "percentunit", 256 "label": null, 257 "logBase": 1, 258 "max": 1, 259 "min": 0, 260 "show": true 261 }, 262 { 263 "format": "short", 264 "label": null, 265 "logBase": 1, 266 "max": null, 267 "min": null, 268 "show": false 269 } 270 ] 271 } 272 ], 273 "repeat": null, 274 "repeatIteration": null, 275 "repeatRowId": null, 276 "showTitle": true, 277 "title": "CPU Throttling", 278 "titleSize": "h6" 279 }, 280 { 281 "collapse": false, 282 "height": "250px", 283 "panels": [ 284 { 285 "aliasColors": { 286 287 }, 288 "bars": false, 289 "dashLength": 10, 290 "dashes": false, 291 "datasource": "$datasource", 292 "fill": 1, 293 "id": 3, 294 "interval": "1m", 295 "legend": { 296 "alignAsTable": true, 297 "avg": false, 298 "current": false, 299 "max": false, 300 "min": false, 301 "rightSide": true, 302 "show": true, 303 "total": false, 304 "values": false 305 }, 306 "lines": true, 307 "linewidth": 1, 308 "links": [ 309 310 ], 311 "nullPointMode": "null as zero", 312 "percentage": false, 313 "pointradius": 5, 314 "points": false, 315 "renderer": "flot", 316 "seriesOverrides": [ 317 318 ], 319 "spaceLength": 10, 320 "span": 12, 321 "stack": false, 322 "steppedLine": false, 323 "styles": [ 324 { 325 "alias": "Time", 326 "dateFormat": "YYYY-MM-DD HH:mm:ss", 327 "pattern": "Time", 328 "type": "hidden" 329 }, 330 { 331 "alias": "CPU Usage", 332 "colorMode": null, 333 "colors": [ 334 335 ], 336 "dateFormat": "YYYY-MM-DD HH:mm:ss", 337 "decimals": 2, 338 "link": false, 339 "linkTargetBlank": false, 340 "linkTooltip": "Drill down", 341 "linkUrl": "", 342 "pattern": "Value #A", 343 "thresholds": [ 344 345 ], 346 "type": "number", 347 "unit": "short" 348 }, 349 { 350 "alias": "CPU Requests", 351 "colorMode": null, 352 "colors": [ 353 354 ], 355 "dateFormat": "YYYY-MM-DD HH:mm:ss", 356 "decimals": 2, 357 "link": false, 358 "linkTargetBlank": false, 359 "linkTooltip": "Drill down", 360 "linkUrl": "", 361 "pattern": "Value #B", 362 "thresholds": [ 363 364 ], 365 "type": "number", 366 "unit": "short" 367 }, 368 { 369 "alias": "CPU Requests %", 370 "colorMode": null, 371 "colors": [ 372 373 ], 374 "dateFormat": "YYYY-MM-DD HH:mm:ss", 375 "decimals": 2, 376 "link": false, 377 "linkTargetBlank": false, 378 "linkTooltip": "Drill down", 379 "linkUrl": "", 380 "pattern": "Value #C", 381 "thresholds": [ 382 383 ], 384 "type": "number", 385 "unit": "percentunit" 386 }, 387 { 388 "alias": "CPU Limits", 389 "colorMode": null, 390 "colors": [ 391 392 ], 393 "dateFormat": "YYYY-MM-DD HH:mm:ss", 394 "decimals": 2, 395 "link": false, 396 "linkTargetBlank": false, 397 "linkTooltip": "Drill down", 398 "linkUrl": "", 399 "pattern": "Value #D", 400 "thresholds": [ 401 402 ], 403 "type": "number", 404 "unit": "short" 405 }, 406 { 407 "alias": "CPU Limits %", 408 "colorMode": null, 409 "colors": [ 410 411 ], 412 "dateFormat": "YYYY-MM-DD HH:mm:ss", 413 "decimals": 2, 414 "link": false, 415 "linkTargetBlank": false, 416 "linkTooltip": "Drill down", 417 "linkUrl": "", 418 "pattern": "Value #E", 419 "thresholds": [ 420 421 ], 422 "type": "number", 423 "unit": "percentunit" 424 }, 425 { 426 "alias": "Container", 427 "colorMode": null, 428 "colors": [ 429 430 ], 431 "dateFormat": "YYYY-MM-DD HH:mm:ss", 432 "decimals": 2, 433 "link": false, 434 "linkTargetBlank": false, 435 "linkTooltip": "Drill down", 436 "linkUrl": "", 437 "pattern": "container", 438 "thresholds": [ 439 440 ], 441 "type": "number", 442 "unit": "short" 443 }, 444 { 445 "alias": "", 446 "colorMode": null, 447 "colors": [ 448 449 ], 450 "dateFormat": "YYYY-MM-DD HH:mm:ss", 451 "decimals": 2, 452 "pattern": "/.*/", 453 "thresholds": [ 454 455 ], 456 "type": "string", 457 "unit": "short" 458 } 459 ], 460 "targets": [ 461 { 462 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 463 "format": "table", 464 "instant": true, 465 "intervalFactor": 2, 466 "legendFormat": "", 467 "refId": "A", 468 "step": 10 469 }, 470 { 471 "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 472 "format": "table", 473 "instant": true, 474 "intervalFactor": 2, 475 "legendFormat": "", 476 "refId": "B", 477 "step": 10 478 }, 479 { 480 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 481 "format": "table", 482 "instant": true, 483 "intervalFactor": 2, 484 "legendFormat": "", 485 "refId": "C", 486 "step": 10 487 }, 488 { 489 "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 490 "format": "table", 491 "instant": true, 492 "intervalFactor": 2, 493 "legendFormat": "", 494 "refId": "D", 495 "step": 10 496 }, 497 { 498 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 499 "format": "table", 500 "instant": true, 501 "intervalFactor": 2, 502 "legendFormat": "", 503 "refId": "E", 504 "step": 10 505 } 506 ], 507 "thresholds": [ 508 509 ], 510 "timeFrom": null, 511 "timeShift": null, 512 "title": "CPU Quota", 513 "tooltip": { 514 "shared": false, 515 "sort": 2, 516 "value_type": "individual" 517 }, 518 "transform": "table", 519 "type": "table", 520 "xaxis": { 521 "buckets": null, 522 "mode": "time", 523 "name": null, 524 "show": true, 525 "values": [ 526 527 ] 528 }, 529 "yaxes": [ 530 { 531 "format": "short", 532 "label": null, 533 "logBase": 1, 534 "max": null, 535 "min": 0, 536 "show": true 537 }, 538 { 539 "format": "short", 540 "label": null, 541 "logBase": 1, 542 "max": null, 543 "min": null, 544 "show": false 545 } 546 ] 547 } 548 ], 549 "repeat": null, 550 "repeatIteration": null, 551 "repeatRowId": null, 552 "showTitle": true, 553 "title": "CPU Quota", 554 "titleSize": "h6" 555 }, 556 { 557 "collapse": false, 558 "height": "250px", 559 "panels": [ 560 { 561 "aliasColors": { 562 563 }, 564 "bars": false, 565 "dashLength": 10, 566 "dashes": false, 567 "datasource": "$datasource", 568 "fill": 10, 569 "id": 4, 570 "interval": "1m", 571 "legend": { 572 "alignAsTable": true, 573 "avg": false, 574 "current": false, 575 "max": false, 576 "min": false, 577 "rightSide": true, 578 "show": true, 579 "total": false, 580 "values": false 581 }, 582 "lines": true, 583 "linewidth": 0, 584 "links": [ 585 586 ], 587 "nullPointMode": "null as zero", 588 "percentage": false, 589 "pointradius": 5, 590 "points": false, 591 "renderer": "flot", 592 "seriesOverrides": [ 593 { 594 "alias": "requests", 595 "color": "#F2495C", 596 "dashes": true, 597 "fill": 0, 598 "hideTooltip": true, 599 "legend": true, 600 "linewidth": 2, 601 "stack": false 602 }, 603 { 604 "alias": "limits", 605 "color": "#FF9830", 606 "dashes": true, 607 "fill": 0, 608 "hideTooltip": true, 609 "legend": true, 610 "linewidth": 2, 611 "stack": false 612 } 613 ], 614 "spaceLength": 10, 615 "span": 12, 616 "stack": true, 617 "steppedLine": false, 618 "targets": [ 619 { 620 "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container)", 621 "format": "time_series", 622 "intervalFactor": 2, 623 "legendFormat": "{{`{{`}}container{{`}}`}}", 624 "legendLink": null, 625 "step": 10 626 }, 627 { 628 "expr": "sum(\n kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"memory\"}\n)\n", 629 "format": "time_series", 630 "intervalFactor": 2, 631 "legendFormat": "requests", 632 "legendLink": null, 633 "step": 10 634 }, 635 { 636 "expr": "sum(\n kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"memory\"}\n)\n", 637 "format": "time_series", 638 "intervalFactor": 2, 639 "legendFormat": "limits", 640 "legendLink": null, 641 "step": 10 642 } 643 ], 644 "thresholds": [ 645 646 ], 647 "timeFrom": null, 648 "timeShift": null, 649 "title": "Memory Usage (WSS)", 650 "tooltip": { 651 "shared": false, 652 "sort": 2, 653 "value_type": "individual" 654 }, 655 "type": "graph", 656 "xaxis": { 657 "buckets": null, 658 "mode": "time", 659 "name": null, 660 "show": true, 661 "values": [ 662 663 ] 664 }, 665 "yaxes": [ 666 { 667 "format": "bytes", 668 "label": null, 669 "logBase": 1, 670 "max": null, 671 "min": 0, 672 "show": true 673 }, 674 { 675 "format": "short", 676 "label": null, 677 "logBase": 1, 678 "max": null, 679 "min": null, 680 "show": false 681 } 682 ] 683 } 684 ], 685 "repeat": null, 686 "repeatIteration": null, 687 "repeatRowId": null, 688 "showTitle": true, 689 "title": "Memory Usage", 690 "titleSize": "h6" 691 }, 692 { 693 "collapse": false, 694 "height": "250px", 695 "panels": [ 696 { 697 "aliasColors": { 698 699 }, 700 "bars": false, 701 "dashLength": 10, 702 "dashes": false, 703 "datasource": "$datasource", 704 "fill": 1, 705 "id": 5, 706 "interval": "1m", 707 "legend": { 708 "alignAsTable": true, 709 "avg": false, 710 "current": false, 711 "max": false, 712 "min": false, 713 "rightSide": true, 714 "show": true, 715 "total": false, 716 "values": false 717 }, 718 "lines": true, 719 "linewidth": 1, 720 "links": [ 721 722 ], 723 "nullPointMode": "null as zero", 724 "percentage": false, 725 "pointradius": 5, 726 "points": false, 727 "renderer": "flot", 728 "seriesOverrides": [ 729 730 ], 731 "spaceLength": 10, 732 "span": 12, 733 "stack": false, 734 "steppedLine": false, 735 "styles": [ 736 { 737 "alias": "Time", 738 "dateFormat": "YYYY-MM-DD HH:mm:ss", 739 "pattern": "Time", 740 "type": "hidden" 741 }, 742 { 743 "alias": "Memory Usage (WSS)", 744 "colorMode": null, 745 "colors": [ 746 747 ], 748 "dateFormat": "YYYY-MM-DD HH:mm:ss", 749 "decimals": 2, 750 "link": false, 751 "linkTargetBlank": false, 752 "linkTooltip": "Drill down", 753 "linkUrl": "", 754 "pattern": "Value #A", 755 "thresholds": [ 756 757 ], 758 "type": "number", 759 "unit": "bytes" 760 }, 761 { 762 "alias": "Memory Requests", 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 #B", 774 "thresholds": [ 775 776 ], 777 "type": "number", 778 "unit": "bytes" 779 }, 780 { 781 "alias": "Memory 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 #C", 793 "thresholds": [ 794 795 ], 796 "type": "number", 797 "unit": "percentunit" 798 }, 799 { 800 "alias": "Memory Limits", 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 #D", 812 "thresholds": [ 813 814 ], 815 "type": "number", 816 "unit": "bytes" 817 }, 818 { 819 "alias": "Memory 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 #E", 831 "thresholds": [ 832 833 ], 834 "type": "number", 835 "unit": "percentunit" 836 }, 837 { 838 "alias": "Memory Usage (RSS)", 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 #F", 850 "thresholds": [ 851 852 ], 853 "type": "number", 854 "unit": "bytes" 855 }, 856 { 857 "alias": "Memory Usage (Cache)", 858 "colorMode": null, 859 "colors": [ 860 861 ], 862 "dateFormat": "YYYY-MM-DD HH:mm:ss", 863 "decimals": 2, 864 "link": false, 865 "linkTargetBlank": false, 866 "linkTooltip": "Drill down", 867 "linkUrl": "", 868 "pattern": "Value #G", 869 "thresholds": [ 870 871 ], 872 "type": "number", 873 "unit": "bytes" 874 }, 875 { 876 "alias": "Memory Usage (Swap)", 877 "colorMode": null, 878 "colors": [ 879 880 ], 881 "dateFormat": "YYYY-MM-DD HH:mm:ss", 882 "decimals": 2, 883 "link": false, 884 "linkTargetBlank": false, 885 "linkTooltip": "Drill down", 886 "linkUrl": "", 887 "pattern": "Value #H", 888 "thresholds": [ 889 890 ], 891 "type": "number", 892 "unit": "bytes" 893 }, 894 { 895 "alias": "Container", 896 "colorMode": null, 897 "colors": [ 898 899 ], 900 "dateFormat": "YYYY-MM-DD HH:mm:ss", 901 "decimals": 2, 902 "link": false, 903 "linkTargetBlank": false, 904 "linkTooltip": "Drill down", 905 "linkUrl": "", 906 "pattern": "container", 907 "thresholds": [ 908 909 ], 910 "type": "number", 911 "unit": "short" 912 }, 913 { 914 "alias": "", 915 "colorMode": null, 916 "colors": [ 917 918 ], 919 "dateFormat": "YYYY-MM-DD HH:mm:ss", 920 "decimals": 2, 921 "pattern": "/.*/", 922 "thresholds": [ 923 924 ], 925 "type": "string", 926 "unit": "short" 927 } 928 ], 929 "targets": [ 930 { 931 "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container)", 932 "format": "table", 933 "instant": true, 934 "intervalFactor": 2, 935 "legendFormat": "", 936 "refId": "A", 937 "step": 10 938 }, 939 { 940 "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 941 "format": "table", 942 "instant": true, 943 "intervalFactor": 2, 944 "legendFormat": "", 945 "refId": "B", 946 "step": 10 947 }, 948 { 949 "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", image!=\"\"}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 950 "format": "table", 951 "instant": true, 952 "intervalFactor": 2, 953 "legendFormat": "", 954 "refId": "C", 955 "step": 10 956 }, 957 { 958 "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 959 "format": "table", 960 "instant": true, 961 "intervalFactor": 2, 962 "legendFormat": "", 963 "refId": "D", 964 "step": 10 965 }, 966 { 967 "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", 968 "format": "table", 969 "instant": true, 970 "intervalFactor": 2, 971 "legendFormat": "", 972 "refId": "E", 973 "step": 10 974 }, 975 { 976 "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)", 977 "format": "table", 978 "instant": true, 979 "intervalFactor": 2, 980 "legendFormat": "", 981 "refId": "F", 982 "step": 10 983 }, 984 { 985 "expr": "sum(container_memory_cache{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)", 986 "format": "table", 987 "instant": true, 988 "intervalFactor": 2, 989 "legendFormat": "", 990 "refId": "G", 991 "step": 10 992 }, 993 { 994 "expr": "sum(container_memory_swap{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)", 995 "format": "table", 996 "instant": true, 997 "intervalFactor": 2, 998 "legendFormat": "", 999 "refId": "H", 1000 "step": 10 1001 } 1002 ], 1003 "thresholds": [ 1004 1005 ], 1006 "timeFrom": null, 1007 "timeShift": null, 1008 "title": "Memory Quota", 1009 "tooltip": { 1010 "shared": false, 1011 "sort": 2, 1012 "value_type": "individual" 1013 }, 1014 "transform": "table", 1015 "type": "table", 1016 "xaxis": { 1017 "buckets": null, 1018 "mode": "time", 1019 "name": null, 1020 "show": true, 1021 "values": [ 1022 1023 ] 1024 }, 1025 "yaxes": [ 1026 { 1027 "format": "short", 1028 "label": null, 1029 "logBase": 1, 1030 "max": null, 1031 "min": 0, 1032 "show": true 1033 }, 1034 { 1035 "format": "short", 1036 "label": null, 1037 "logBase": 1, 1038 "max": null, 1039 "min": null, 1040 "show": false 1041 } 1042 ] 1043 } 1044 ], 1045 "repeat": null, 1046 "repeatIteration": null, 1047 "repeatRowId": null, 1048 "showTitle": true, 1049 "title": "Memory Quota", 1050 "titleSize": "h6" 1051 }, 1052 { 1053 "collapse": false, 1054 "height": "250px", 1055 "panels": [ 1056 { 1057 "aliasColors": { 1058 1059 }, 1060 "bars": false, 1061 "dashLength": 10, 1062 "dashes": false, 1063 "datasource": "$datasource", 1064 "fill": 10, 1065 "id": 6, 1066 "interval": "1m", 1067 "legend": { 1068 "alignAsTable": true, 1069 "avg": false, 1070 "current": false, 1071 "max": false, 1072 "min": false, 1073 "rightSide": true, 1074 "show": true, 1075 "total": false, 1076 "values": false 1077 }, 1078 "lines": true, 1079 "linewidth": 0, 1080 "links": [ 1081 1082 ], 1083 "nullPointMode": "null as zero", 1084 "percentage": false, 1085 "pointradius": 5, 1086 "points": false, 1087 "renderer": "flot", 1088 "seriesOverrides": [ 1089 1090 ], 1091 "spaceLength": 10, 1092 "span": 6, 1093 "stack": true, 1094 "steppedLine": false, 1095 "targets": [ 1096 { 1097 "expr": "sum(irate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1098 "format": "time_series", 1099 "intervalFactor": 2, 1100 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1101 "legendLink": null, 1102 "step": 10 1103 } 1104 ], 1105 "thresholds": [ 1106 1107 ], 1108 "timeFrom": null, 1109 "timeShift": null, 1110 "title": "Receive Bandwidth", 1111 "tooltip": { 1112 "shared": false, 1113 "sort": 2, 1114 "value_type": "individual" 1115 }, 1116 "type": "graph", 1117 "xaxis": { 1118 "buckets": null, 1119 "mode": "time", 1120 "name": null, 1121 "show": true, 1122 "values": [ 1123 1124 ] 1125 }, 1126 "yaxes": [ 1127 { 1128 "format": "Bps", 1129 "label": null, 1130 "logBase": 1, 1131 "max": null, 1132 "min": 0, 1133 "show": true 1134 }, 1135 { 1136 "format": "short", 1137 "label": null, 1138 "logBase": 1, 1139 "max": null, 1140 "min": null, 1141 "show": false 1142 } 1143 ] 1144 }, 1145 { 1146 "aliasColors": { 1147 1148 }, 1149 "bars": false, 1150 "dashLength": 10, 1151 "dashes": false, 1152 "datasource": "$datasource", 1153 "fill": 10, 1154 "id": 7, 1155 "interval": "1m", 1156 "legend": { 1157 "alignAsTable": true, 1158 "avg": false, 1159 "current": false, 1160 "max": false, 1161 "min": false, 1162 "rightSide": true, 1163 "show": true, 1164 "total": false, 1165 "values": false 1166 }, 1167 "lines": true, 1168 "linewidth": 0, 1169 "links": [ 1170 1171 ], 1172 "nullPointMode": "null as zero", 1173 "percentage": false, 1174 "pointradius": 5, 1175 "points": false, 1176 "renderer": "flot", 1177 "seriesOverrides": [ 1178 1179 ], 1180 "spaceLength": 10, 1181 "span": 6, 1182 "stack": true, 1183 "steppedLine": false, 1184 "targets": [ 1185 { 1186 "expr": "sum(irate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1187 "format": "time_series", 1188 "intervalFactor": 2, 1189 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1190 "legendLink": null, 1191 "step": 10 1192 } 1193 ], 1194 "thresholds": [ 1195 1196 ], 1197 "timeFrom": null, 1198 "timeShift": null, 1199 "title": "Transmit Bandwidth", 1200 "tooltip": { 1201 "shared": false, 1202 "sort": 2, 1203 "value_type": "individual" 1204 }, 1205 "type": "graph", 1206 "xaxis": { 1207 "buckets": null, 1208 "mode": "time", 1209 "name": null, 1210 "show": true, 1211 "values": [ 1212 1213 ] 1214 }, 1215 "yaxes": [ 1216 { 1217 "format": "Bps", 1218 "label": null, 1219 "logBase": 1, 1220 "max": null, 1221 "min": 0, 1222 "show": true 1223 }, 1224 { 1225 "format": "short", 1226 "label": null, 1227 "logBase": 1, 1228 "max": null, 1229 "min": null, 1230 "show": false 1231 } 1232 ] 1233 } 1234 ], 1235 "repeat": null, 1236 "repeatIteration": null, 1237 "repeatRowId": null, 1238 "showTitle": true, 1239 "title": "Bandwidth", 1240 "titleSize": "h6" 1241 }, 1242 { 1243 "collapse": false, 1244 "height": "250px", 1245 "panels": [ 1246 { 1247 "aliasColors": { 1248 1249 }, 1250 "bars": false, 1251 "dashLength": 10, 1252 "dashes": false, 1253 "datasource": "$datasource", 1254 "fill": 10, 1255 "id": 8, 1256 "interval": "1m", 1257 "legend": { 1258 "alignAsTable": true, 1259 "avg": false, 1260 "current": false, 1261 "max": false, 1262 "min": false, 1263 "rightSide": true, 1264 "show": true, 1265 "total": false, 1266 "values": false 1267 }, 1268 "lines": true, 1269 "linewidth": 0, 1270 "links": [ 1271 1272 ], 1273 "nullPointMode": "null as zero", 1274 "percentage": false, 1275 "pointradius": 5, 1276 "points": false, 1277 "renderer": "flot", 1278 "seriesOverrides": [ 1279 1280 ], 1281 "spaceLength": 10, 1282 "span": 6, 1283 "stack": true, 1284 "steppedLine": false, 1285 "targets": [ 1286 { 1287 "expr": "sum(irate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1288 "format": "time_series", 1289 "intervalFactor": 2, 1290 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1291 "legendLink": null, 1292 "step": 10 1293 } 1294 ], 1295 "thresholds": [ 1296 1297 ], 1298 "timeFrom": null, 1299 "timeShift": null, 1300 "title": "Rate of Received Packets", 1301 "tooltip": { 1302 "shared": false, 1303 "sort": 2, 1304 "value_type": "individual" 1305 }, 1306 "type": "graph", 1307 "xaxis": { 1308 "buckets": null, 1309 "mode": "time", 1310 "name": null, 1311 "show": true, 1312 "values": [ 1313 1314 ] 1315 }, 1316 "yaxes": [ 1317 { 1318 "format": "pps", 1319 "label": null, 1320 "logBase": 1, 1321 "max": null, 1322 "min": 0, 1323 "show": true 1324 }, 1325 { 1326 "format": "short", 1327 "label": null, 1328 "logBase": 1, 1329 "max": null, 1330 "min": null, 1331 "show": false 1332 } 1333 ] 1334 }, 1335 { 1336 "aliasColors": { 1337 1338 }, 1339 "bars": false, 1340 "dashLength": 10, 1341 "dashes": false, 1342 "datasource": "$datasource", 1343 "fill": 10, 1344 "id": 9, 1345 "interval": "1m", 1346 "legend": { 1347 "alignAsTable": true, 1348 "avg": false, 1349 "current": false, 1350 "max": false, 1351 "min": false, 1352 "rightSide": true, 1353 "show": true, 1354 "total": false, 1355 "values": false 1356 }, 1357 "lines": true, 1358 "linewidth": 0, 1359 "links": [ 1360 1361 ], 1362 "nullPointMode": "null as zero", 1363 "percentage": false, 1364 "pointradius": 5, 1365 "points": false, 1366 "renderer": "flot", 1367 "seriesOverrides": [ 1368 1369 ], 1370 "spaceLength": 10, 1371 "span": 6, 1372 "stack": true, 1373 "steppedLine": false, 1374 "targets": [ 1375 { 1376 "expr": "sum(irate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1377 "format": "time_series", 1378 "intervalFactor": 2, 1379 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1380 "legendLink": null, 1381 "step": 10 1382 } 1383 ], 1384 "thresholds": [ 1385 1386 ], 1387 "timeFrom": null, 1388 "timeShift": null, 1389 "title": "Rate of Transmitted Packets", 1390 "tooltip": { 1391 "shared": false, 1392 "sort": 2, 1393 "value_type": "individual" 1394 }, 1395 "type": "graph", 1396 "xaxis": { 1397 "buckets": null, 1398 "mode": "time", 1399 "name": null, 1400 "show": true, 1401 "values": [ 1402 1403 ] 1404 }, 1405 "yaxes": [ 1406 { 1407 "format": "pps", 1408 "label": null, 1409 "logBase": 1, 1410 "max": null, 1411 "min": 0, 1412 "show": true 1413 }, 1414 { 1415 "format": "short", 1416 "label": null, 1417 "logBase": 1, 1418 "max": null, 1419 "min": null, 1420 "show": false 1421 } 1422 ] 1423 } 1424 ], 1425 "repeat": null, 1426 "repeatIteration": null, 1427 "repeatRowId": null, 1428 "showTitle": true, 1429 "title": "Rate of Packets", 1430 "titleSize": "h6" 1431 }, 1432 { 1433 "collapse": false, 1434 "height": "250px", 1435 "panels": [ 1436 { 1437 "aliasColors": { 1438 1439 }, 1440 "bars": false, 1441 "dashLength": 10, 1442 "dashes": false, 1443 "datasource": "$datasource", 1444 "fill": 10, 1445 "id": 10, 1446 "interval": "1m", 1447 "legend": { 1448 "alignAsTable": true, 1449 "avg": false, 1450 "current": false, 1451 "max": false, 1452 "min": false, 1453 "rightSide": true, 1454 "show": true, 1455 "total": false, 1456 "values": false 1457 }, 1458 "lines": true, 1459 "linewidth": 0, 1460 "links": [ 1461 1462 ], 1463 "nullPointMode": "null as zero", 1464 "percentage": false, 1465 "pointradius": 5, 1466 "points": false, 1467 "renderer": "flot", 1468 "seriesOverrides": [ 1469 1470 ], 1471 "spaceLength": 10, 1472 "span": 6, 1473 "stack": true, 1474 "steppedLine": false, 1475 "targets": [ 1476 { 1477 "expr": "sum(irate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1478 "format": "time_series", 1479 "intervalFactor": 2, 1480 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1481 "legendLink": null, 1482 "step": 10 1483 } 1484 ], 1485 "thresholds": [ 1486 1487 ], 1488 "timeFrom": null, 1489 "timeShift": null, 1490 "title": "Rate of Received Packets Dropped", 1491 "tooltip": { 1492 "shared": false, 1493 "sort": 2, 1494 "value_type": "individual" 1495 }, 1496 "type": "graph", 1497 "xaxis": { 1498 "buckets": null, 1499 "mode": "time", 1500 "name": null, 1501 "show": true, 1502 "values": [ 1503 1504 ] 1505 }, 1506 "yaxes": [ 1507 { 1508 "format": "pps", 1509 "label": null, 1510 "logBase": 1, 1511 "max": null, 1512 "min": 0, 1513 "show": true 1514 }, 1515 { 1516 "format": "short", 1517 "label": null, 1518 "logBase": 1, 1519 "max": null, 1520 "min": null, 1521 "show": false 1522 } 1523 ] 1524 }, 1525 { 1526 "aliasColors": { 1527 1528 }, 1529 "bars": false, 1530 "dashLength": 10, 1531 "dashes": false, 1532 "datasource": "$datasource", 1533 "fill": 10, 1534 "id": 11, 1535 "interval": "1m", 1536 "legend": { 1537 "alignAsTable": true, 1538 "avg": false, 1539 "current": false, 1540 "max": false, 1541 "min": false, 1542 "rightSide": true, 1543 "show": true, 1544 "total": false, 1545 "values": false 1546 }, 1547 "lines": true, 1548 "linewidth": 0, 1549 "links": [ 1550 1551 ], 1552 "nullPointMode": "null as zero", 1553 "percentage": false, 1554 "pointradius": 5, 1555 "points": false, 1556 "renderer": "flot", 1557 "seriesOverrides": [ 1558 1559 ], 1560 "spaceLength": 10, 1561 "span": 6, 1562 "stack": true, 1563 "steppedLine": false, 1564 "targets": [ 1565 { 1566 "expr": "sum(irate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)", 1567 "format": "time_series", 1568 "intervalFactor": 2, 1569 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1570 "legendLink": null, 1571 "step": 10 1572 } 1573 ], 1574 "thresholds": [ 1575 1576 ], 1577 "timeFrom": null, 1578 "timeShift": null, 1579 "title": "Rate of Transmitted Packets Dropped", 1580 "tooltip": { 1581 "shared": false, 1582 "sort": 2, 1583 "value_type": "individual" 1584 }, 1585 "type": "graph", 1586 "xaxis": { 1587 "buckets": null, 1588 "mode": "time", 1589 "name": null, 1590 "show": true, 1591 "values": [ 1592 1593 ] 1594 }, 1595 "yaxes": [ 1596 { 1597 "format": "pps", 1598 "label": null, 1599 "logBase": 1, 1600 "max": null, 1601 "min": 0, 1602 "show": true 1603 }, 1604 { 1605 "format": "short", 1606 "label": null, 1607 "logBase": 1, 1608 "max": null, 1609 "min": null, 1610 "show": false 1611 } 1612 ] 1613 } 1614 ], 1615 "repeat": null, 1616 "repeatIteration": null, 1617 "repeatRowId": null, 1618 "showTitle": true, 1619 "title": "Rate of Packets Dropped", 1620 "titleSize": "h6" 1621 }, 1622 { 1623 "collapse": false, 1624 "height": "250px", 1625 "panels": [ 1626 { 1627 "aliasColors": { 1628 1629 }, 1630 "bars": false, 1631 "dashLength": 10, 1632 "dashes": false, 1633 "datasource": "$datasource", 1634 "decimals": -1, 1635 "fill": 10, 1636 "id": 12, 1637 "interval": "1m", 1638 "legend": { 1639 "alignAsTable": true, 1640 "avg": false, 1641 "current": false, 1642 "max": false, 1643 "min": false, 1644 "rightSide": true, 1645 "show": true, 1646 "total": false, 1647 "values": false 1648 }, 1649 "lines": true, 1650 "linewidth": 0, 1651 "links": [ 1652 1653 ], 1654 "nullPointMode": "null as zero", 1655 "percentage": false, 1656 "pointradius": 5, 1657 "points": false, 1658 "renderer": "flot", 1659 "seriesOverrides": [ 1660 1661 ], 1662 "spaceLength": 10, 1663 "span": 6, 1664 "stack": true, 1665 "steppedLine": false, 1666 "targets": [ 1667 { 1668 "expr": "ceil(sum by(pod) (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=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])))", 1669 "format": "time_series", 1670 "intervalFactor": 2, 1671 "legendFormat": "Reads", 1672 "legendLink": null, 1673 "step": 10 1674 }, 1675 { 1676 "expr": "ceil(sum by(pod) (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=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])))", 1677 "format": "time_series", 1678 "intervalFactor": 2, 1679 "legendFormat": "Writes", 1680 "legendLink": null, 1681 "step": 10 1682 } 1683 ], 1684 "thresholds": [ 1685 1686 ], 1687 "timeFrom": null, 1688 "timeShift": null, 1689 "title": "IOPS", 1690 "tooltip": { 1691 "shared": false, 1692 "sort": 2, 1693 "value_type": "individual" 1694 }, 1695 "type": "graph", 1696 "xaxis": { 1697 "buckets": null, 1698 "mode": "time", 1699 "name": null, 1700 "show": true, 1701 "values": [ 1702 1703 ] 1704 }, 1705 "yaxes": [ 1706 { 1707 "format": "short", 1708 "label": null, 1709 "logBase": 1, 1710 "max": null, 1711 "min": 0, 1712 "show": true 1713 }, 1714 { 1715 "format": "short", 1716 "label": null, 1717 "logBase": 1, 1718 "max": null, 1719 "min": null, 1720 "show": false 1721 } 1722 ] 1723 }, 1724 { 1725 "aliasColors": { 1726 1727 }, 1728 "bars": false, 1729 "dashLength": 10, 1730 "dashes": false, 1731 "datasource": "$datasource", 1732 "fill": 10, 1733 "id": 13, 1734 "interval": "1m", 1735 "legend": { 1736 "alignAsTable": true, 1737 "avg": false, 1738 "current": false, 1739 "max": false, 1740 "min": false, 1741 "rightSide": true, 1742 "show": true, 1743 "total": false, 1744 "values": false 1745 }, 1746 "lines": true, 1747 "linewidth": 0, 1748 "links": [ 1749 1750 ], 1751 "nullPointMode": "null as zero", 1752 "percentage": false, 1753 "pointradius": 5, 1754 "points": false, 1755 "renderer": "flot", 1756 "seriesOverrides": [ 1757 1758 ], 1759 "spaceLength": 10, 1760 "span": 6, 1761 "stack": true, 1762 "steppedLine": false, 1763 "targets": [ 1764 { 1765 "expr": "sum by(pod) (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=\"$namespace\", pod=~\"$pod\"}[$__rate_interval]))", 1766 "format": "time_series", 1767 "intervalFactor": 2, 1768 "legendFormat": "Reads", 1769 "legendLink": null, 1770 "step": 10 1771 }, 1772 { 1773 "expr": "sum by(pod) (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=\"$namespace\", pod=~\"$pod\"}[$__rate_interval]))", 1774 "format": "time_series", 1775 "intervalFactor": 2, 1776 "legendFormat": "Writes", 1777 "legendLink": null, 1778 "step": 10 1779 } 1780 ], 1781 "thresholds": [ 1782 1783 ], 1784 "timeFrom": null, 1785 "timeShift": null, 1786 "title": "ThroughPut", 1787 "tooltip": { 1788 "shared": false, 1789 "sort": 2, 1790 "value_type": "individual" 1791 }, 1792 "type": "graph", 1793 "xaxis": { 1794 "buckets": null, 1795 "mode": "time", 1796 "name": null, 1797 "show": true, 1798 "values": [ 1799 1800 ] 1801 }, 1802 "yaxes": [ 1803 { 1804 "format": "Bps", 1805 "label": null, 1806 "logBase": 1, 1807 "max": null, 1808 "min": 0, 1809 "show": true 1810 }, 1811 { 1812 "format": "short", 1813 "label": null, 1814 "logBase": 1, 1815 "max": null, 1816 "min": null, 1817 "show": false 1818 } 1819 ] 1820 } 1821 ], 1822 "repeat": null, 1823 "repeatIteration": null, 1824 "repeatRowId": null, 1825 "showTitle": true, 1826 "title": "Storage IO - Distribution(Pod - Read & Writes)", 1827 "titleSize": "h6" 1828 }, 1829 { 1830 "collapse": false, 1831 "height": "250px", 1832 "panels": [ 1833 { 1834 "aliasColors": { 1835 1836 }, 1837 "bars": false, 1838 "dashLength": 10, 1839 "dashes": false, 1840 "datasource": "$datasource", 1841 "decimals": -1, 1842 "fill": 10, 1843 "id": 14, 1844 "interval": "1m", 1845 "legend": { 1846 "alignAsTable": true, 1847 "avg": false, 1848 "current": false, 1849 "max": false, 1850 "min": false, 1851 "rightSide": true, 1852 "show": true, 1853 "total": false, 1854 "values": false 1855 }, 1856 "lines": true, 1857 "linewidth": 0, 1858 "links": [ 1859 1860 ], 1861 "nullPointMode": "null as zero", 1862 "percentage": false, 1863 "pointradius": 5, 1864 "points": false, 1865 "renderer": "flot", 1866 "seriesOverrides": [ 1867 1868 ], 1869 "spaceLength": 10, 1870 "span": 6, 1871 "stack": true, 1872 "steppedLine": false, 1873 "targets": [ 1874 { 1875 "expr": "ceil(sum by(container) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval])))", 1876 "format": "time_series", 1877 "intervalFactor": 2, 1878 "legendFormat": "{{`{{`}}container{{`}}`}}", 1879 "legendLink": null, 1880 "step": 10 1881 } 1882 ], 1883 "thresholds": [ 1884 1885 ], 1886 "timeFrom": null, 1887 "timeShift": null, 1888 "title": "IOPS(Reads+Writes)", 1889 "tooltip": { 1890 "shared": false, 1891 "sort": 2, 1892 "value_type": "individual" 1893 }, 1894 "type": "graph", 1895 "xaxis": { 1896 "buckets": null, 1897 "mode": "time", 1898 "name": null, 1899 "show": true, 1900 "values": [ 1901 1902 ] 1903 }, 1904 "yaxes": [ 1905 { 1906 "format": "short", 1907 "label": null, 1908 "logBase": 1, 1909 "max": null, 1910 "min": 0, 1911 "show": true 1912 }, 1913 { 1914 "format": "short", 1915 "label": null, 1916 "logBase": 1, 1917 "max": null, 1918 "min": null, 1919 "show": false 1920 } 1921 ] 1922 }, 1923 { 1924 "aliasColors": { 1925 1926 }, 1927 "bars": false, 1928 "dashLength": 10, 1929 "dashes": false, 1930 "datasource": "$datasource", 1931 "fill": 10, 1932 "id": 15, 1933 "interval": "1m", 1934 "legend": { 1935 "alignAsTable": true, 1936 "avg": false, 1937 "current": false, 1938 "max": false, 1939 "min": false, 1940 "rightSide": true, 1941 "show": true, 1942 "total": false, 1943 "values": false 1944 }, 1945 "lines": true, 1946 "linewidth": 0, 1947 "links": [ 1948 1949 ], 1950 "nullPointMode": "null as zero", 1951 "percentage": false, 1952 "pointradius": 5, 1953 "points": false, 1954 "renderer": "flot", 1955 "seriesOverrides": [ 1956 1957 ], 1958 "spaceLength": 10, 1959 "span": 6, 1960 "stack": true, 1961 "steppedLine": false, 1962 "targets": [ 1963 { 1964 "expr": "sum by(container) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 1965 "format": "time_series", 1966 "intervalFactor": 2, 1967 "legendFormat": "{{`{{`}}container{{`}}`}}", 1968 "legendLink": null, 1969 "step": 10 1970 } 1971 ], 1972 "thresholds": [ 1973 1974 ], 1975 "timeFrom": null, 1976 "timeShift": null, 1977 "title": "ThroughPut(Read+Write)", 1978 "tooltip": { 1979 "shared": false, 1980 "sort": 2, 1981 "value_type": "individual" 1982 }, 1983 "type": "graph", 1984 "xaxis": { 1985 "buckets": null, 1986 "mode": "time", 1987 "name": null, 1988 "show": true, 1989 "values": [ 1990 1991 ] 1992 }, 1993 "yaxes": [ 1994 { 1995 "format": "Bps", 1996 "label": null, 1997 "logBase": 1, 1998 "max": null, 1999 "min": 0, 2000 "show": true 2001 }, 2002 { 2003 "format": "short", 2004 "label": null, 2005 "logBase": 1, 2006 "max": null, 2007 "min": null, 2008 "show": false 2009 } 2010 ] 2011 } 2012 ], 2013 "repeat": null, 2014 "repeatIteration": null, 2015 "repeatRowId": null, 2016 "showTitle": true, 2017 "title": "Storage IO - Distribution(Containers)", 2018 "titleSize": "h6" 2019 }, 2020 { 2021 "collapse": false, 2022 "height": "250px", 2023 "panels": [ 2024 { 2025 "aliasColors": { 2026 2027 }, 2028 "bars": false, 2029 "dashLength": 10, 2030 "dashes": false, 2031 "datasource": "$datasource", 2032 "fill": 1, 2033 "id": 16, 2034 "interval": "1m", 2035 "legend": { 2036 "alignAsTable": true, 2037 "avg": false, 2038 "current": false, 2039 "max": false, 2040 "min": false, 2041 "rightSide": true, 2042 "show": true, 2043 "total": false, 2044 "values": false 2045 }, 2046 "lines": true, 2047 "linewidth": 1, 2048 "links": [ 2049 2050 ], 2051 "nullPointMode": "null as zero", 2052 "percentage": false, 2053 "pointradius": 5, 2054 "points": false, 2055 "renderer": "flot", 2056 "seriesOverrides": [ 2057 2058 ], 2059 "sort": { 2060 "col": 4, 2061 "desc": true 2062 }, 2063 "spaceLength": 10, 2064 "span": 12, 2065 "stack": false, 2066 "steppedLine": false, 2067 "styles": [ 2068 { 2069 "alias": "Time", 2070 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2071 "pattern": "Time", 2072 "type": "hidden" 2073 }, 2074 { 2075 "alias": "IOPS(Reads)", 2076 "colorMode": null, 2077 "colors": [ 2078 2079 ], 2080 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2081 "decimals": -1, 2082 "link": false, 2083 "linkTargetBlank": false, 2084 "linkTooltip": "Drill down", 2085 "linkUrl": "", 2086 "pattern": "Value #A", 2087 "thresholds": [ 2088 2089 ], 2090 "type": "number", 2091 "unit": "short" 2092 }, 2093 { 2094 "alias": "IOPS(Writes)", 2095 "colorMode": null, 2096 "colors": [ 2097 2098 ], 2099 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2100 "decimals": -1, 2101 "link": false, 2102 "linkTargetBlank": false, 2103 "linkTooltip": "Drill down", 2104 "linkUrl": "", 2105 "pattern": "Value #B", 2106 "thresholds": [ 2107 2108 ], 2109 "type": "number", 2110 "unit": "short" 2111 }, 2112 { 2113 "alias": "IOPS(Reads + Writes)", 2114 "colorMode": null, 2115 "colors": [ 2116 2117 ], 2118 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2119 "decimals": -1, 2120 "link": false, 2121 "linkTargetBlank": false, 2122 "linkTooltip": "Drill down", 2123 "linkUrl": "", 2124 "pattern": "Value #C", 2125 "thresholds": [ 2126 2127 ], 2128 "type": "number", 2129 "unit": "short" 2130 }, 2131 { 2132 "alias": "Throughput(Read)", 2133 "colorMode": null, 2134 "colors": [ 2135 2136 ], 2137 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2138 "decimals": 2, 2139 "link": false, 2140 "linkTargetBlank": false, 2141 "linkTooltip": "Drill down", 2142 "linkUrl": "", 2143 "pattern": "Value #D", 2144 "thresholds": [ 2145 2146 ], 2147 "type": "number", 2148 "unit": "Bps" 2149 }, 2150 { 2151 "alias": "Throughput(Write)", 2152 "colorMode": null, 2153 "colors": [ 2154 2155 ], 2156 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2157 "decimals": 2, 2158 "link": false, 2159 "linkTargetBlank": false, 2160 "linkTooltip": "Drill down", 2161 "linkUrl": "", 2162 "pattern": "Value #E", 2163 "thresholds": [ 2164 2165 ], 2166 "type": "number", 2167 "unit": "Bps" 2168 }, 2169 { 2170 "alias": "Throughput(Read + Write)", 2171 "colorMode": null, 2172 "colors": [ 2173 2174 ], 2175 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2176 "decimals": 2, 2177 "link": false, 2178 "linkTargetBlank": false, 2179 "linkTooltip": "Drill down", 2180 "linkUrl": "", 2181 "pattern": "Value #F", 2182 "thresholds": [ 2183 2184 ], 2185 "type": "number", 2186 "unit": "Bps" 2187 }, 2188 { 2189 "alias": "Container", 2190 "colorMode": null, 2191 "colors": [ 2192 2193 ], 2194 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2195 "decimals": 2, 2196 "link": false, 2197 "linkTargetBlank": false, 2198 "linkTooltip": "Drill down", 2199 "linkUrl": "", 2200 "pattern": "container", 2201 "thresholds": [ 2202 2203 ], 2204 "type": "number", 2205 "unit": "short" 2206 }, 2207 { 2208 "alias": "", 2209 "colorMode": null, 2210 "colors": [ 2211 2212 ], 2213 "dateFormat": "YYYY-MM-DD HH:mm:ss", 2214 "decimals": 2, 2215 "pattern": "/.*/", 2216 "thresholds": [ 2217 2218 ], 2219 "type": "string", 2220 "unit": "short" 2221 } 2222 ], 2223 "targets": [ 2224 { 2225 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2226 "format": "table", 2227 "instant": true, 2228 "intervalFactor": 2, 2229 "legendFormat": "", 2230 "refId": "A", 2231 "step": 10 2232 }, 2233 { 2234 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2235 "format": "table", 2236 "instant": true, 2237 "intervalFactor": 2, 2238 "legendFormat": "", 2239 "refId": "B", 2240 "step": 10 2241 }, 2242 { 2243 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2244 "format": "table", 2245 "instant": true, 2246 "intervalFactor": 2, 2247 "legendFormat": "", 2248 "refId": "C", 2249 "step": 10 2250 }, 2251 { 2252 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2253 "format": "table", 2254 "instant": true, 2255 "intervalFactor": 2, 2256 "legendFormat": "", 2257 "refId": "D", 2258 "step": 10 2259 }, 2260 { 2261 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2262 "format": "table", 2263 "instant": true, 2264 "intervalFactor": 2, 2265 "legendFormat": "", 2266 "refId": "E", 2267 "step": 10 2268 }, 2269 { 2270 "expr": "sum by(container) (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=\"$namespace\", pod=\"$pod\"}[$__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=\"$namespace\", pod=\"$pod\"}[$__rate_interval]))", 2271 "format": "table", 2272 "instant": true, 2273 "intervalFactor": 2, 2274 "legendFormat": "", 2275 "refId": "F", 2276 "step": 10 2277 } 2278 ], 2279 "thresholds": [ 2280 2281 ], 2282 "timeFrom": null, 2283 "timeShift": null, 2284 "title": "Current Storage IO", 2285 "tooltip": { 2286 "shared": false, 2287 "sort": 2, 2288 "value_type": "individual" 2289 }, 2290 "transform": "table", 2291 "type": "table", 2292 "xaxis": { 2293 "buckets": null, 2294 "mode": "time", 2295 "name": null, 2296 "show": true, 2297 "values": [ 2298 2299 ] 2300 }, 2301 "yaxes": [ 2302 { 2303 "format": "short", 2304 "label": null, 2305 "logBase": 1, 2306 "max": null, 2307 "min": 0, 2308 "show": true 2309 }, 2310 { 2311 "format": "short", 2312 "label": null, 2313 "logBase": 1, 2314 "max": null, 2315 "min": null, 2316 "show": false 2317 } 2318 ] 2319 } 2320 ], 2321 "repeat": null, 2322 "repeatIteration": null, 2323 "repeatRowId": null, 2324 "showTitle": true, 2325 "title": "Storage IO - Distribution", 2326 "titleSize": "h6" 2327 } 2328 ], 2329 "schemaVersion": 14, 2330 "style": "dark", 2331 "tags": [ 2332 "kubernetes-mixin" 2333 ], 2334 "templating": { 2335 "list": [ 2336 { 2337 "current": { 2338 "text": "default", 2339 "value": "default" 2340 }, 2341 "hide": 0, 2342 "label": "Data Source", 2343 "name": "datasource", 2344 "options": [ 2345 2346 ], 2347 "query": "prometheus", 2348 "refresh": 1, 2349 "regex": "", 2350 "type": "datasource" 2351 }, 2352 { 2353 "allValue": null, 2354 "current": { 2355 "text": "", 2356 "value": "" 2357 }, 2358 "datasource": "$datasource", 2359 "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }}, 2360 "includeAll": false, 2361 "label": null, 2362 "multi": false, 2363 "name": "cluster", 2364 "options": [ 2365 2366 ], 2367 "query": "label_values(up{job=\"kube-state-metrics\"}, cluster)", 2368 "refresh": 2, 2369 "regex": "", 2370 "sort": 1, 2371 "tagValuesQuery": "", 2372 "tags": [ 2373 2374 ], 2375 "tagsQuery": "", 2376 "type": "query", 2377 "useTags": false 2378 }, 2379 { 2380 "allValue": null, 2381 "current": { 2382 "text": "", 2383 "value": "" 2384 }, 2385 "datasource": "$datasource", 2386 "hide": 0, 2387 "includeAll": false, 2388 "label": null, 2389 "multi": false, 2390 "name": "namespace", 2391 "options": [ 2392 2393 ], 2394 "query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"}, namespace)", 2395 "refresh": 2, 2396 "regex": "", 2397 "sort": 1, 2398 "tagValuesQuery": "", 2399 "tags": [ 2400 2401 ], 2402 "tagsQuery": "", 2403 "type": "query", 2404 "useTags": false 2405 }, 2406 { 2407 "allValue": null, 2408 "current": { 2409 "text": "", 2410 "value": "" 2411 }, 2412 "datasource": "$datasource", 2413 "hide": 0, 2414 "includeAll": false, 2415 "label": null, 2416 "multi": false, 2417 "name": "pod", 2418 "options": [ 2419 2420 ], 2421 "query": "label_values(kube_pod_info{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\"}, pod)", 2422 "refresh": 2, 2423 "regex": "", 2424 "sort": 1, 2425 "tagValuesQuery": "", 2426 "tags": [ 2427 2428 ], 2429 "tagsQuery": "", 2430 "type": "query", 2431 "useTags": false 2432 } 2433 ] 2434 }, 2435 "time": { 2436 "from": "now-1h", 2437 "to": "now" 2438 }, 2439 "timepicker": { 2440 "refresh_intervals": [ 2441 "5s", 2442 "10s", 2443 "30s", 2444 "1m", 2445 "5m", 2446 "15m", 2447 "30m", 2448 "1h", 2449 "2h", 2450 "1d" 2451 ], 2452 "time_options": [ 2453 "5m", 2454 "15m", 2455 "1h", 2456 "6h", 2457 "12h", 2458 "24h", 2459 "2d", 2460 "7d", 2461 "30d" 2462 ] 2463 }, 2464 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 2465 "title": "Kubernetes / Compute Resources / Pod", 2466 "uid": "6581e46e4e5c7ba40a07646395ef7b23", 2467 "version": 0 2468 } 2469 {{- end }}