blob: 30f3b90fd8948bcfbdbd00bd6e935ede29f9180b [file] [log] [blame]
Hung-Wei Chiu04446442021-03-04 14:50:46 -08001{
2 "annotations": {
3 "list": [
4 {
5 "builtIn": 1,
6 "datasource": "-- Grafana --",
7 "enable": true,
8 "hide": true,
9 "iconColor": "rgba(0, 211, 255, 1)",
10 "name": "Annotations & Alerts",
11 "type": "dashboard"
12 }
13 ]
14 },
15 "editable": true,
16 "gnetId": null,
17 "graphTooltip": 0,
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -070018 "id": 17,
19 "iteration": 1618506324634,
Hung-Wei Chiu04446442021-03-04 14:50:46 -080020 "links": [],
21 "panels": [
22 {
23 "aliasColors": {},
24 "bars": false,
25 "dashLength": 10,
26 "dashes": false,
27 "datasource": "ace-menlo",
28 "fieldConfig": {
29 "defaults": {
30 "custom": {}
31 },
32 "overrides": []
33 },
34 "fill": 1,
35 "fillGradient": 0,
36 "gridPos": {
37 "h": 6,
38 "w": 12,
39 "x": 0,
40 "y": 0
41 },
42 "hiddenSeries": false,
43 "id": 4,
44 "legend": {
45 "avg": false,
46 "current": false,
47 "max": false,
48 "min": false,
49 "show": true,
50 "total": false,
51 "values": false
52 },
53 "lines": true,
54 "linewidth": 1,
55 "nullPointMode": "null",
56 "percentage": false,
57 "pluginVersion": "7.1.5",
58 "pointradius": 2,
59 "points": false,
60 "renderer": "flot",
61 "seriesOverrides": [],
62 "spaceLength": 10,
63 "stack": false,
64 "steppedLine": false,
65 "targets": [
66 {
67 "expr": "sum(ping_average_response_ms{namespace=\"tost\"}) by (url)",
68 "interval": "",
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -080069 "legendFormat": "{{ url }} ",
Hung-Wei Chiu04446442021-03-04 14:50:46 -080070 "refId": "A"
71 },
72 {
73 "expr": "sum(ping_maximum_response_ms{namespace=\"tost\"}) by (url)",
74 "interval": "",
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -080075 "legendFormat": "{{ url }} ",
Hung-Wei Chiu04446442021-03-04 14:50:46 -080076 "refId": "B"
77 },
78 {
79 "expr": "sum(ping_minimum_response_ms{namespace=\"tost\"}) by (url)",
80 "interval": "",
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -080081 "legendFormat": "{{ url }} ",
Hung-Wei Chiu04446442021-03-04 14:50:46 -080082 "refId": "C"
83 }
84 ],
85 "thresholds": [],
86 "timeFrom": null,
87 "timeRegions": [],
88 "timeShift": null,
89 "title": "Ping Response Time (MS)",
90 "tooltip": {
91 "shared": true,
92 "sort": 0,
93 "value_type": "individual"
94 },
95 "type": "graph",
96 "xaxis": {
97 "buckets": null,
98 "mode": "time",
99 "name": null,
100 "show": true,
101 "values": []
102 },
103 "yaxes": [
104 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800105 "format": "short",
106 "label": null,
107 "logBase": 1,
108 "max": null,
109 "min": null,
110 "show": true
111 },
112 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800113 "format": "short",
114 "label": null,
115 "logBase": 1,
116 "max": null,
117 "min": null,
118 "show": true
119 }
120 ],
121 "yaxis": {
122 "align": false,
123 "alignLevel": null
124 }
125 },
126 {
127 "aliasColors": {},
128 "bars": false,
129 "dashLength": 10,
130 "dashes": false,
131 "datasource": "ace-menlo",
132 "fieldConfig": {
133 "defaults": {
134 "custom": {}
135 },
136 "overrides": []
137 },
138 "fill": 1,
139 "fillGradient": 0,
140 "gridPos": {
141 "h": 6,
142 "w": 12,
143 "x": 12,
144 "y": 0
145 },
146 "hiddenSeries": false,
147 "id": 2,
148 "legend": {
149 "avg": false,
150 "current": false,
151 "max": false,
152 "min": false,
153 "show": true,
154 "total": false,
155 "values": false
156 },
157 "lines": true,
158 "linewidth": 1,
159 "nullPointMode": "null",
160 "percentage": false,
161 "pluginVersion": "7.1.5",
162 "pointradius": 2,
163 "points": false,
164 "renderer": "flot",
165 "seriesOverrides": [],
166 "spaceLength": 10,
167 "stack": false,
168 "steppedLine": false,
169 "targets": [
170 {
171 "expr": "sum(ping_percent_packet_loss{namespace=\"tost\"}) by (url)",
172 "interval": "",
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800173 "legendFormat": "{{ url }} ",
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800174 "refId": "A"
175 }
176 ],
177 "thresholds": [],
178 "timeFrom": null,
179 "timeRegions": [],
180 "timeShift": null,
181 "title": "Ping packet loss (%)",
182 "tooltip": {
183 "shared": true,
184 "sort": 0,
185 "value_type": "individual"
186 },
187 "type": "graph",
188 "xaxis": {
189 "buckets": null,
190 "mode": "time",
191 "name": null,
192 "show": true,
193 "values": []
194 },
195 "yaxes": [
196 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800197 "format": "percent",
198 "label": null,
199 "logBase": 1,
200 "max": "100",
201 "min": "0",
202 "show": true
203 },
204 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800205 "format": "short",
206 "label": null,
207 "logBase": 1,
208 "max": null,
209 "min": null,
210 "show": true
211 }
212 ],
213 "yaxis": {
214 "align": false,
215 "alignLevel": null
216 }
217 },
218 {
219 "aliasColors": {},
220 "bars": false,
221 "dashLength": 10,
222 "dashes": false,
223 "datasource": "$es_datasource",
224 "description": "",
225 "fieldConfig": {
226 "defaults": {
227 "custom": {
228 "align": null
229 },
230 "mappings": [],
231 "thresholds": {
232 "mode": "absolute",
233 "steps": [
234 {
235 "color": "green",
236 "value": null
237 },
238 {
239 "color": "red",
240 "value": 80
241 }
242 ]
243 }
244 },
245 "overrides": []
246 },
247 "fill": 10,
248 "fillGradient": 0,
249 "gridPos": {
250 "h": 5,
251 "w": 12,
252 "x": 0,
253 "y": 6
254 },
255 "hiddenSeries": false,
256 "id": 6,
257 "legend": {
258 "avg": false,
259 "current": false,
260 "hideEmpty": false,
261 "hideZero": false,
262 "max": false,
263 "min": false,
264 "show": false,
265 "total": false,
266 "values": false
267 },
268 "lines": true,
269 "linewidth": 1,
270 "nullPointMode": "null",
271 "percentage": false,
272 "pluginVersion": "7.1.5",
273 "pointradius": 2,
274 "points": false,
275 "renderer": "flot",
276 "repeat": "pod",
277 "repeatDirection": "v",
278 "seriesOverrides": [],
279 "spaceLength": 10,
280 "stack": true,
281 "steppedLine": false,
282 "targets": [
283 {
284 "bucketAggs": [
285 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800286 "fake": true,
287 "field": "kubernetes.pod_name.keyword",
288 "id": "3",
289 "settings": {
290 "min_doc_count": "1",
291 "order": "desc",
292 "orderBy": "_term",
293 "size": "0"
294 },
295 "type": "terms"
296 },
297 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800298 "field": "@timestamp",
299 "id": "2",
300 "settings": {
301 "interval": "1m",
302 "min_doc_count": "0",
303 "trimEdges": 0
304 },
305 "type": "date_histogram"
306 }
307 ],
308 "metrics": [
309 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800310 "field": "select field",
311 "id": "1",
312 "meta": {},
313 "settings": {},
314 "type": "count"
315 }
316 ],
317 "query": "kubernetes.namespace_name.keyword:$es_namespace",
318 "refId": "A",
319 "timeField": "@timestamp"
320 }
321 ],
322 "thresholds": [],
323 "timeFrom": null,
324 "timeRegions": [],
325 "timeShift": null,
326 "title": "Namespace $es_namespace: Log Messages Per Minute",
327 "tooltip": {
328 "shared": true,
329 "sort": 0,
330 "value_type": "individual"
331 },
332 "transformations": [],
333 "type": "graph",
334 "xaxis": {
335 "buckets": null,
336 "mode": "time",
337 "name": null,
338 "show": true,
339 "values": []
340 },
341 "yaxes": [
342 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800343 "format": "short",
344 "label": null,
345 "logBase": 1,
346 "max": null,
347 "min": null,
348 "show": true
349 },
350 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800351 "format": "short",
352 "label": null,
353 "logBase": 1,
354 "max": null,
355 "min": null,
356 "show": true
357 }
358 ],
359 "yaxis": {
360 "align": false,
361 "alignLevel": null
362 }
363 },
364 {
365 "aliasColors": {},
366 "bars": false,
367 "dashLength": 10,
368 "dashes": false,
369 "datasource": "$es_datasource",
370 "description": "",
371 "fieldConfig": {
372 "defaults": {
373 "custom": {}
374 },
375 "overrides": []
376 },
377 "fill": 10,
378 "fillGradient": 0,
379 "gridPos": {
380 "h": 5,
381 "w": 12,
382 "x": 12,
383 "y": 6
384 },
385 "hiddenSeries": false,
386 "id": 8,
387 "legend": {
388 "avg": false,
389 "current": false,
390 "max": false,
391 "min": false,
392 "show": false,
393 "total": false,
394 "values": false
395 },
396 "lines": true,
397 "linewidth": 1,
398 "nullPointMode": "null",
399 "percentage": false,
400 "pluginVersion": "7.1.5",
401 "pointradius": 2,
402 "points": false,
403 "renderer": "flot",
404 "repeatDirection": "v",
405 "seriesOverrides": [],
406 "spaceLength": 10,
407 "stack": true,
408 "steppedLine": false,
409 "targets": [
410 {
411 "bucketAggs": [
412 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800413 "fake": true,
414 "field": "kubernetes.container_name.keyword",
415 "id": "3",
416 "settings": {
417 "min_doc_count": "1",
418 "order": "desc",
419 "orderBy": "_term",
420 "size": "0"
421 },
422 "type": "terms"
423 },
424 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800425 "field": "@timestamp",
426 "id": "2",
427 "settings": {
428 "interval": "1m",
429 "min_doc_count": "0",
430 "trimEdges": 0
431 },
432 "type": "date_histogram"
433 }
434 ],
435 "metrics": [
436 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800437 "field": "select field",
438 "id": "1",
439 "type": "count"
440 }
441 ],
442 "query": "kubernetes.pod_name.keyword:$es_pod AND kubernetes.namespace_name.keyword:$es_namespace AND (logLevel.keyword:$es_loglevel)",
443 "refId": "A",
444 "timeField": "@timestamp"
445 }
446 ],
447 "thresholds": [],
448 "timeFrom": null,
449 "timeRegions": [],
450 "timeShift": null,
451 "title": "Pod $es_pod: Log Messages per Minute",
452 "tooltip": {
453 "shared": true,
454 "sort": 0,
455 "value_type": "individual"
456 },
457 "type": "graph",
458 "xaxis": {
459 "buckets": null,
460 "mode": "time",
461 "name": null,
462 "show": true,
463 "values": []
464 },
465 "yaxes": [
466 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800467 "format": "short",
468 "label": null,
469 "logBase": 1,
470 "max": null,
471 "min": null,
472 "show": true
473 },
474 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800475 "format": "short",
476 "label": null,
477 "logBase": 1,
478 "max": null,
479 "min": null,
480 "show": true
481 }
482 ],
483 "yaxis": {
484 "align": false,
485 "alignLevel": null
486 }
487 },
488 {
489 "datasource": "$es_datasource",
490 "description": "",
491 "fieldConfig": {
492 "defaults": {
493 "custom": {
494 "align": null
495 },
496 "mappings": [],
497 "thresholds": {
498 "mode": "absolute",
499 "steps": [
500 {
501 "color": "green",
502 "value": null
503 },
504 {
505 "color": "red",
506 "value": 80
507 }
508 ]
509 }
510 },
511 "overrides": [
512 {
513 "matcher": {
514 "id": "byName",
515 "options": "_source"
516 },
517 "properties": [
518 {
519 "id": "custom.width",
520 "value": 218
521 }
522 ]
523 },
524 {
525 "matcher": {
526 "id": "byName",
527 "options": "kubernetes.container_hash"
528 },
529 "properties": [
530 {
531 "id": "custom.width",
532 "value": 235
533 }
534 ]
535 },
536 {
537 "matcher": {
538 "id": "byName",
539 "options": "kubernetes.container_image"
540 },
541 "properties": [
542 {
543 "id": "custom.width",
544 "value": 178
545 }
546 ]
547 },
548 {
549 "matcher": {
550 "id": "byName",
551 "options": "kubernetes.labels.release"
552 },
553 "properties": [
554 {
555 "id": "custom.width",
556 "value": 168
557 }
558 ]
559 }
560 ]
561 },
562 "gridPos": {
563 "h": 14,
564 "w": 24,
565 "x": 0,
566 "y": 11
567 },
568 "id": 10,
569 "options": {
570 "showLabels": false,
571 "showTime": true,
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700572 "sortOrder": "Ascending",
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800573 "wrapLogMessage": false
574 },
575 "pluginVersion": "7.1.5",
576 "repeatDirection": "v",
577 "targets": [
578 {
579 "bucketAggs": [
580 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800581 "field": "@timestamp",
582 "id": "2",
583 "settings": {
584 "interval": "auto",
585 "min_doc_count": 0,
586 "trimEdges": 0
587 },
588 "type": "date_histogram"
589 }
590 ],
591 "metrics": [
592 {
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800593 "field": "select field",
594 "id": "1",
595 "meta": {},
596 "settings": {},
597 "type": "logs"
598 }
599 ],
600 "query": "kubernetes.container_name.keyword:$es_container AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.namespace_name.keyword:$es_namespace AND (logLevel.keyword:$es_loglevel)",
601 "refId": "A",
602 "timeField": "@timestamp"
603 }
604 ],
605 "timeFrom": null,
606 "timeShift": null,
607 "title": "$es_pod Logs ($es_container)",
608 "transparent": true,
609 "type": "logs"
610 }
611 ],
612 "schemaVersion": 26,
613 "style": "dark",
614 "tags": [],
615 "templating": {
616 "list": [
617 {
618 "current": {
619 "selected": false,
620 "text": "ace-menlo-es",
621 "value": "ace-menlo-es"
622 },
623 "hide": 2,
624 "includeAll": false,
625 "label": "Datasource",
626 "multi": false,
627 "name": "es_datasource",
628 "options": [],
629 "query": "elasticsearch",
630 "refresh": 1,
631 "regex": "ace-menlo-es",
632 "skipUrlSync": false,
633 "type": "datasource"
634 },
635 {
636 "current": {
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800637 "selected": true,
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800638 "text": "tost",
639 "value": "tost"
640 },
641 "hide": 2,
642 "label": null,
643 "name": "es_namespace",
644 "options": [
645 {
646 "selected": true,
647 "text": "tost",
648 "value": "tost"
649 }
650 ],
651 "query": "tost",
652 "skipUrlSync": false,
653 "type": "constant"
654 },
655 {
656 "allValue": "stratum*",
657 "current": {
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700658 "selected": true,
659 "text": "onos-tost-onos-classic-0",
660 "value": "onos-tost-onos-classic-0"
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800661 },
662 "datasource": "$es_datasource",
663 "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}",
664 "hide": 0,
665 "includeAll": false,
666 "label": "Pod",
667 "multi": false,
668 "name": "es_pod",
669 "options": [],
670 "query": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}",
671 "refresh": 2,
672 "regex": "",
673 "skipUrlSync": false,
674 "sort": 0,
675 "tagValuesQuery": "",
676 "tags": [],
677 "tagsQuery": "",
678 "type": "query",
679 "useTags": false
680 },
681 {
682 "allValue": null,
683 "current": {
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700684 "selected": true,
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800685 "text": [
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800686 "onos-classic"
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800687 ],
688 "value": [
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800689 "onos-classic"
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800690 ]
691 },
692 "datasource": "$es_datasource",
693 "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t",
694 "hide": 0,
695 "includeAll": true,
696 "label": "Container",
697 "multi": true,
698 "name": "es_container",
699 "options": [],
700 "query": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t",
701 "refresh": 2,
702 "regex": "",
703 "skipUrlSync": false,
704 "sort": 0,
705 "tagValuesQuery": "",
706 "tags": [],
707 "tagsQuery": "",
708 "type": "query",
709 "useTags": false
710 },
711 {
712 "allValue": "null OR *",
713 "current": {
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700714 "selected": true,
715 "tags": [],
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800716 "text": [
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700717 "All"
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800718 ],
719 "value": [
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700720 "$__all"
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800721 ]
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800722 },
723 "datasource": "$es_datasource",
724 "definition": "{\"find\": \"terms\", \"field\": \"logLevel.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.container_name.keyword:$es_container\"}\t",
725 "hide": 0,
726 "includeAll": true,
727 "label": "Log Level",
728 "multi": true,
729 "name": "es_loglevel",
730 "options": [],
731 "query": "{\"find\": \"terms\", \"field\": \"logLevel.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.container_name.keyword:$es_container\"}\t",
732 "refresh": 2,
733 "regex": "",
734 "skipUrlSync": false,
735 "sort": 0,
736 "tagValuesQuery": "",
737 "tags": [],
738 "tagsQuery": "",
739 "type": "query",
740 "useTags": false
741 }
742 ]
743 },
744 "time": {
Hung-Wei Chiubccf71d2021-03-08 14:31:33 -0800745 "from": "now-24h",
Hung-Wei Chiu04446442021-03-04 14:50:46 -0800746 "to": "now"
747 },
748 "timepicker": {
749 "refresh_intervals": [
750 "5s",
751 "10s",
752 "30s",
753 "1m",
754 "5m",
755 "15m",
756 "30m",
757 "1h",
758 "2h",
759 "1d"
760 ]
761 },
762 "timezone": "",
763 "title": "TOST Metrics",
764 "uid": "fVcZZm8Gk",
Hung-Wei Chiubbc1bfd2021-04-15 10:08:02 -0700765 "version": 1
766}