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