1{
2  "annotations": {
3    "list": [
4      {
5        "builtIn": 1,
6        "datasource": "-- Grafana --",
7        "enable": false,
8        "hide": true,
9        "iconColor": "rgba(0, 211, 255, 1)",
10        "limit": 100,
11        "name": "Annotations & Alerts",
12        "showIn": 0,
13        "type": "dashboard"
14      },
15      {
16        "datasource": "Elastic 5 Logs",
17        "enable": false,
18        "iconColor": "rgba(255, 96, 96, 1)",
19        "limit": 100,
20        "name": "test",
21        "query": "",
22        "showIn": 0,
23        "textField": "description",
24        "type": "alert"
25      }
26    ]
27  },
28  "editable": true,
29  "gnetId": null,
30  "graphTooltip": 0,
31  "iteration": 1591027568655,
32  "links": [
33    {
34      "asDropdown": true,
35      "icon": "external link",
36      "tags": ["gdev", "elasticsearch", "datasource-test"],
37      "title": "Dashboards",
38      "type": "dashboards"
39    }
40  ],
41  "panels": [
42    {
43      "aliasColors": {},
44      "bars": false,
45      "dashLength": 10,
46      "dashes": false,
47      "datasource": "gdev-elasticsearch-v2-metrics",
48      "editable": true,
49      "error": false,
50      "fieldConfig": {
51        "defaults": {
52          "custom": {}
53        },
54        "overrides": []
55      },
56      "fill": 1,
57      "fillGradient": 0,
58      "grid": {},
59      "gridPos": {
60        "h": 7,
61        "w": 24,
62        "x": 0,
63        "y": 0
64      },
65      "hiddenSeries": false,
66      "id": 1,
67      "legend": {
68        "alignAsTable": true,
69        "avg": false,
70        "current": false,
71        "max": true,
72        "min": false,
73        "rightSide": true,
74        "show": true,
75        "total": false,
76        "values": true
77      },
78      "lines": true,
79      "linewidth": 2,
80      "links": [],
81      "nullPointMode": "connected",
82      "options": {
83        "dataLinks": []
84      },
85      "percentage": false,
86      "pointradius": 5,
87      "points": false,
88      "renderer": "flot",
89      "seriesOverrides": [],
90      "spaceLength": 10,
91      "stack": false,
92      "steppedLine": false,
93      "targets": [
94        {
95          "bucketAggs": [
96            {
97              "field": "@hostname",
98              "id": "3",
99              "settings": {
100                "min_doc_count": 1,
101                "order": "asc",
102                "orderBy": "1",
103                "size": "5"
104              },
105              "type": "terms"
106            },
107            {
108              "field": "@timestamp",
109              "id": "2",
110              "settings": {
111                "interval": "auto",
112                "min_doc_count": 0,
113                "trimEdges": 0
114              },
115              "type": "date_histogram"
116            }
117          ],
118          "dsType": "elasticsearch",
119          "metrics": [
120            {
121              "field": "@value",
122              "id": "1",
123              "meta": {},
124              "settings": {},
125              "type": "max"
126            }
127          ],
128          "query": "*",
129          "refId": "A",
130          "target": "",
131          "timeField": "@timestamp"
132        }
133      ],
134      "thresholds": [],
135      "timeFrom": null,
136      "timeRegions": [],
137      "timeShift": null,
138      "title": "Top 5 servers",
139      "tooltip": {
140        "msResolution": true,
141        "shared": true,
142        "sort": 0,
143        "value_type": "cumulative"
144      },
145      "type": "graph",
146      "xaxis": {
147        "buckets": null,
148        "mode": "time",
149        "name": null,
150        "show": true,
151        "values": []
152      },
153      "yaxes": [
154        {
155          "format": "short",
156          "logBase": 1,
157          "max": null,
158          "min": null,
159          "show": true
160        },
161        {
162          "format": "short",
163          "logBase": 1,
164          "max": null,
165          "min": null,
166          "show": true
167        }
168      ],
169      "yaxis": {
170        "align": false,
171        "alignLevel": null
172      }
173    },
174    {
175      "aliasColors": {
176        "Count": "#6ED0E0"
177      },
178      "bars": false,
179      "dashLength": 10,
180      "dashes": false,
181      "datasource": "gdev-elasticsearch-v2-metrics",
182      "editable": true,
183      "error": false,
184      "fieldConfig": {
185        "defaults": {
186          "custom": {}
187        },
188        "overrides": []
189      },
190      "fill": 1,
191      "fillGradient": 0,
192      "grid": {},
193      "gridPos": {
194        "h": 6,
195        "w": 12,
196        "x": 0,
197        "y": 7
198      },
199      "hiddenSeries": false,
200      "id": 2,
201      "legend": {
202        "alignAsTable": true,
203        "avg": true,
204        "current": false,
205        "max": false,
206        "min": false,
207        "rightSide": true,
208        "show": true,
209        "total": false,
210        "values": true
211      },
212      "lines": true,
213      "linewidth": 2,
214      "links": [],
215      "nullPointMode": "connected",
216      "options": {
217        "dataLinks": []
218      },
219      "percentage": false,
220      "pointradius": 5,
221      "points": false,
222      "renderer": "flot",
223      "seriesOverrides": [
224        {
225          "alias": "Count",
226          "lines": false,
227          "yaxis": 2,
228          "zindex": -1
229        }
230      ],
231      "spaceLength": 10,
232      "stack": false,
233      "steppedLine": false,
234      "targets": [
235        {
236          "alias": "{{metric}}",
237          "bucketAggs": [
238            {
239              "field": "@timestamp",
240              "id": "2",
241              "settings": {
242                "interval": "5m",
243                "min_doc_count": 0,
244                "trimEdges": 0
245              },
246              "type": "date_histogram"
247            }
248          ],
249          "dsType": "elasticsearch",
250          "metrics": [
251            {
252              "field": "@value",
253              "id": "1",
254              "meta": {},
255              "settings": {
256                "percents": [25, 50, 75, 95, 99]
257              },
258              "type": "percentiles"
259            }
260          ],
261          "query": "@metric:cpu",
262          "refId": "A",
263          "target": "",
264          "timeField": "@timestamp"
265        }
266      ],
267      "thresholds": [],
268      "timeFrom": null,
269      "timeRegions": [],
270      "timeShift": null,
271      "title": "Percentiles & Metric filter",
272      "tooltip": {
273        "msResolution": false,
274        "shared": true,
275        "sort": 0,
276        "value_type": "cumulative"
277      },
278      "type": "graph",
279      "xaxis": {
280        "buckets": null,
281        "mode": "time",
282        "name": null,
283        "show": true,
284        "values": []
285      },
286      "yaxes": [
287        {
288          "format": "short",
289          "logBase": 1,
290          "max": null,
291          "min": null,
292          "show": true
293        },
294        {
295          "format": "short",
296          "logBase": 1,
297          "max": null,
298          "min": null,
299          "show": true
300        }
301      ],
302      "yaxis": {
303        "align": false,
304        "alignLevel": null
305      }
306    },
307    {
308      "aliasColors": {
309        "Count": "#6ED0E0"
310      },
311      "bars": false,
312      "dashLength": 10,
313      "dashes": false,
314      "datasource": "gdev-elasticsearch-v2-metrics",
315      "editable": true,
316      "error": false,
317      "fieldConfig": {
318        "defaults": {
319          "custom": {}
320        },
321        "overrides": []
322      },
323      "fill": 1,
324      "fillGradient": 0,
325      "grid": {},
326      "gridPos": {
327        "h": 6,
328        "w": 12,
329        "x": 12,
330        "y": 7
331      },
332      "hiddenSeries": false,
333      "id": 3,
334      "legend": {
335        "alignAsTable": true,
336        "avg": true,
337        "current": false,
338        "max": false,
339        "min": false,
340        "rightSide": true,
341        "show": true,
342        "total": false,
343        "values": true
344      },
345      "lines": true,
346      "linewidth": 2,
347      "links": [],
348      "nullPointMode": "connected",
349      "options": {
350        "dataLinks": []
351      },
352      "percentage": false,
353      "pointradius": 5,
354      "points": false,
355      "renderer": "flot",
356      "seriesOverrides": [
357        {
358          "alias": "Count",
359          "lines": false,
360          "yaxis": 2,
361          "zindex": -1
362        }
363      ],
364      "spaceLength": 10,
365      "stack": false,
366      "steppedLine": false,
367      "targets": [
368        {
369          "alias": "{{metric}}",
370          "bucketAggs": [
371            {
372              "field": "@timestamp",
373              "id": "2",
374              "settings": {
375                "interval": "auto",
376                "min_doc_count": 0,
377                "trimEdges": 0
378              },
379              "type": "date_histogram"
380            }
381          ],
382          "dsType": "elasticsearch",
383          "metrics": [
384            {
385              "field": "@value",
386              "id": "1",
387              "meta": {
388                "std_deviation_bounds_lower": true,
389                "std_deviation_bounds_upper": true
390              },
391              "settings": {},
392              "type": "extended_stats"
393            }
394          ],
395          "query": "@metric:cpu",
396          "refId": "A",
397          "target": "",
398          "timeField": "@timestamp"
399        }
400      ],
401      "thresholds": [],
402      "timeFrom": null,
403      "timeRegions": [],
404      "timeShift": null,
405      "title": "Standard dev",
406      "tooltip": {
407        "msResolution": true,
408        "shared": true,
409        "sort": 0,
410        "value_type": "cumulative"
411      },
412      "type": "graph",
413      "xaxis": {
414        "buckets": null,
415        "mode": "time",
416        "name": null,
417        "show": true,
418        "values": []
419      },
420      "yaxes": [
421        {
422          "format": "short",
423          "logBase": 1,
424          "max": null,
425          "min": null,
426          "show": true
427        },
428        {
429          "format": "short",
430          "logBase": 1,
431          "max": null,
432          "min": null,
433          "show": true
434        }
435      ],
436      "yaxis": {
437        "align": false,
438        "alignLevel": null
439      }
440    },
441    {
442      "columns": [
443        {
444          "text": "@hostname",
445          "value": "@hostname"
446        },
447        {
448          "text": "Average",
449          "value": "Average"
450        },
451        {
452          "text": "Max",
453          "value": "Max"
454        },
455        {
456          "text": "Sum",
457          "value": "Sum"
458        }
459      ],
460      "datasource": "gdev-elasticsearch-v2-metrics",
461      "editable": true,
462      "error": false,
463      "fieldConfig": {
464        "defaults": {
465          "custom": {}
466        },
467        "overrides": []
468      },
469      "fontSize": "100%",
470      "gridPos": {
471        "h": 7,
472        "w": 24,
473        "x": 0,
474        "y": 13
475      },
476      "id": 6,
477      "links": [],
478      "pageSize": null,
479      "scroll": true,
480      "showHeader": true,
481      "sort": {
482        "col": 0,
483        "desc": true
484      },
485      "styles": [
486        {
487          "align": "auto",
488          "dateFormat": "YYYY-MM-DD HH:mm:ss",
489          "pattern": "@timestamp",
490          "type": "date"
491        },
492        {
493          "align": "auto",
494          "colorMode": null,
495          "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
496          "dateFormat": "YYYY-MM-DD HH:mm:ss",
497          "decimals": 2,
498          "pattern": "/.*/",
499          "thresholds": [],
500          "type": "number",
501          "unit": "short"
502        }
503      ],
504      "targets": [
505        {
506          "bucketAggs": [
507            {
508              "field": "@hostname",
509              "id": "2",
510              "settings": {
511                "min_doc_count": 1,
512                "order": "asc",
513                "orderBy": "_term",
514                "size": "0"
515              },
516              "type": "terms"
517            }
518          ],
519          "dsType": "elasticsearch",
520          "metrics": [
521            {
522              "field": "@value",
523              "id": "1",
524              "meta": {},
525              "settings": {},
526              "type": "avg"
527            },
528            {
529              "field": "@value",
530              "id": "3",
531              "meta": {},
532              "settings": {},
533              "type": "max"
534            },
535            {
536              "field": "@value",
537              "id": "4",
538              "meta": {},
539              "settings": {},
540              "type": "sum"
541            }
542          ],
543          "refId": "B",
544          "timeField": "@timestamp"
545        }
546      ],
547      "title": "ES Metrics",
548      "transform": "table",
549      "type": "table-old"
550    },
551    {
552      "columns": [
553        {
554          "text": "@timestamp",
555          "value": "@timestamp"
556        },
557        {
558          "text": "@message",
559          "value": "@message"
560        },
561        {
562          "text": "tags",
563          "value": "tags"
564        },
565        {
566          "text": "description",
567          "value": "description"
568        }
569      ],
570      "datasource": "gdev-elasticsearch-v2-logs",
571      "editable": true,
572      "error": false,
573      "fieldConfig": {
574        "defaults": {
575          "custom": {}
576        },
577        "overrides": []
578      },
579      "fontSize": "100%",
580      "gridPos": {
581        "h": 7,
582        "w": 24,
583        "x": 0,
584        "y": 20
585      },
586      "id": 5,
587      "links": [],
588      "pageSize": null,
589      "scroll": true,
590      "showHeader": true,
591      "sort": {
592        "col": 0,
593        "desc": true
594      },
595      "styles": [
596        {
597          "align": "auto",
598          "dateFormat": "YYYY-MM-DD HH:mm:ss",
599          "pattern": "@timestamp",
600          "type": "date"
601        }
602      ],
603      "targets": [
604        {
605          "bucketAggs": [],
606          "dsType": "elasticsearch",
607          "metrics": [
608            {
609              "field": "select field",
610              "id": "1",
611              "meta": {},
612              "settings": {
613                "size": 500
614              },
615              "type": "raw_document"
616            }
617          ],
618          "refId": "A",
619          "target": "",
620          "timeField": "@timestamp"
621        }
622      ],
623      "title": "ES Log query",
624      "transform": "json",
625      "type": "table-old"
626    },
627    {
628      "circleMaxSize": 30,
629      "circleMinSize": 2,
630      "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
631      "datasource": "gdev-elasticsearch-v2-metrics",
632      "decimals": 0,
633      "esGeoPoint": "@location",
634      "esMetric": "Average",
635      "fieldConfig": {
636        "defaults": {
637          "custom": {}
638        },
639        "overrides": []
640      },
641      "gridPos": {
642        "h": 12,
643        "w": 24,
644        "x": 0,
645        "y": 27
646      },
647      "hideEmpty": false,
648      "hideZero": false,
649      "id": 8,
650      "initialZoom": 1,
651      "links": [],
652      "locationData": "geohash",
653      "mapCenter": "(0°, 0°)",
654      "mapCenterLatitude": 0,
655      "mapCenterLongitude": 0,
656      "maxDataPoints": 1,
657      "mouseWheelZoom": false,
658      "showLegend": true,
659      "stickyLabels": false,
660      "tableQueryOptions": {
661        "geohashField": "geohash",
662        "latitudeField": "latitude",
663        "longitudeField": "longitude",
664        "metricField": "metric",
665        "queryType": "geohash"
666      },
667      "targets": [
668        {
669          "bucketAggs": [
670            {
671              "fake": true,
672              "field": "@location",
673              "id": "3",
674              "settings": {
675                "precision": 2
676              },
677              "type": "geohash_grid"
678            }
679          ],
680          "metrics": [
681            {
682              "field": "@value",
683              "id": "1",
684              "meta": {},
685              "settings": {},
686              "type": "avg"
687            }
688          ],
689          "refId": "A",
690          "target": "",
691          "timeField": "@timestamp"
692        }
693      ],
694      "thresholds": "0,10",
695      "title": "World map panel",
696      "type": "grafana-worldmap-panel",
697      "unitPlural": "",
698      "unitSingle": "",
699      "valueName": "total"
700    }
701  ],
702  "schemaVersion": 25,
703  "style": "dark",
704  "tags": ["elasticsearch", "gdev", "datasource-test"],
705  "templating": {
706    "list": [
707      {
708        "datasource": "gdev-elasticsearch-v2-metrics",
709        "filters": [],
710        "hide": 0,
711        "label": "",
712        "name": "Filters",
713        "skipUrlSync": false,
714        "type": "adhoc"
715      }
716    ]
717  },
718  "time": {
719    "from": "now-30m",
720    "to": "now"
721  },
722  "timepicker": {
723    "collapse": false,
724    "enable": true,
725    "notice": false,
726    "now": true,
727    "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
728    "status": "Stable",
729    "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"],
730    "type": "timepicker"
731  },
732  "timezone": "browser",
733  "title": "Datasource tests - Elasticsearch v2",
734  "uid": "RlqLq2fiz",
735  "version": 1
736}
737