blob: 166464976b8c0e4e671953aca5230ccc059778aa [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,
18 "id": 26,
19 "iteration": 1614896738539,
20 "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": "",
69 "legendFormat": "",
70 "refId": "A"
71 },
72 {
73 "expr": "sum(ping_maximum_response_ms{namespace=\"tost\"}) by (url)",
74 "interval": "",
75 "legendFormat": "",
76 "refId": "B"
77 },
78 {
79 "expr": "sum(ping_minimum_response_ms{namespace=\"tost\"}) by (url)",
80 "interval": "",
81 "legendFormat": "",
82 "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 {
105 "$$hashKey": "object:59",
106 "format": "short",
107 "label": null,
108 "logBase": 1,
109 "max": null,
110 "min": null,
111 "show": true
112 },
113 {
114 "$$hashKey": "object:60",
115 "format": "short",
116 "label": null,
117 "logBase": 1,
118 "max": null,
119 "min": null,
120 "show": true
121 }
122 ],
123 "yaxis": {
124 "align": false,
125 "alignLevel": null
126 }
127 },
128 {
129 "aliasColors": {},
130 "bars": false,
131 "dashLength": 10,
132 "dashes": false,
133 "datasource": "ace-menlo",
134 "fieldConfig": {
135 "defaults": {
136 "custom": {}
137 },
138 "overrides": []
139 },
140 "fill": 1,
141 "fillGradient": 0,
142 "gridPos": {
143 "h": 6,
144 "w": 12,
145 "x": 12,
146 "y": 0
147 },
148 "hiddenSeries": false,
149 "id": 2,
150 "legend": {
151 "avg": false,
152 "current": false,
153 "max": false,
154 "min": false,
155 "show": true,
156 "total": false,
157 "values": false
158 },
159 "lines": true,
160 "linewidth": 1,
161 "nullPointMode": "null",
162 "percentage": false,
163 "pluginVersion": "7.1.5",
164 "pointradius": 2,
165 "points": false,
166 "renderer": "flot",
167 "seriesOverrides": [],
168 "spaceLength": 10,
169 "stack": false,
170 "steppedLine": false,
171 "targets": [
172 {
173 "expr": "sum(ping_percent_packet_loss{namespace=\"tost\"}) by (url)",
174 "interval": "",
175 "legendFormat": "",
176 "refId": "A"
177 }
178 ],
179 "thresholds": [],
180 "timeFrom": null,
181 "timeRegions": [],
182 "timeShift": null,
183 "title": "Ping packet loss (%)",
184 "tooltip": {
185 "shared": true,
186 "sort": 0,
187 "value_type": "individual"
188 },
189 "type": "graph",
190 "xaxis": {
191 "buckets": null,
192 "mode": "time",
193 "name": null,
194 "show": true,
195 "values": []
196 },
197 "yaxes": [
198 {
199 "$$hashKey": "object:22",
200 "format": "percent",
201 "label": null,
202 "logBase": 1,
203 "max": "100",
204 "min": "0",
205 "show": true
206 },
207 {
208 "$$hashKey": "object:23",
209 "format": "short",
210 "label": null,
211 "logBase": 1,
212 "max": null,
213 "min": null,
214 "show": true
215 }
216 ],
217 "yaxis": {
218 "align": false,
219 "alignLevel": null
220 }
221 },
222 {
223 "aliasColors": {},
224 "bars": false,
225 "dashLength": 10,
226 "dashes": false,
227 "datasource": "$es_datasource",
228 "description": "",
229 "fieldConfig": {
230 "defaults": {
231 "custom": {
232 "align": null
233 },
234 "mappings": [],
235 "thresholds": {
236 "mode": "absolute",
237 "steps": [
238 {
239 "color": "green",
240 "value": null
241 },
242 {
243 "color": "red",
244 "value": 80
245 }
246 ]
247 }
248 },
249 "overrides": []
250 },
251 "fill": 10,
252 "fillGradient": 0,
253 "gridPos": {
254 "h": 5,
255 "w": 12,
256 "x": 0,
257 "y": 6
258 },
259 "hiddenSeries": false,
260 "id": 6,
261 "legend": {
262 "avg": false,
263 "current": false,
264 "hideEmpty": false,
265 "hideZero": false,
266 "max": false,
267 "min": false,
268 "show": false,
269 "total": false,
270 "values": false
271 },
272 "lines": true,
273 "linewidth": 1,
274 "nullPointMode": "null",
275 "percentage": false,
276 "pluginVersion": "7.1.5",
277 "pointradius": 2,
278 "points": false,
279 "renderer": "flot",
280 "repeat": "pod",
281 "repeatDirection": "v",
282 "seriesOverrides": [],
283 "spaceLength": 10,
284 "stack": true,
285 "steppedLine": false,
286 "targets": [
287 {
288 "bucketAggs": [
289 {
290 "$$hashKey": "object:3957",
291 "fake": true,
292 "field": "kubernetes.pod_name.keyword",
293 "id": "3",
294 "settings": {
295 "min_doc_count": "1",
296 "order": "desc",
297 "orderBy": "_term",
298 "size": "0"
299 },
300 "type": "terms"
301 },
302 {
303 "$$hashKey": "object:195",
304 "field": "@timestamp",
305 "id": "2",
306 "settings": {
307 "interval": "1m",
308 "min_doc_count": "0",
309 "trimEdges": 0
310 },
311 "type": "date_histogram"
312 }
313 ],
314 "metrics": [
315 {
316 "$$hashKey": "object:193",
317 "field": "select field",
318 "id": "1",
319 "meta": {},
320 "settings": {},
321 "type": "count"
322 }
323 ],
324 "query": "kubernetes.namespace_name.keyword:$es_namespace",
325 "refId": "A",
326 "timeField": "@timestamp"
327 }
328 ],
329 "thresholds": [],
330 "timeFrom": null,
331 "timeRegions": [],
332 "timeShift": null,
333 "title": "Namespace $es_namespace: Log Messages Per Minute",
334 "tooltip": {
335 "shared": true,
336 "sort": 0,
337 "value_type": "individual"
338 },
339 "transformations": [],
340 "type": "graph",
341 "xaxis": {
342 "buckets": null,
343 "mode": "time",
344 "name": null,
345 "show": true,
346 "values": []
347 },
348 "yaxes": [
349 {
350 "$$hashKey": "object:875",
351 "format": "short",
352 "label": null,
353 "logBase": 1,
354 "max": null,
355 "min": null,
356 "show": true
357 },
358 {
359 "$$hashKey": "object:876",
360 "format": "short",
361 "label": null,
362 "logBase": 1,
363 "max": null,
364 "min": null,
365 "show": true
366 }
367 ],
368 "yaxis": {
369 "align": false,
370 "alignLevel": null
371 }
372 },
373 {
374 "aliasColors": {},
375 "bars": false,
376 "dashLength": 10,
377 "dashes": false,
378 "datasource": "$es_datasource",
379 "description": "",
380 "fieldConfig": {
381 "defaults": {
382 "custom": {}
383 },
384 "overrides": []
385 },
386 "fill": 10,
387 "fillGradient": 0,
388 "gridPos": {
389 "h": 5,
390 "w": 12,
391 "x": 12,
392 "y": 6
393 },
394 "hiddenSeries": false,
395 "id": 8,
396 "legend": {
397 "avg": false,
398 "current": false,
399 "max": false,
400 "min": false,
401 "show": false,
402 "total": false,
403 "values": false
404 },
405 "lines": true,
406 "linewidth": 1,
407 "nullPointMode": "null",
408 "percentage": false,
409 "pluginVersion": "7.1.5",
410 "pointradius": 2,
411 "points": false,
412 "renderer": "flot",
413 "repeatDirection": "v",
414 "seriesOverrides": [],
415 "spaceLength": 10,
416 "stack": true,
417 "steppedLine": false,
418 "targets": [
419 {
420 "bucketAggs": [
421 {
422 "$$hashKey": "object:191",
423 "fake": true,
424 "field": "kubernetes.container_name.keyword",
425 "id": "3",
426 "settings": {
427 "min_doc_count": "1",
428 "order": "desc",
429 "orderBy": "_term",
430 "size": "0"
431 },
432 "type": "terms"
433 },
434 {
435 "$$hashKey": "object:195",
436 "field": "@timestamp",
437 "id": "2",
438 "settings": {
439 "interval": "1m",
440 "min_doc_count": "0",
441 "trimEdges": 0
442 },
443 "type": "date_histogram"
444 }
445 ],
446 "metrics": [
447 {
448 "$$hashKey": "object:193",
449 "field": "select field",
450 "id": "1",
451 "type": "count"
452 }
453 ],
454 "query": "kubernetes.pod_name.keyword:$es_pod AND kubernetes.namespace_name.keyword:$es_namespace AND (logLevel.keyword:$es_loglevel)",
455 "refId": "A",
456 "timeField": "@timestamp"
457 }
458 ],
459 "thresholds": [],
460 "timeFrom": null,
461 "timeRegions": [],
462 "timeShift": null,
463 "title": "Pod $es_pod: Log Messages per Minute",
464 "tooltip": {
465 "shared": true,
466 "sort": 0,
467 "value_type": "individual"
468 },
469 "type": "graph",
470 "xaxis": {
471 "buckets": null,
472 "mode": "time",
473 "name": null,
474 "show": true,
475 "values": []
476 },
477 "yaxes": [
478 {
479 "$$hashKey": "object:171",
480 "format": "short",
481 "label": null,
482 "logBase": 1,
483 "max": null,
484 "min": null,
485 "show": true
486 },
487 {
488 "$$hashKey": "object:172",
489 "format": "short",
490 "label": null,
491 "logBase": 1,
492 "max": null,
493 "min": null,
494 "show": true
495 }
496 ],
497 "yaxis": {
498 "align": false,
499 "alignLevel": null
500 }
501 },
502 {
503 "datasource": "$es_datasource",
504 "description": "",
505 "fieldConfig": {
506 "defaults": {
507 "custom": {
508 "align": null
509 },
510 "mappings": [],
511 "thresholds": {
512 "mode": "absolute",
513 "steps": [
514 {
515 "color": "green",
516 "value": null
517 },
518 {
519 "color": "red",
520 "value": 80
521 }
522 ]
523 }
524 },
525 "overrides": [
526 {
527 "matcher": {
528 "id": "byName",
529 "options": "_source"
530 },
531 "properties": [
532 {
533 "id": "custom.width",
534 "value": 218
535 }
536 ]
537 },
538 {
539 "matcher": {
540 "id": "byName",
541 "options": "kubernetes.container_hash"
542 },
543 "properties": [
544 {
545 "id": "custom.width",
546 "value": 235
547 }
548 ]
549 },
550 {
551 "matcher": {
552 "id": "byName",
553 "options": "kubernetes.container_image"
554 },
555 "properties": [
556 {
557 "id": "custom.width",
558 "value": 178
559 }
560 ]
561 },
562 {
563 "matcher": {
564 "id": "byName",
565 "options": "kubernetes.labels.release"
566 },
567 "properties": [
568 {
569 "id": "custom.width",
570 "value": 168
571 }
572 ]
573 }
574 ]
575 },
576 "gridPos": {
577 "h": 14,
578 "w": 24,
579 "x": 0,
580 "y": 11
581 },
582 "id": 10,
583 "options": {
584 "showLabels": false,
585 "showTime": true,
586 "sortOrder": "Descending",
587 "wrapLogMessage": false
588 },
589 "pluginVersion": "7.1.5",
590 "repeatDirection": "v",
591 "targets": [
592 {
593 "bucketAggs": [
594 {
595 "$$hashKey": "object:381",
596 "field": "@timestamp",
597 "id": "2",
598 "settings": {
599 "interval": "auto",
600 "min_doc_count": 0,
601 "trimEdges": 0
602 },
603 "type": "date_histogram"
604 }
605 ],
606 "metrics": [
607 {
608 "$$hashKey": "object:211",
609 "field": "select field",
610 "id": "1",
611 "meta": {},
612 "settings": {},
613 "type": "logs"
614 }
615 ],
616 "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)",
617 "refId": "A",
618 "timeField": "@timestamp"
619 }
620 ],
621 "timeFrom": null,
622 "timeShift": null,
623 "title": "$es_pod Logs ($es_container)",
624 "transparent": true,
625 "type": "logs"
626 }
627 ],
628 "schemaVersion": 26,
629 "style": "dark",
630 "tags": [],
631 "templating": {
632 "list": [
633 {
634 "current": {
635 "selected": false,
636 "text": "ace-menlo-es",
637 "value": "ace-menlo-es"
638 },
639 "hide": 2,
640 "includeAll": false,
641 "label": "Datasource",
642 "multi": false,
643 "name": "es_datasource",
644 "options": [],
645 "query": "elasticsearch",
646 "refresh": 1,
647 "regex": "ace-menlo-es",
648 "skipUrlSync": false,
649 "type": "datasource"
650 },
651 {
652 "current": {
653 "selected": false,
654 "text": "tost",
655 "value": "tost"
656 },
657 "hide": 2,
658 "label": null,
659 "name": "es_namespace",
660 "options": [
661 {
662 "selected": true,
663 "text": "tost",
664 "value": "tost"
665 }
666 ],
667 "query": "tost",
668 "skipUrlSync": false,
669 "type": "constant"
670 },
671 {
672 "allValue": "stratum*",
673 "current": {
674 "selected": true,
675 "text": [
676 "config"
677 ],
678 "value": [
679 "config"
680 ]
681 },
682 "datasource": "$es_datasource",
683 "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}",
684 "hide": 0,
685 "includeAll": false,
686 "label": "Pod",
687 "multi": false,
688 "name": "es_pod",
689 "options": [],
690 "query": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}",
691 "refresh": 2,
692 "regex": "",
693 "skipUrlSync": false,
694 "sort": 0,
695 "tagValuesQuery": "",
696 "tags": [],
697 "tagsQuery": "",
698 "type": "query",
699 "useTags": false
700 },
701 {
702 "allValue": null,
703 "current": {
704 "selected": true,
705 "text": [
706 "config-getter"
707 ],
708 "value": [
709 "config-getter"
710 ]
711 },
712 "datasource": "$es_datasource",
713 "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t",
714 "hide": 0,
715 "includeAll": true,
716 "label": "Container",
717 "multi": true,
718 "name": "es_container",
719 "options": [],
720 "query": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t",
721 "refresh": 2,
722 "regex": "",
723 "skipUrlSync": false,
724 "sort": 0,
725 "tagValuesQuery": "",
726 "tags": [],
727 "tagsQuery": "",
728 "type": "query",
729 "useTags": false
730 },
731 {
732 "allValue": "null OR *",
733 "current": {
734 "selected": false,
735 "text": "All",
736 "value": "$__all"
737 },
738 "datasource": "$es_datasource",
739 "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",
740 "hide": 0,
741 "includeAll": true,
742 "label": "Log Level",
743 "multi": true,
744 "name": "es_loglevel",
745 "options": [],
746 "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",
747 "refresh": 2,
748 "regex": "",
749 "skipUrlSync": false,
750 "sort": 0,
751 "tagValuesQuery": "",
752 "tags": [],
753 "tagsQuery": "",
754 "type": "query",
755 "useTags": false
756 }
757 ]
758 },
759 "time": {
760 "from": "now-6h",
761 "to": "now"
762 },
763 "timepicker": {
764 "refresh_intervals": [
765 "5s",
766 "10s",
767 "30s",
768 "1m",
769 "5m",
770 "15m",
771 "30m",
772 "1h",
773 "2h",
774 "1d"
775 ]
776 },
777 "timezone": "",
778 "title": "TOST Metrics",
779 "uid": "fVcZZm8Gk",
780 "version": 10
781}