b638913e8561d4b21fd352600c0ce94b2d62d458
[demo.git] / vnfs / DAaaS / operator / charts / prometheus-operator / templates / grafana / dashboards / k8s-coredns.yaml
1 # Added manually, can be changed in-place.
2 {{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.coreDns.enabled }}
3 apiVersion: v1
4 kind: ConfigMap
5 metadata:
6   name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-coredns" | trunc 63 | trimSuffix "-" }}
7   labels:
8     {{- if $.Values.grafana.sidecar.dashboards.label }}
9     {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
10     {{- end }}
11     app: {{ template "prometheus-operator.name" $ }}-grafana
12 {{ include "prometheus-operator.labels" $ | indent 4 }}
13 data:
14   k8s-coredns.json: |-
15     {
16         "annotations": {
17             "list": [
18                 {
19                     "builtIn": 1,
20                     "datasource": "-- Grafana --",
21                     "enable": true,
22                     "hide": true,
23                     "iconColor": "rgba(0, 211, 255, 1)",
24                     "name": "Annotations & Alerts",
25                     "type": "dashboard"
26                 }
27             ]
28         },
29         "description": "A dashboard for the CoreDNS DNS server.",
30         "editable": true,
31         "gnetId": 5926,
32         "graphTooltip": 0,
33         "id": 9,
34         "iteration": 1539947521873,
35         "links": [],
36         "panels": [
37             {
38                 "aliasColors": {},
39                 "bars": false,
40                 "dashLength": 10,
41                 "dashes": false,
42                 "datasource": "Prometheus",
43                 "editable": true,
44                 "error": false,
45                 "fill": 1,
46                 "grid": {},
47                 "gridPos": {
48                     "h": 7,
49                     "w": 8,
50                     "x": 0,
51                     "y": 0
52                 },
53                 "id": 1,
54                 "legend": {
55                     "avg": false,
56                     "current": false,
57                     "max": false,
58                     "min": false,
59                     "show": true,
60                     "total": false,
61                     "values": false
62                 },
63                 "lines": true,
64                 "linewidth": 2,
65                 "links": [],
66                 "nullPointMode": "connected",
67                 "percentage": false,
68                 "pointradius": 5,
69                 "points": false,
70                 "renderer": "flot",
71                 "seriesOverrides": [
72                     {
73                         "alias": "total",
74                         "yaxis": 2
75                     }
76                 ],
77                 "spaceLength": 10,
78                 "stack": false,
79                 "steppedLine": false,
80                 "targets": [
81                     {
82                         "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (proto)",
83                         "format": "time_series",
84                         "intervalFactor": 2,
85                         "legendFormat": "{{`{{proto}}`}}",
86                         "refId": "A",
87                         "step": 60
88                     },
89                     {
90                         "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))",
91                         "format": "time_series",
92                         "intervalFactor": 2,
93                         "legendFormat": "total",
94                         "refId": "B",
95                         "step": 60
96                     }
97                 ],
98                 "thresholds": [],
99                 "timeFrom": null,
100                 "timeShift": null,
101                 "title": "Requests (total)",
102                 "tooltip": {
103                     "shared": true,
104                     "sort": 0,
105                     "value_type": "cumulative"
106                 },
107                 "type": "graph",
108                 "xaxis": {
109                     "buckets": null,
110                     "mode": "time",
111                     "name": null,
112                     "show": true,
113                     "values": []
114                 },
115                 "yaxes": [
116                     {
117                         "format": "pps",
118                         "logBase": 1,
119                         "max": null,
120                         "min": 0,
121                         "show": true
122                     },
123                     {
124                         "format": "pps",
125                         "logBase": 1,
126                         "max": null,
127                         "min": 0,
128                         "show": true
129                     }
130                 ],
131                 "yaxis": {
132                     "align": false,
133                     "alignLevel": null
134                 }
135             },
136             {
137                 "aliasColors": {},
138                 "bars": false,
139                 "dashLength": 10,
140                 "dashes": false,
141                 "datasource": "Prometheus",
142                 "editable": true,
143                 "error": false,
144                 "fill": 1,
145                 "grid": {},
146                 "gridPos": {
147                     "h": 7,
148                     "w": 8,
149                     "x": 8,
150                     "y": 0
151                 },
152                 "id": 12,
153                 "legend": {
154                     "avg": false,
155                     "current": false,
156                     "max": false,
157                     "min": false,
158                     "show": true,
159                     "total": false,
160                     "values": false
161                 },
162                 "lines": true,
163                 "linewidth": 2,
164                 "links": [],
165                 "nullPointMode": "connected",
166                 "percentage": false,
167                 "pointradius": 5,
168                 "points": false,
169                 "renderer": "flot",
170                 "seriesOverrides": [
171                     {
172                         "alias": "total",
173                         "yaxis": 2
174                     },
175                     {
176                         "alias": "other",
177                         "yaxis": 2
178                     }
179                 ],
180                 "spaceLength": 10,
181                 "stack": false,
182                 "steppedLine": false,
183                 "targets": [
184                     {
185                         "expr": "sum(rate(coredns_dns_request_type_count_total{instance=~\"$instance\"}[5m])) by (type)",
186                         "intervalFactor": 2,
187                         "legendFormat": "{{`{{type}}`}}",
188                         "refId": "A",
189                         "step": 60
190                     }
191                 ],
192                 "thresholds": [],
193                 "timeFrom": null,
194                 "timeShift": null,
195                 "title": "Requests (by qtype)",
196                 "tooltip": {
197                     "shared": true,
198                     "sort": 0,
199                     "value_type": "cumulative"
200                 },
201                 "type": "graph",
202                 "xaxis": {
203                     "buckets": null,
204                     "mode": "time",
205                     "name": null,
206                     "show": true,
207                     "values": []
208                 },
209                 "yaxes": [
210                     {
211                         "format": "pps",
212                         "logBase": 1,
213                         "max": null,
214                         "min": 0,
215                         "show": true
216                     },
217                     {
218                         "format": "pps",
219                         "logBase": 1,
220                         "max": null,
221                         "min": 0,
222                         "show": true
223                     }
224                 ],
225                 "yaxis": {
226                     "align": false,
227                     "alignLevel": null
228                 }
229             },
230             {
231                 "aliasColors": {},
232                 "bars": false,
233                 "dashLength": 10,
234                 "dashes": false,
235                 "datasource": "Prometheus",
236                 "editable": true,
237                 "error": false,
238                 "fill": 1,
239                 "grid": {},
240                 "gridPos": {
241                     "h": 7,
242                     "w": 8,
243                     "x": 16,
244                     "y": 0
245                 },
246                 "id": 2,
247                 "legend": {
248                     "avg": false,
249                     "current": false,
250                     "max": false,
251                     "min": false,
252                     "show": true,
253                     "total": false,
254                     "values": false
255                 },
256                 "lines": true,
257                 "linewidth": 2,
258                 "links": [],
259                 "nullPointMode": "connected",
260                 "percentage": false,
261                 "pointradius": 5,
262                 "points": false,
263                 "renderer": "flot",
264                 "seriesOverrides": [
265                     {
266                         "alias": "total",
267                         "yaxis": 2
268                     }
269                 ],
270                 "spaceLength": 10,
271                 "stack": false,
272                 "steppedLine": false,
273                 "targets": [
274                     {
275                         "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (zone)",
276                         "intervalFactor": 2,
277                         "legendFormat": "{{`{{zone}}`}}",
278                         "refId": "A",
279                         "step": 60
280                     },
281                     {
282                         "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))",
283                         "intervalFactor": 2,
284                         "legendFormat": "total",
285                         "refId": "B",
286                         "step": 60
287                     }
288                 ],
289                 "thresholds": [],
290                 "timeFrom": null,
291                 "timeShift": null,
292                 "title": "Requests (by zone)",
293                 "tooltip": {
294                     "shared": true,
295                     "sort": 0,
296                     "value_type": "cumulative"
297                 },
298                 "type": "graph",
299                 "xaxis": {
300                     "buckets": null,
301                     "mode": "time",
302                     "name": null,
303                     "show": true,
304                     "values": []
305                 },
306                 "yaxes": [
307                     {
308                         "format": "pps",
309                         "logBase": 1,
310                         "max": null,
311                         "min": 0,
312                         "show": true
313                     },
314                     {
315                         "format": "pps",
316                         "logBase": 1,
317                         "max": null,
318                         "min": 0,
319                         "show": true
320                     }
321                 ],
322                 "yaxis": {
323                     "align": false,
324                     "alignLevel": null
325                 }
326             },
327             {
328                 "aliasColors": {},
329                 "bars": false,
330                 "dashLength": 10,
331                 "dashes": false,
332                 "datasource": "Prometheus",
333                 "editable": true,
334                 "error": false,
335                 "fill": 1,
336                 "grid": {},
337                 "gridPos": {
338                     "h": 7,
339                     "w": 12,
340                     "x": 0,
341                     "y": 7
342                 },
343                 "id": 10,
344                 "legend": {
345                     "avg": false,
346                     "current": false,
347                     "max": false,
348                     "min": false,
349                     "show": true,
350                     "total": false,
351                     "values": false
352                 },
353                 "lines": true,
354                 "linewidth": 2,
355                 "links": [],
356                 "nullPointMode": "connected",
357                 "percentage": false,
358                 "pointradius": 5,
359                 "points": false,
360                 "renderer": "flot",
361                 "seriesOverrides": [
362                     {
363                         "alias": "total",
364                         "yaxis": 2
365                     }
366                 ],
367                 "spaceLength": 10,
368                 "stack": false,
369                 "steppedLine": false,
370                 "targets": [
371                     {
372                         "expr": "sum(rate(coredns_dns_request_do_count_total{instance=~\"$instance\"}[5m]))",
373                         "intervalFactor": 2,
374                         "legendFormat": "DO",
375                         "refId": "A",
376                         "step": 40
377                     },
378                     {
379                         "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))",
380                         "intervalFactor": 2,
381                         "legendFormat": "total",
382                         "refId": "B",
383                         "step": 40
384                     }
385                 ],
386                 "thresholds": [],
387                 "timeFrom": null,
388                 "timeShift": null,
389                 "title": "Requests (DO bit)",
390                 "tooltip": {
391                     "shared": true,
392                     "sort": 0,
393                     "value_type": "cumulative"
394                 },
395                 "type": "graph",
396                 "xaxis": {
397                     "buckets": null,
398                     "mode": "time",
399                     "name": null,
400                     "show": true,
401                     "values": []
402                 },
403                 "yaxes": [
404                     {
405                         "format": "pps",
406                         "logBase": 1,
407                         "max": null,
408                         "min": 0,
409                         "show": true
410                     },
411                     {
412                         "format": "pps",
413                         "logBase": 1,
414                         "max": null,
415                         "min": null,
416                         "show": true
417                     }
418                 ],
419                 "yaxis": {
420                     "align": false,
421                     "alignLevel": null
422                 }
423             },
424             {
425                 "aliasColors": {},
426                 "bars": false,
427                 "dashLength": 10,
428                 "dashes": false,
429                 "datasource": "Prometheus",
430                 "editable": true,
431                 "error": false,
432                 "fill": 1,
433                 "grid": {},
434                 "gridPos": {
435                     "h": 7,
436                     "w": 6,
437                     "x": 12,
438                     "y": 7
439                 },
440                 "id": 9,
441                 "legend": {
442                     "avg": false,
443                     "current": false,
444                     "max": false,
445                     "min": false,
446                     "show": true,
447                     "total": false,
448                     "values": false
449                 },
450                 "lines": true,
451                 "linewidth": 2,
452                 "links": [],
453                 "nullPointMode": "connected",
454                 "percentage": false,
455                 "pointradius": 5,
456                 "points": false,
457                 "renderer": "flot",
458                 "seriesOverrides": [
459                     {
460                         "alias": "tcp:90",
461                         "yaxis": 2
462                     },
463                     {
464                         "alias": "tcp:99 ",
465                         "yaxis": 2
466                     },
467                     {
468                         "alias": "tcp:50",
469                         "yaxis": 2
470                     }
471                 ],
472                 "spaceLength": 10,
473                 "stack": false,
474                 "steppedLine": false,
475                 "targets": [
476                     {
477                         "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))",
478                         "intervalFactor": 2,
479                         "legendFormat": "{{`{{proto}}`}}:99 ",
480                         "refId": "A",
481                         "step": 60
482                     },
483                     {
484                         "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))",
485                         "intervalFactor": 2,
486                         "legendFormat": "{{`{{proto}}`}}:90",
487                         "refId": "B",
488                         "step": 60
489                     },
490                     {
491                         "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))",
492                         "intervalFactor": 2,
493                         "legendFormat": "{{`{{proto}}`}}:50",
494                         "refId": "C",
495                         "step": 60
496                     }
497                 ],
498                 "thresholds": [],
499                 "timeFrom": null,
500                 "timeShift": null,
501                 "title": "Requests (size, udp)",
502                 "tooltip": {
503                     "shared": true,
504                     "sort": 0,
505                     "value_type": "cumulative"
506                 },
507                 "type": "graph",
508                 "xaxis": {
509                     "buckets": null,
510                     "mode": "time",
511                     "name": null,
512                     "show": true,
513                     "values": []
514                 },
515                 "yaxes": [
516                     {
517                         "format": "bytes",
518                         "logBase": 1,
519                         "max": null,
520                         "min": 0,
521                         "show": true
522                     },
523                     {
524                         "format": "short",
525                         "logBase": 1,
526                         "max": null,
527                         "min": 0,
528                         "show": true
529                     }
530                 ],
531                 "yaxis": {
532                     "align": false,
533                     "alignLevel": null
534                 }
535             },
536             {
537                 "aliasColors": {},
538                 "bars": false,
539                 "dashLength": 10,
540                 "dashes": false,
541                 "datasource": "Prometheus",
542                 "editable": true,
543                 "error": false,
544                 "fill": 1,
545                 "grid": {},
546                 "gridPos": {
547                     "h": 7,
548                     "w": 6,
549                     "x": 18,
550                     "y": 7
551                 },
552                 "id": 14,
553                 "legend": {
554                     "avg": false,
555                     "current": false,
556                     "max": false,
557                     "min": false,
558                     "show": true,
559                     "total": false,
560                     "values": false
561                 },
562                 "lines": true,
563                 "linewidth": 2,
564                 "links": [],
565                 "nullPointMode": "connected",
566                 "percentage": false,
567                 "pointradius": 5,
568                 "points": false,
569                 "renderer": "flot",
570                 "seriesOverrides": [
571                     {
572                         "alias": "tcp:90",
573                         "yaxis": 1
574                     },
575                     {
576                         "alias": "tcp:99 ",
577                         "yaxis": 1
578                     },
579                     {
580                         "alias": "tcp:50",
581                         "yaxis": 1
582                     }
583                 ],
584                 "spaceLength": 10,
585                 "stack": false,
586                 "steppedLine": false,
587                 "targets": [
588                     {
589                         "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))",
590                         "intervalFactor": 2,
591                         "legendFormat": "{{`{{proto}}`}}:99 ",
592                         "refId": "A",
593                         "step": 60
594                     },
595                     {
596                         "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))",
597                         "intervalFactor": 2,
598                         "legendFormat": "{{`{{proto}}`}}:90",
599                         "refId": "B",
600                         "step": 60
601                     },
602                     {
603                         "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))",
604                         "intervalFactor": 2,
605                         "legendFormat": "{{`{{proto}}`}}:50",
606                         "refId": "C",
607                         "step": 60
608                     }
609                 ],
610                 "thresholds": [],
611                 "timeFrom": null,
612                 "timeShift": null,
613                 "title": "Requests (size,tcp)",
614                 "tooltip": {
615                     "shared": true,
616                     "sort": 0,
617                     "value_type": "cumulative"
618                 },
619                 "type": "graph",
620                 "xaxis": {
621                     "buckets": null,
622                     "mode": "time",
623                     "name": null,
624                     "show": true,
625                     "values": []
626                 },
627                 "yaxes": [
628                     {
629                         "format": "bytes",
630                         "logBase": 1,
631                         "max": null,
632                         "min": 0,
633                         "show": true
634                     },
635                     {
636                         "format": "short",
637                         "logBase": 1,
638                         "max": null,
639                         "min": 0,
640                         "show": true
641                     }
642                 ],
643                 "yaxis": {
644                     "align": false,
645                     "alignLevel": null
646                 }
647             },
648             {
649                 "aliasColors": {},
650                 "bars": false,
651                 "dashLength": 10,
652                 "dashes": false,
653                 "datasource": "Prometheus",
654                 "editable": true,
655                 "error": false,
656                 "fill": 1,
657                 "grid": {},
658                 "gridPos": {
659                     "h": 7,
660                     "w": 12,
661                     "x": 0,
662                     "y": 14
663                 },
664                 "id": 5,
665                 "legend": {
666                     "avg": false,
667                     "current": false,
668                     "max": false,
669                     "min": false,
670                     "show": true,
671                     "total": false,
672                     "values": false
673                 },
674                 "lines": true,
675                 "linewidth": 2,
676                 "links": [],
677                 "nullPointMode": "connected",
678                 "percentage": false,
679                 "pointradius": 5,
680                 "points": false,
681                 "renderer": "flot",
682                 "seriesOverrides": [],
683                 "spaceLength": 10,
684                 "stack": false,
685                 "steppedLine": false,
686                 "targets": [
687                     {
688                         "expr": "sum(rate(coredns_dns_response_rcode_count_total{instance=~\"$instance\"}[5m])) by (rcode)",
689                         "intervalFactor": 2,
690                         "legendFormat": "{{`{{rcode}}`}}",
691                         "refId": "A",
692                         "step": 40
693                     }
694                 ],
695                 "thresholds": [],
696                 "timeFrom": null,
697                 "timeShift": null,
698                 "title": "Responses (by rcode)",
699                 "tooltip": {
700                     "shared": true,
701                     "sort": 0,
702                     "value_type": "cumulative"
703                 },
704                 "type": "graph",
705                 "xaxis": {
706                     "buckets": null,
707                     "mode": "time",
708                     "name": null,
709                     "show": true,
710                     "values": []
711                 },
712                 "yaxes": [
713                     {
714                         "format": "pps",
715                         "logBase": 1,
716                         "max": null,
717                         "min": 0,
718                         "show": true
719                     },
720                     {
721                         "format": "short",
722                         "logBase": 1,
723                         "max": null,
724                         "min": null,
725                         "show": true
726                     }
727                 ],
728                 "yaxis": {
729                     "align": false,
730                     "alignLevel": null
731                 }
732             },
733             {
734                 "aliasColors": {},
735                 "bars": false,
736                 "dashLength": 10,
737                 "dashes": false,
738                 "datasource": "Prometheus",
739                 "editable": true,
740                 "error": false,
741                 "fill": 1,
742                 "grid": {},
743                 "gridPos": {
744                     "h": 7,
745                     "w": 12,
746                     "x": 12,
747                     "y": 14
748                 },
749                 "id": 3,
750                 "legend": {
751                     "avg": false,
752                     "current": false,
753                     "max": false,
754                     "min": false,
755                     "show": true,
756                     "total": false,
757                     "values": false
758                 },
759                 "lines": true,
760                 "linewidth": 2,
761                 "links": [],
762                 "nullPointMode": "connected",
763                 "percentage": false,
764                 "pointradius": 5,
765                 "points": false,
766                 "renderer": "flot",
767                 "seriesOverrides": [],
768                 "spaceLength": 10,
769                 "stack": false,
770                 "steppedLine": false,
771                 "targets": [
772                     {
773                         "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le, job))",
774                         "format": "time_series",
775                         "intervalFactor": 2,
776                         "legendFormat": "99%",
777                         "refId": "A",
778                         "step": 40
779                     },
780                     {
781                         "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le))",
782                         "format": "time_series",
783                         "intervalFactor": 2,
784                         "legendFormat": "90%",
785                         "refId": "B",
786                         "step": 40
787                     },
788                     {
789                         "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le))",
790                         "format": "time_series",
791                         "intervalFactor": 2,
792                         "legendFormat": "50%",
793                         "refId": "C",
794                         "step": 40
795                     }
796                 ],
797                 "thresholds": [],
798                 "timeFrom": null,
799                 "timeShift": null,
800                 "title": "Responses (duration)",
801                 "tooltip": {
802                     "shared": true,
803                     "sort": 0,
804                     "value_type": "cumulative"
805                 },
806                 "type": "graph",
807                 "xaxis": {
808                     "buckets": null,
809                     "mode": "time",
810                     "name": null,
811                     "show": true,
812                     "values": []
813                 },
814                 "yaxes": [
815                     {
816                         "format": "ms",
817                         "logBase": 1,
818                         "max": null,
819                         "min": 0,
820                         "show": true
821                     },
822                     {
823                         "format": "short",
824                         "logBase": 1,
825                         "max": null,
826                         "min": null,
827                         "show": true
828                     }
829                 ],
830                 "yaxis": {
831                     "align": false,
832                     "alignLevel": null
833                 }
834             },
835             {
836                 "aliasColors": {},
837                 "bars": false,
838                 "dashLength": 10,
839                 "dashes": false,
840                 "datasource": "Prometheus",
841                 "editable": true,
842                 "error": false,
843                 "fill": 1,
844                 "grid": {},
845                 "gridPos": {
846                     "h": 7,
847                     "w": 12,
848                     "x": 0,
849                     "y": 21
850                 },
851                 "id": 8,
852                 "legend": {
853                     "avg": false,
854                     "current": false,
855                     "max": false,
856                     "min": false,
857                     "show": true,
858                     "total": false,
859                     "values": false
860                 },
861                 "lines": true,
862                 "linewidth": 2,
863                 "links": [],
864                 "nullPointMode": "connected",
865                 "percentage": false,
866                 "pointradius": 5,
867                 "points": false,
868                 "renderer": "flot",
869                 "seriesOverrides": [
870                     {
871                         "alias": "udp:50%",
872                         "yaxis": 1
873                     },
874                     {
875                         "alias": "tcp:50%",
876                         "yaxis": 2
877                     },
878                     {
879                         "alias": "tcp:90%",
880                         "yaxis": 2
881                     },
882                     {
883                         "alias": "tcp:99%",
884                         "yaxis": 2
885                     }
886                 ],
887                 "spaceLength": 10,
888                 "stack": false,
889                 "steppedLine": false,
890                 "targets": [
891                     {
892                         "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ",
893                         "intervalFactor": 2,
894                         "legendFormat": "{{`{{proto}}`}}:99%",
895                         "refId": "A",
896                         "step": 40
897                     },
898                     {
899                         "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_response_size_bytes_bucket{instance=\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ",
900                         "intervalFactor": 2,
901                         "legendFormat": "{{`{{proto}}`}}:90%",
902                         "refId": "B",
903                         "step": 40
904                     },
905                     {
906                         "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ",
907                         "intervalFactor": 2,
908                         "legendFormat": "{{`{{proto}}`}}:50%",
909                         "metric": "",
910                         "refId": "C",
911                         "step": 40
912                     }
913                 ],
914                 "thresholds": [],
915                 "timeFrom": null,
916                 "timeShift": null,
917                 "title": "Responses (size, udp)",
918                 "tooltip": {
919                     "shared": true,
920                     "sort": 0,
921                     "value_type": "cumulative"
922                 },
923                 "type": "graph",
924                 "xaxis": {
925                     "buckets": null,
926                     "mode": "time",
927                     "name": null,
928                     "show": true,
929                     "values": []
930                 },
931                 "yaxes": [
932                     {
933                         "format": "bytes",
934                         "logBase": 1,
935                         "max": null,
936                         "min": 0,
937                         "show": true
938                     },
939                     {
940                         "format": "short",
941                         "logBase": 1,
942                         "max": null,
943                         "min": 0,
944                         "show": true
945                     }
946                 ],
947                 "yaxis": {
948                     "align": false,
949                     "alignLevel": null
950                 }
951             },
952             {
953                 "aliasColors": {},
954                 "bars": false,
955                 "dashLength": 10,
956                 "dashes": false,
957                 "datasource": "Prometheus",
958                 "editable": true,
959                 "error": false,
960                 "fill": 1,
961                 "grid": {},
962                 "gridPos": {
963                     "h": 7,
964                     "w": 12,
965                     "x": 12,
966                     "y": 21
967                 },
968                 "id": 13,
969                 "legend": {
970                     "avg": false,
971                     "current": false,
972                     "max": false,
973                     "min": false,
974                     "show": true,
975                     "total": false,
976                     "values": false
977                 },
978                 "lines": true,
979                 "linewidth": 2,
980                 "links": [],
981                 "nullPointMode": "connected",
982                 "percentage": false,
983                 "pointradius": 5,
984                 "points": false,
985                 "renderer": "flot",
986                 "seriesOverrides": [
987                     {
988                         "alias": "udp:50%",
989                         "yaxis": 1
990                     },
991                     {
992                         "alias": "tcp:50%",
993                         "yaxis": 1
994                     },
995                     {
996                         "alias": "tcp:90%",
997                         "yaxis": 1
998                     },
999                     {
1000                         "alias": "tcp:99%",
1001                         "yaxis": 1
1002                     }
1003                 ],
1004                 "spaceLength": 10,
1005                 "stack": false,
1006                 "steppedLine": false,
1007                 "targets": [
1008                     {
1009                         "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ",
1010                         "format": "time_series",
1011                         "intervalFactor": 2,
1012                         "legendFormat": "{{`{{proto}}`}}:99%",
1013                         "refId": "A",
1014                         "step": 40
1015                     },
1016                     {
1017                         "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ",
1018                         "format": "time_series",
1019                         "intervalFactor": 2,
1020                         "legendFormat": "{{`{{proto}}`}}:90%",
1021                         "refId": "B",
1022                         "step": 40
1023                     },
1024                     {
1025                         "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le, proto)) ",
1026                         "format": "time_series",
1027                         "intervalFactor": 2,
1028                         "legendFormat": "{{`{{proto}}`}}:50%",
1029                         "metric": "",
1030                         "refId": "C",
1031                         "step": 40
1032                     }
1033                 ],
1034                 "thresholds": [],
1035                 "timeFrom": null,
1036                 "timeShift": null,
1037                 "title": "Responses (size, tcp)",
1038                 "tooltip": {
1039                     "shared": true,
1040                     "sort": 0,
1041                     "value_type": "cumulative"
1042                 },
1043                 "type": "graph",
1044                 "xaxis": {
1045                     "buckets": null,
1046                     "mode": "time",
1047                     "name": null,
1048                     "show": true,
1049                     "values": []
1050                 },
1051                 "yaxes": [
1052                     {
1053                         "format": "bytes",
1054                         "logBase": 1,
1055                         "max": null,
1056                         "min": 0,
1057                         "show": true
1058                     },
1059                     {
1060                         "format": "short",
1061                         "logBase": 1,
1062                         "max": null,
1063                         "min": 0,
1064                         "show": true
1065                     }
1066                 ],
1067                 "yaxis": {
1068                     "align": false,
1069                     "alignLevel": null
1070                 }
1071             },
1072             {
1073                 "aliasColors": {},
1074                 "bars": false,
1075                 "dashLength": 10,
1076                 "dashes": false,
1077                 "datasource": "Prometheus",
1078                 "editable": true,
1079                 "error": false,
1080                 "fill": 1,
1081                 "grid": {},
1082                 "gridPos": {
1083                     "h": 7,
1084                     "w": 12,
1085                     "x": 0,
1086                     "y": 28
1087                 },
1088                 "id": 15,
1089                 "legend": {
1090                     "avg": false,
1091                     "current": false,
1092                     "max": false,
1093                     "min": false,
1094                     "show": true,
1095                     "total": false,
1096                     "values": false
1097                 },
1098                 "lines": true,
1099                 "linewidth": 2,
1100                 "links": [],
1101                 "nullPointMode": "connected",
1102                 "percentage": false,
1103                 "pointradius": 5,
1104                 "points": false,
1105                 "renderer": "flot",
1106                 "seriesOverrides": [],
1107                 "spaceLength": 10,
1108                 "stack": false,
1109                 "steppedLine": false,
1110                 "targets": [
1111                     {
1112                         "expr": "sum(coredns_cache_size{instance=~\"$instance\"}) by (type)",
1113                         "intervalFactor": 2,
1114                         "legendFormat": "{{`{{type}}`}}",
1115                         "refId": "A",
1116                         "step": 40
1117                     }
1118                 ],
1119                 "thresholds": [],
1120                 "timeFrom": null,
1121                 "timeShift": null,
1122                 "title": "Cache (size)",
1123                 "tooltip": {
1124                     "shared": true,
1125                     "sort": 0,
1126                     "value_type": "cumulative"
1127                 },
1128                 "type": "graph",
1129                 "xaxis": {
1130                     "buckets": null,
1131                     "mode": "time",
1132                     "name": null,
1133                     "show": true,
1134                     "values": []
1135                 },
1136                 "yaxes": [
1137                     {
1138                         "format": "short",
1139                         "logBase": 1,
1140                         "max": null,
1141                         "min": 0,
1142                         "show": true
1143                     },
1144                     {
1145                         "format": "short",
1146                         "logBase": 1,
1147                         "max": null,
1148                         "min": 0,
1149                         "show": true
1150                     }
1151                 ],
1152                 "yaxis": {
1153                     "align": false,
1154                     "alignLevel": null
1155                 }
1156             },
1157             {
1158                 "aliasColors": {},
1159                 "bars": false,
1160                 "dashLength": 10,
1161                 "dashes": false,
1162                 "datasource": "Prometheus",
1163                 "editable": true,
1164                 "error": false,
1165                 "fill": 1,
1166                 "grid": {},
1167                 "gridPos": {
1168                     "h": 7,
1169                     "w": 12,
1170                     "x": 12,
1171                     "y": 28
1172                 },
1173                 "id": 16,
1174                 "legend": {
1175                     "avg": false,
1176                     "current": false,
1177                     "max": false,
1178                     "min": false,
1179                     "show": true,
1180                     "total": false,
1181                     "values": false
1182                 },
1183                 "lines": true,
1184                 "linewidth": 2,
1185                 "links": [],
1186                 "nullPointMode": "connected",
1187                 "percentage": false,
1188                 "pointradius": 5,
1189                 "points": false,
1190                 "renderer": "flot",
1191                 "seriesOverrides": [
1192                     {
1193                         "alias": "misses",
1194                         "yaxis": 2
1195                     }
1196                 ],
1197                 "spaceLength": 10,
1198                 "stack": false,
1199                 "steppedLine": false,
1200                 "targets": [
1201                     {
1202                         "expr": "sum(rate(coredns_cache_hits_total{instance=~\"$instance\"}[5m])) by (type)",
1203                         "intervalFactor": 2,
1204                         "legendFormat": "hits:{{`{{type}}`}}",
1205                         "refId": "A",
1206                         "step": 40
1207                     },
1208                     {
1209                         "expr": "sum(rate(coredns_cache_misses_total{instance=~\"$instance\"}[5m])) by (type)",
1210                         "intervalFactor": 2,
1211                         "legendFormat": "misses",
1212                         "refId": "B",
1213                         "step": 40
1214                     }
1215                 ],
1216                 "thresholds": [],
1217                 "timeFrom": null,
1218                 "timeShift": null,
1219                 "title": "Cache (hitrate)",
1220                 "tooltip": {
1221                     "shared": true,
1222                     "sort": 0,
1223                     "value_type": "cumulative"
1224                 },
1225                 "type": "graph",
1226                 "xaxis": {
1227                     "buckets": null,
1228                     "mode": "time",
1229                     "name": null,
1230                     "show": true,
1231                     "values": []
1232                 },
1233                 "yaxes": [
1234                     {
1235                         "format": "pps",
1236                         "logBase": 1,
1237                         "max": null,
1238                         "min": 0,
1239                         "show": true
1240                     },
1241                     {
1242                         "format": "pps",
1243                         "logBase": 1,
1244                         "max": null,
1245                         "min": 0,
1246                         "show": true
1247                     }
1248                 ],
1249                 "yaxis": {
1250                     "align": false,
1251                     "alignLevel": null
1252                 }
1253             }
1254         ],
1255         "schemaVersion": 16,
1256         "style": "dark",
1257         "tags": [],
1258         "templating": {
1259             "list": [
1260                 {
1261                     "allValue": ".*",
1262                     "current": {
1263                         "selected": true,
1264                         "tags": [],
1265                         "text": "172.16.1.8:9153",
1266                         "value": "172.16.1.8:9153"
1267                     },
1268                     "datasource": "Prometheus",
1269                     "hide": 0,
1270                     "includeAll": true,
1271                     "label": "Instance",
1272                     "multi": false,
1273                     "name": "instance",
1274                     "options": [],
1275                     "query": "up{job=\"coredns\"}",
1276                     "refresh": 1,
1277                     "regex": ".*instance=\"(.*?)\".*",
1278                     "skipUrlSync": false,
1279                     "sort": 0,
1280                     "tagValuesQuery": "",
1281                     "tags": [],
1282                     "tagsQuery": "",
1283                     "type": "query",
1284                     "useTags": false
1285                 }
1286             ]
1287         },
1288         "time": {
1289             "from": "now-3h",
1290             "to": "now"
1291         },
1292         "timepicker": {
1293             "now": true,
1294             "refresh_intervals": [
1295                 "5s",
1296                 "10s",
1297                 "30s",
1298                 "1m",
1299                 "5m",
1300                 "15m",
1301                 "30m",
1302                 "1h",
1303                 "2h",
1304                 "1d"
1305             ],
1306             "time_options": [
1307                 "5m",
1308                 "15m",
1309                 "1h",
1310                 "6h",
1311                 "12h",
1312                 "24h",
1313                 "2d",
1314                 "7d",
1315                 "30d"
1316             ]
1317         },
1318         "timezone": "utc",
1319         "title": "CoreDNS",
1320         "uid": "vkQ0UHxik",
1321         "version": 1
1322     }
1323 {{- end }}