github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/namespace-by-pod.yaml (about) 1 {{- /* 2 Generated from 'namespace-by-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" $) "namespace-by-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 namespace-by-pod.json: |- 23 { 24 "__inputs": [ 25 26 ], 27 "__requires": [ 28 29 ], 30 "annotations": { 31 "list": [ 32 { 33 "builtIn": 1, 34 "datasource": "-- Grafana --", 35 "enable": true, 36 "hide": true, 37 "iconColor": "rgba(0, 211, 255, 1)", 38 "name": "Annotations & Alerts", 39 "type": "dashboard" 40 } 41 ] 42 }, 43 "editable": true, 44 "gnetId": null, 45 "graphTooltip": 0, 46 "hideControls": false, 47 "id": null, 48 "links": [ 49 50 ], 51 "panels": [ 52 { 53 "collapse": false, 54 "collapsed": false, 55 "gridPos": { 56 "h": 1, 57 "w": 24, 58 "x": 0, 59 "y": 0 60 }, 61 "id": 2, 62 "panels": [ 63 64 ], 65 "repeat": null, 66 "repeatIteration": null, 67 "repeatRowId": null, 68 "showTitle": true, 69 "title": "Current Bandwidth", 70 "titleSize": "h6", 71 "type": "row" 72 }, 73 { 74 "cacheTimeout": null, 75 "colorBackground": false, 76 "colorValue": false, 77 "colors": [ 78 "#299c46", 79 "rgba(237, 129, 40, 0.89)", 80 "#d44a3a" 81 ], 82 "datasource": "$datasource", 83 "decimals": 0, 84 "format": "time_series", 85 "gauge": { 86 "maxValue": 100, 87 "minValue": 0, 88 "show": false, 89 "thresholdLabels": false, 90 "thresholdMarkers": true 91 }, 92 "gridPos": { 93 "h": 9, 94 "w": 12, 95 "x": 0, 96 "y": 1 97 }, 98 "height": 9, 99 "id": 3, 100 "interval": null, 101 "links": [ 102 103 ], 104 "mappingType": 1, 105 "mappingTypes": [ 106 { 107 "name": "value to text", 108 "value": 1 109 }, 110 { 111 "name": "range to text", 112 "value": 2 113 } 114 ], 115 "maxDataPoints": 100, 116 "minSpan": 12, 117 "nullPointMode": "connected", 118 "nullText": null, 119 "options": { 120 "fieldOptions": { 121 "calcs": [ 122 "last" 123 ], 124 "defaults": { 125 "max": 10000000000, 126 "min": 0, 127 "title": "$namespace", 128 "unit": "Bps" 129 }, 130 "mappings": [ 131 132 ], 133 "override": { 134 135 }, 136 "thresholds": [ 137 { 138 "color": "dark-green", 139 "index": 0, 140 "value": null 141 }, 142 { 143 "color": "dark-yellow", 144 "index": 1, 145 "value": 5000000000 146 }, 147 { 148 "color": "dark-red", 149 "index": 2, 150 "value": 7000000000 151 } 152 ], 153 "values": false 154 } 155 }, 156 "postfix": "", 157 "postfixFontSize": "50%", 158 "prefix": "", 159 "prefixFontSize": "50%", 160 "rangeMaps": [ 161 { 162 "from": "null", 163 "text": "N/A", 164 "to": "null" 165 } 166 ], 167 "span": 12, 168 "sparkline": { 169 "fillColor": "rgba(31, 118, 189, 0.18)", 170 "full": false, 171 "lineColor": "rgb(31, 120, 193)", 172 "show": false 173 }, 174 "tableColumn": "", 175 "targets": [ 176 { 177 "expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution]))", 178 "format": "time_series", 179 "instant": null, 180 "intervalFactor": 1, 181 "legendFormat": "", 182 "refId": "A" 183 } 184 ], 185 "thresholds": "", 186 "timeFrom": null, 187 "timeShift": null, 188 "title": "Current Rate of Bytes Received", 189 "type": "gauge", 190 "valueFontSize": "80%", 191 "valueMaps": [ 192 { 193 "op": "=", 194 "text": "N/A", 195 "value": "null" 196 } 197 ], 198 "valueName": "current" 199 }, 200 { 201 "cacheTimeout": null, 202 "colorBackground": false, 203 "colorValue": false, 204 "colors": [ 205 "#299c46", 206 "rgba(237, 129, 40, 0.89)", 207 "#d44a3a" 208 ], 209 "datasource": "$datasource", 210 "decimals": 0, 211 "format": "time_series", 212 "gauge": { 213 "maxValue": 100, 214 "minValue": 0, 215 "show": false, 216 "thresholdLabels": false, 217 "thresholdMarkers": true 218 }, 219 "gridPos": { 220 "h": 9, 221 "w": 12, 222 "x": 12, 223 "y": 1 224 }, 225 "height": 9, 226 "id": 4, 227 "interval": null, 228 "links": [ 229 230 ], 231 "mappingType": 1, 232 "mappingTypes": [ 233 { 234 "name": "value to text", 235 "value": 1 236 }, 237 { 238 "name": "range to text", 239 "value": 2 240 } 241 ], 242 "maxDataPoints": 100, 243 "minSpan": 12, 244 "nullPointMode": "connected", 245 "nullText": null, 246 "options": { 247 "fieldOptions": { 248 "calcs": [ 249 "last" 250 ], 251 "defaults": { 252 "max": 10000000000, 253 "min": 0, 254 "title": "$namespace", 255 "unit": "Bps" 256 }, 257 "mappings": [ 258 259 ], 260 "override": { 261 262 }, 263 "thresholds": [ 264 { 265 "color": "dark-green", 266 "index": 0, 267 "value": null 268 }, 269 { 270 "color": "dark-yellow", 271 "index": 1, 272 "value": 5000000000 273 }, 274 { 275 "color": "dark-red", 276 "index": 2, 277 "value": 7000000000 278 } 279 ], 280 "values": false 281 } 282 }, 283 "postfix": "", 284 "postfixFontSize": "50%", 285 "prefix": "", 286 "prefixFontSize": "50%", 287 "rangeMaps": [ 288 { 289 "from": "null", 290 "text": "N/A", 291 "to": "null" 292 } 293 ], 294 "span": 12, 295 "sparkline": { 296 "fillColor": "rgba(31, 118, 189, 0.18)", 297 "full": false, 298 "lineColor": "rgb(31, 120, 193)", 299 "show": false 300 }, 301 "tableColumn": "", 302 "targets": [ 303 { 304 "expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution]))", 305 "format": "time_series", 306 "instant": null, 307 "intervalFactor": 1, 308 "legendFormat": "", 309 "refId": "A" 310 } 311 ], 312 "thresholds": "", 313 "timeFrom": null, 314 "timeShift": null, 315 "title": "Current Rate of Bytes Transmitted", 316 "type": "gauge", 317 "valueFontSize": "80%", 318 "valueMaps": [ 319 { 320 "op": "=", 321 "text": "N/A", 322 "value": "null" 323 } 324 ], 325 "valueName": "current" 326 }, 327 { 328 "columns": [ 329 { 330 "text": "Time", 331 "value": "Time" 332 }, 333 { 334 "text": "Value #A", 335 "value": "Value #A" 336 }, 337 { 338 "text": "Value #B", 339 "value": "Value #B" 340 }, 341 { 342 "text": "Value #C", 343 "value": "Value #C" 344 }, 345 { 346 "text": "Value #D", 347 "value": "Value #D" 348 }, 349 { 350 "text": "Value #E", 351 "value": "Value #E" 352 }, 353 { 354 "text": "Value #F", 355 "value": "Value #F" 356 }, 357 { 358 "text": "pod", 359 "value": "pod" 360 } 361 ], 362 "datasource": "$datasource", 363 "fill": 1, 364 "fontSize": "100%", 365 "gridPos": { 366 "h": 9, 367 "w": 24, 368 "x": 0, 369 "y": 10 370 }, 371 "id": 5, 372 "lines": true, 373 "linewidth": 1, 374 "links": [ 375 376 ], 377 "minSpan": 24, 378 "nullPointMode": "null as zero", 379 "renderer": "flot", 380 "scroll": true, 381 "showHeader": true, 382 "sort": { 383 "col": 0, 384 "desc": false 385 }, 386 "spaceLength": 10, 387 "span": 24, 388 "styles": [ 389 { 390 "alias": "Time", 391 "colorMode": null, 392 "colors": [ 393 394 ], 395 "dateFormat": "YYYY-MM-DD HH:mm:ss", 396 "decimals": 2, 397 "link": false, 398 "linkTooltip": "Drill down", 399 "linkUrl": "", 400 "pattern": "Time", 401 "thresholds": [ 402 403 ], 404 "type": "hidden", 405 "unit": "short" 406 }, 407 { 408 "alias": "Bandwidth Received", 409 "colorMode": null, 410 "colors": [ 411 412 ], 413 "dateFormat": "YYYY-MM-DD HH:mm:ss", 414 "decimals": 2, 415 "link": false, 416 "linkTooltip": "Drill down", 417 "linkUrl": "", 418 "pattern": "Value #A", 419 "thresholds": [ 420 421 ], 422 "type": "number", 423 "unit": "Bps" 424 }, 425 { 426 "alias": "Bandwidth Transmitted", 427 "colorMode": null, 428 "colors": [ 429 430 ], 431 "dateFormat": "YYYY-MM-DD HH:mm:ss", 432 "decimals": 2, 433 "link": false, 434 "linkTooltip": "Drill down", 435 "linkUrl": "", 436 "pattern": "Value #B", 437 "thresholds": [ 438 439 ], 440 "type": "number", 441 "unit": "Bps" 442 }, 443 { 444 "alias": "Rate of Received Packets", 445 "colorMode": null, 446 "colors": [ 447 448 ], 449 "dateFormat": "YYYY-MM-DD HH:mm:ss", 450 "decimals": 2, 451 "link": false, 452 "linkTooltip": "Drill down", 453 "linkUrl": "", 454 "pattern": "Value #C", 455 "thresholds": [ 456 457 ], 458 "type": "number", 459 "unit": "pps" 460 }, 461 { 462 "alias": "Rate of Transmitted Packets", 463 "colorMode": null, 464 "colors": [ 465 466 ], 467 "dateFormat": "YYYY-MM-DD HH:mm:ss", 468 "decimals": 2, 469 "link": false, 470 "linkTooltip": "Drill down", 471 "linkUrl": "", 472 "pattern": "Value #D", 473 "thresholds": [ 474 475 ], 476 "type": "number", 477 "unit": "pps" 478 }, 479 { 480 "alias": "Rate of Received Packets Dropped", 481 "colorMode": null, 482 "colors": [ 483 484 ], 485 "dateFormat": "YYYY-MM-DD HH:mm:ss", 486 "decimals": 2, 487 "link": false, 488 "linkTooltip": "Drill down", 489 "linkUrl": "", 490 "pattern": "Value #E", 491 "thresholds": [ 492 493 ], 494 "type": "number", 495 "unit": "pps" 496 }, 497 { 498 "alias": "Rate of Transmitted Packets Dropped", 499 "colorMode": null, 500 "colors": [ 501 502 ], 503 "dateFormat": "YYYY-MM-DD HH:mm:ss", 504 "decimals": 2, 505 "link": false, 506 "linkTooltip": "Drill down", 507 "linkUrl": "", 508 "pattern": "Value #F", 509 "thresholds": [ 510 511 ], 512 "type": "number", 513 "unit": "pps" 514 }, 515 { 516 "alias": "Pod", 517 "colorMode": null, 518 "colors": [ 519 520 ], 521 "dateFormat": "YYYY-MM-DD HH:mm:ss", 522 "decimals": 2, 523 "link": true, 524 "linkTooltip": "Drill down", 525 "linkUrl": "d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod?orgId=1&refresh=30s&var-namespace=$namespace&var-pod=$__cell", 526 "pattern": "pod", 527 "thresholds": [ 528 529 ], 530 "type": "number", 531 "unit": "short" 532 } 533 ], 534 "targets": [ 535 { 536 "expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 537 "format": "table", 538 "instant": true, 539 "intervalFactor": 2, 540 "legendFormat": "", 541 "refId": "A", 542 "step": 10 543 }, 544 { 545 "expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 546 "format": "table", 547 "instant": true, 548 "intervalFactor": 2, 549 "legendFormat": "", 550 "refId": "B", 551 "step": 10 552 }, 553 { 554 "expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 555 "format": "table", 556 "instant": true, 557 "intervalFactor": 2, 558 "legendFormat": "", 559 "refId": "C", 560 "step": 10 561 }, 562 { 563 "expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 564 "format": "table", 565 "instant": true, 566 "intervalFactor": 2, 567 "legendFormat": "", 568 "refId": "D", 569 "step": 10 570 }, 571 { 572 "expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 573 "format": "table", 574 "instant": true, 575 "intervalFactor": 2, 576 "legendFormat": "", 577 "refId": "E", 578 "step": 10 579 }, 580 { 581 "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 582 "format": "table", 583 "instant": true, 584 "intervalFactor": 2, 585 "legendFormat": "", 586 "refId": "F", 587 "step": 10 588 } 589 ], 590 "timeFrom": null, 591 "timeShift": null, 592 "title": "Current Status", 593 "type": "table" 594 }, 595 { 596 "collapse": false, 597 "collapsed": false, 598 "gridPos": { 599 "h": 1, 600 "w": 24, 601 "x": 0, 602 "y": 19 603 }, 604 "id": 6, 605 "panels": [ 606 607 ], 608 "repeat": null, 609 "repeatIteration": null, 610 "repeatRowId": null, 611 "showTitle": true, 612 "title": "Bandwidth", 613 "titleSize": "h6", 614 "type": "row" 615 }, 616 { 617 "aliasColors": { 618 619 }, 620 "bars": false, 621 "dashLength": 10, 622 "dashes": false, 623 "datasource": "$datasource", 624 "fill": 2, 625 "fillGradient": 0, 626 "gridPos": { 627 "h": 9, 628 "w": 12, 629 "x": 0, 630 "y": 20 631 }, 632 "id": 7, 633 "legend": { 634 "alignAsTable": false, 635 "avg": false, 636 "current": false, 637 "hideEmpty": true, 638 "hideZero": true, 639 "max": false, 640 "min": false, 641 "rightSide": false, 642 "show": true, 643 "sideWidth": null, 644 "total": false, 645 "values": false 646 }, 647 "lines": true, 648 "linewidth": 2, 649 "links": [ 650 651 ], 652 "minSpan": 12, 653 "nullPointMode": "connected", 654 "paceLength": 10, 655 "percentage": false, 656 "pointradius": 5, 657 "points": false, 658 "renderer": "flot", 659 "repeat": null, 660 "seriesOverrides": [ 661 662 ], 663 "spaceLength": 10, 664 "span": 12, 665 "stack": true, 666 "steppedLine": false, 667 "targets": [ 668 { 669 "expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 670 "format": "time_series", 671 "intervalFactor": 1, 672 "legendFormat": "{{`{{`}}pod{{`}}`}}", 673 "refId": "A", 674 "step": 10 675 } 676 ], 677 "thresholds": [ 678 679 ], 680 "timeFrom": null, 681 "timeShift": null, 682 "title": "Receive Bandwidth", 683 "tooltip": { 684 "shared": true, 685 "sort": 2, 686 "value_type": "individual" 687 }, 688 "type": "graph", 689 "xaxis": { 690 "buckets": null, 691 "mode": "time", 692 "name": null, 693 "show": true, 694 "values": [ 695 696 ] 697 }, 698 "yaxes": [ 699 { 700 "format": "Bps", 701 "label": null, 702 "logBase": 1, 703 "max": null, 704 "min": 0, 705 "show": true 706 }, 707 { 708 "format": "Bps", 709 "label": null, 710 "logBase": 1, 711 "max": null, 712 "min": 0, 713 "show": true 714 } 715 ] 716 }, 717 { 718 "aliasColors": { 719 720 }, 721 "bars": false, 722 "dashLength": 10, 723 "dashes": false, 724 "datasource": "$datasource", 725 "fill": 2, 726 "fillGradient": 0, 727 "gridPos": { 728 "h": 9, 729 "w": 12, 730 "x": 12, 731 "y": 20 732 }, 733 "id": 8, 734 "legend": { 735 "alignAsTable": false, 736 "avg": false, 737 "current": false, 738 "hideEmpty": true, 739 "hideZero": true, 740 "max": false, 741 "min": false, 742 "rightSide": false, 743 "show": true, 744 "sideWidth": null, 745 "total": false, 746 "values": false 747 }, 748 "lines": true, 749 "linewidth": 2, 750 "links": [ 751 752 ], 753 "minSpan": 12, 754 "nullPointMode": "connected", 755 "paceLength": 10, 756 "percentage": false, 757 "pointradius": 5, 758 "points": false, 759 "renderer": "flot", 760 "repeat": null, 761 "seriesOverrides": [ 762 763 ], 764 "spaceLength": 10, 765 "span": 12, 766 "stack": true, 767 "steppedLine": false, 768 "targets": [ 769 { 770 "expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 771 "format": "time_series", 772 "intervalFactor": 1, 773 "legendFormat": "{{`{{`}}pod{{`}}`}}", 774 "refId": "A", 775 "step": 10 776 } 777 ], 778 "thresholds": [ 779 780 ], 781 "timeFrom": null, 782 "timeShift": null, 783 "title": "Transmit Bandwidth", 784 "tooltip": { 785 "shared": true, 786 "sort": 2, 787 "value_type": "individual" 788 }, 789 "type": "graph", 790 "xaxis": { 791 "buckets": null, 792 "mode": "time", 793 "name": null, 794 "show": true, 795 "values": [ 796 797 ] 798 }, 799 "yaxes": [ 800 { 801 "format": "Bps", 802 "label": null, 803 "logBase": 1, 804 "max": null, 805 "min": 0, 806 "show": true 807 }, 808 { 809 "format": "Bps", 810 "label": null, 811 "logBase": 1, 812 "max": null, 813 "min": 0, 814 "show": true 815 } 816 ] 817 }, 818 { 819 "collapse": true, 820 "collapsed": true, 821 "gridPos": { 822 "h": 1, 823 "w": 24, 824 "x": 0, 825 "y": 29 826 }, 827 "id": 9, 828 "panels": [ 829 { 830 "aliasColors": { 831 832 }, 833 "bars": false, 834 "dashLength": 10, 835 "dashes": false, 836 "datasource": "$datasource", 837 "fill": 2, 838 "fillGradient": 0, 839 "gridPos": { 840 "h": 10, 841 "w": 12, 842 "x": 0, 843 "y": 30 844 }, 845 "id": 10, 846 "legend": { 847 "alignAsTable": false, 848 "avg": false, 849 "current": false, 850 "hideEmpty": true, 851 "hideZero": true, 852 "max": false, 853 "min": false, 854 "rightSide": false, 855 "show": true, 856 "sideWidth": null, 857 "total": false, 858 "values": false 859 }, 860 "lines": true, 861 "linewidth": 2, 862 "links": [ 863 864 ], 865 "minSpan": 12, 866 "nullPointMode": "connected", 867 "paceLength": 10, 868 "percentage": false, 869 "pointradius": 5, 870 "points": false, 871 "renderer": "flot", 872 "repeat": null, 873 "seriesOverrides": [ 874 875 ], 876 "spaceLength": 10, 877 "span": 12, 878 "stack": true, 879 "steppedLine": false, 880 "targets": [ 881 { 882 "expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 883 "format": "time_series", 884 "intervalFactor": 1, 885 "legendFormat": "{{`{{`}}pod{{`}}`}}", 886 "refId": "A", 887 "step": 10 888 } 889 ], 890 "thresholds": [ 891 892 ], 893 "timeFrom": null, 894 "timeShift": null, 895 "title": "Rate of Received Packets", 896 "tooltip": { 897 "shared": true, 898 "sort": 2, 899 "value_type": "individual" 900 }, 901 "type": "graph", 902 "xaxis": { 903 "buckets": null, 904 "mode": "time", 905 "name": null, 906 "show": true, 907 "values": [ 908 909 ] 910 }, 911 "yaxes": [ 912 { 913 "format": "pps", 914 "label": null, 915 "logBase": 1, 916 "max": null, 917 "min": 0, 918 "show": true 919 }, 920 { 921 "format": "pps", 922 "label": null, 923 "logBase": 1, 924 "max": null, 925 "min": 0, 926 "show": true 927 } 928 ] 929 }, 930 { 931 "aliasColors": { 932 933 }, 934 "bars": false, 935 "dashLength": 10, 936 "dashes": false, 937 "datasource": "$datasource", 938 "fill": 2, 939 "fillGradient": 0, 940 "gridPos": { 941 "h": 10, 942 "w": 12, 943 "x": 12, 944 "y": 30 945 }, 946 "id": 11, 947 "legend": { 948 "alignAsTable": false, 949 "avg": false, 950 "current": false, 951 "hideEmpty": true, 952 "hideZero": true, 953 "max": false, 954 "min": false, 955 "rightSide": false, 956 "show": true, 957 "sideWidth": null, 958 "total": false, 959 "values": false 960 }, 961 "lines": true, 962 "linewidth": 2, 963 "links": [ 964 965 ], 966 "minSpan": 12, 967 "nullPointMode": "connected", 968 "paceLength": 10, 969 "percentage": false, 970 "pointradius": 5, 971 "points": false, 972 "renderer": "flot", 973 "repeat": null, 974 "seriesOverrides": [ 975 976 ], 977 "spaceLength": 10, 978 "span": 12, 979 "stack": true, 980 "steppedLine": false, 981 "targets": [ 982 { 983 "expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 984 "format": "time_series", 985 "intervalFactor": 1, 986 "legendFormat": "{{`{{`}}pod{{`}}`}}", 987 "refId": "A", 988 "step": 10 989 } 990 ], 991 "thresholds": [ 992 993 ], 994 "timeFrom": null, 995 "timeShift": null, 996 "title": "Rate of Transmitted Packets", 997 "tooltip": { 998 "shared": true, 999 "sort": 2, 1000 "value_type": "individual" 1001 }, 1002 "type": "graph", 1003 "xaxis": { 1004 "buckets": null, 1005 "mode": "time", 1006 "name": null, 1007 "show": true, 1008 "values": [ 1009 1010 ] 1011 }, 1012 "yaxes": [ 1013 { 1014 "format": "pps", 1015 "label": null, 1016 "logBase": 1, 1017 "max": null, 1018 "min": 0, 1019 "show": true 1020 }, 1021 { 1022 "format": "pps", 1023 "label": null, 1024 "logBase": 1, 1025 "max": null, 1026 "min": 0, 1027 "show": true 1028 } 1029 ] 1030 } 1031 ], 1032 "repeat": null, 1033 "repeatIteration": null, 1034 "repeatRowId": null, 1035 "showTitle": true, 1036 "title": "Packets", 1037 "titleSize": "h6", 1038 "type": "row" 1039 }, 1040 { 1041 "collapse": true, 1042 "collapsed": true, 1043 "gridPos": { 1044 "h": 1, 1045 "w": 24, 1046 "x": 0, 1047 "y": 30 1048 }, 1049 "id": 12, 1050 "panels": [ 1051 { 1052 "aliasColors": { 1053 1054 }, 1055 "bars": false, 1056 "dashLength": 10, 1057 "dashes": false, 1058 "datasource": "$datasource", 1059 "fill": 2, 1060 "fillGradient": 0, 1061 "gridPos": { 1062 "h": 10, 1063 "w": 12, 1064 "x": 0, 1065 "y": 40 1066 }, 1067 "id": 13, 1068 "legend": { 1069 "alignAsTable": false, 1070 "avg": false, 1071 "current": false, 1072 "hideEmpty": true, 1073 "hideZero": true, 1074 "max": false, 1075 "min": false, 1076 "rightSide": false, 1077 "show": true, 1078 "sideWidth": null, 1079 "total": false, 1080 "values": false 1081 }, 1082 "lines": true, 1083 "linewidth": 2, 1084 "links": [ 1085 1086 ], 1087 "minSpan": 12, 1088 "nullPointMode": "connected", 1089 "paceLength": 10, 1090 "percentage": false, 1091 "pointradius": 5, 1092 "points": false, 1093 "renderer": "flot", 1094 "repeat": null, 1095 "seriesOverrides": [ 1096 1097 ], 1098 "spaceLength": 10, 1099 "span": 12, 1100 "stack": true, 1101 "steppedLine": false, 1102 "targets": [ 1103 { 1104 "expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 1105 "format": "time_series", 1106 "intervalFactor": 1, 1107 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1108 "refId": "A", 1109 "step": 10 1110 } 1111 ], 1112 "thresholds": [ 1113 1114 ], 1115 "timeFrom": null, 1116 "timeShift": null, 1117 "title": "Rate of Received Packets Dropped", 1118 "tooltip": { 1119 "shared": true, 1120 "sort": 2, 1121 "value_type": "individual" 1122 }, 1123 "type": "graph", 1124 "xaxis": { 1125 "buckets": null, 1126 "mode": "time", 1127 "name": null, 1128 "show": true, 1129 "values": [ 1130 1131 ] 1132 }, 1133 "yaxes": [ 1134 { 1135 "format": "pps", 1136 "label": null, 1137 "logBase": 1, 1138 "max": null, 1139 "min": 0, 1140 "show": true 1141 }, 1142 { 1143 "format": "pps", 1144 "label": null, 1145 "logBase": 1, 1146 "max": null, 1147 "min": 0, 1148 "show": true 1149 } 1150 ] 1151 }, 1152 { 1153 "aliasColors": { 1154 1155 }, 1156 "bars": false, 1157 "dashLength": 10, 1158 "dashes": false, 1159 "datasource": "$datasource", 1160 "fill": 2, 1161 "fillGradient": 0, 1162 "gridPos": { 1163 "h": 10, 1164 "w": 12, 1165 "x": 12, 1166 "y": 40 1167 }, 1168 "id": 14, 1169 "legend": { 1170 "alignAsTable": false, 1171 "avg": false, 1172 "current": false, 1173 "hideEmpty": true, 1174 "hideZero": true, 1175 "max": false, 1176 "min": false, 1177 "rightSide": false, 1178 "show": true, 1179 "sideWidth": null, 1180 "total": false, 1181 "values": false 1182 }, 1183 "lines": true, 1184 "linewidth": 2, 1185 "links": [ 1186 1187 ], 1188 "minSpan": 12, 1189 "nullPointMode": "connected", 1190 "paceLength": 10, 1191 "percentage": false, 1192 "pointradius": 5, 1193 "points": false, 1194 "renderer": "flot", 1195 "repeat": null, 1196 "seriesOverrides": [ 1197 1198 ], 1199 "spaceLength": 10, 1200 "span": 12, 1201 "stack": true, 1202 "steppedLine": false, 1203 "targets": [ 1204 { 1205 "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)", 1206 "format": "time_series", 1207 "intervalFactor": 1, 1208 "legendFormat": "{{`{{`}}pod{{`}}`}}", 1209 "refId": "A", 1210 "step": 10 1211 } 1212 ], 1213 "thresholds": [ 1214 1215 ], 1216 "timeFrom": null, 1217 "timeShift": null, 1218 "title": "Rate of Transmitted Packets Dropped", 1219 "tooltip": { 1220 "shared": true, 1221 "sort": 2, 1222 "value_type": "individual" 1223 }, 1224 "type": "graph", 1225 "xaxis": { 1226 "buckets": null, 1227 "mode": "time", 1228 "name": null, 1229 "show": true, 1230 "values": [ 1231 1232 ] 1233 }, 1234 "yaxes": [ 1235 { 1236 "format": "pps", 1237 "label": null, 1238 "logBase": 1, 1239 "max": null, 1240 "min": 0, 1241 "show": true 1242 }, 1243 { 1244 "format": "pps", 1245 "label": null, 1246 "logBase": 1, 1247 "max": null, 1248 "min": 0, 1249 "show": true 1250 } 1251 ] 1252 } 1253 ], 1254 "repeat": null, 1255 "repeatIteration": null, 1256 "repeatRowId": null, 1257 "showTitle": true, 1258 "title": "Errors", 1259 "titleSize": "h6", 1260 "type": "row" 1261 } 1262 ], 1263 "refresh": "10s", 1264 "rows": [ 1265 1266 ], 1267 "schemaVersion": 18, 1268 "style": "dark", 1269 "tags": [ 1270 "kubernetes-mixin" 1271 ], 1272 "templating": { 1273 "list": [ 1274 { 1275 "current": { 1276 "text": "default", 1277 "value": "default" 1278 }, 1279 "hide": 0, 1280 "label": "Data Source", 1281 "name": "datasource", 1282 "options": [ 1283 1284 ], 1285 "query": "prometheus", 1286 "refresh": 1, 1287 "regex": "", 1288 "type": "datasource" 1289 }, 1290 { 1291 "allValue": null, 1292 "current": { 1293 1294 }, 1295 "datasource": "$datasource", 1296 "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }}, 1297 "includeAll": false, 1298 "label": null, 1299 "multi": false, 1300 "name": "cluster", 1301 "options": [ 1302 1303 ], 1304 "query": "label_values(up{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\"}, cluster)", 1305 "refresh": 2, 1306 "regex": "", 1307 "sort": 0, 1308 "tagValuesQuery": "", 1309 "tags": [ 1310 1311 ], 1312 "tagsQuery": "", 1313 "type": "query", 1314 "useTags": false 1315 }, 1316 { 1317 "allValue": ".+", 1318 "auto": false, 1319 "auto_count": 30, 1320 "auto_min": "10s", 1321 "current": { 1322 "text": "kube-system", 1323 "value": "kube-system" 1324 }, 1325 "datasource": "$datasource", 1326 "definition": "label_values(container_network_receive_packets_total{cluster=\"$cluster\"}, namespace)", 1327 "hide": 0, 1328 "includeAll": true, 1329 "label": null, 1330 "multi": false, 1331 "name": "namespace", 1332 "options": [ 1333 1334 ], 1335 "query": "label_values(container_network_receive_packets_total{cluster=\"$cluster\"}, namespace)", 1336 "refresh": 2, 1337 "regex": "", 1338 "skipUrlSync": false, 1339 "sort": 1, 1340 "tagValuesQuery": "", 1341 "tags": [ 1342 1343 ], 1344 "tagsQuery": "", 1345 "type": "query", 1346 "useTags": false 1347 }, 1348 { 1349 "allValue": null, 1350 "auto": false, 1351 "auto_count": 30, 1352 "auto_min": "10s", 1353 "current": { 1354 "text": "5m", 1355 "value": "5m" 1356 }, 1357 "datasource": "$datasource", 1358 "hide": 0, 1359 "includeAll": false, 1360 "label": null, 1361 "multi": false, 1362 "name": "resolution", 1363 "options": [ 1364 { 1365 "selected": false, 1366 "text": "30s", 1367 "value": "30s" 1368 }, 1369 { 1370 "selected": true, 1371 "text": "5m", 1372 "value": "5m" 1373 }, 1374 { 1375 "selected": false, 1376 "text": "1h", 1377 "value": "1h" 1378 } 1379 ], 1380 "query": "30s,5m,1h", 1381 "refresh": 2, 1382 "regex": "", 1383 "skipUrlSync": false, 1384 "sort": 1, 1385 "tagValuesQuery": "", 1386 "tags": [ 1387 1388 ], 1389 "tagsQuery": "", 1390 "type": "interval", 1391 "useTags": false 1392 }, 1393 { 1394 "allValue": null, 1395 "auto": false, 1396 "auto_count": 30, 1397 "auto_min": "10s", 1398 "current": { 1399 "text": "5m", 1400 "value": "5m" 1401 }, 1402 "datasource": "$datasource", 1403 "hide": 2, 1404 "includeAll": false, 1405 "label": null, 1406 "multi": false, 1407 "name": "interval", 1408 "options": [ 1409 { 1410 "selected": true, 1411 "text": "4h", 1412 "value": "4h" 1413 } 1414 ], 1415 "query": "4h", 1416 "refresh": 2, 1417 "regex": "", 1418 "skipUrlSync": false, 1419 "sort": 1, 1420 "tagValuesQuery": "", 1421 "tags": [ 1422 1423 ], 1424 "tagsQuery": "", 1425 "type": "interval", 1426 "useTags": false 1427 } 1428 ] 1429 }, 1430 "time": { 1431 "from": "now-1h", 1432 "to": "now" 1433 }, 1434 "timepicker": { 1435 "refresh_intervals": [ 1436 "5s", 1437 "10s", 1438 "30s", 1439 "1m", 1440 "5m", 1441 "15m", 1442 "30m", 1443 "1h", 1444 "2h", 1445 "1d" 1446 ], 1447 "time_options": [ 1448 "5m", 1449 "15m", 1450 "1h", 1451 "6h", 1452 "12h", 1453 "24h", 1454 "2d", 1455 "7d", 1456 "30d" 1457 ] 1458 }, 1459 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 1460 "title": "Kubernetes / Networking / Namespace (Pods)", 1461 "uid": "8b7a8b326d7a6f1f04244066368c67af", 1462 "version": 0 1463 } 1464 {{- end }}