Created
December 30, 2020 11:05
-
-
Save hugohaggmark/26376048a53c28e3670446e941f9d555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_GDEV-ELASTICSEARCH-V7-METRICS", | |
"label": "gdev-elasticsearch-v7-metrics", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "elasticsearch", | |
"pluginName": "Elasticsearch" | |
}, | |
{ | |
"name": "DS_GDEV-ELASTICSEARCH-V7-LOGS", | |
"label": "gdev-elasticsearch-v7-logs", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "elasticsearch", | |
"pluginName": "Elasticsearch" | |
} | |
], | |
"__requires": [ | |
{ | |
"type": "datasource", | |
"id": "elasticsearch", | |
"name": "Elasticsearch", | |
"version": "1.0.0" | |
}, | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "7.4.0-pre" | |
}, | |
{ | |
"type": "panel", | |
"id": "grafana-worldmap-panel", | |
"name": "Worldmap Panel", | |
"version": "0.3.2" | |
}, | |
{ | |
"type": "panel", | |
"id": "graph", | |
"name": "Graph", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "table-old", | |
"name": "Table (old)", | |
"version": "" | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": false, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"limit": 100, | |
"name": "Annotations & Alerts", | |
"showIn": 0, | |
"type": "dashboard" | |
}, | |
{ | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-LOGS}", | |
"enable": true, | |
"iconColor": "rgba(255, 96, 96, 1)", | |
"limit": 100, | |
"name": "test", | |
"query": "", | |
"showIn": 0, | |
"textField": "description", | |
"type": "alert" | |
} | |
] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 0, | |
"id": null, | |
"iteration": 1609326272181, | |
"links": [ | |
{ | |
"asDropdown": true, | |
"icon": "external link", | |
"tags": [ | |
"gdev", | |
"elasticsearch", | |
"datasource-test" | |
], | |
"title": "Dashboards", | |
"type": "dashboards" | |
} | |
], | |
"panels": [ | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"grid": {}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"hiddenSeries": false, | |
"id": 1, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": false, | |
"max": true, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 2, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.4.0-pre", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"field": "@hostname", | |
"id": "3", | |
"settings": { | |
"min_doc_count": 1, | |
"order": "asc", | |
"orderBy": "1", | |
"size": "5" | |
}, | |
"type": "terms" | |
}, | |
{ | |
"field": "@timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto", | |
"min_doc_count": 0, | |
"trimEdges": 0 | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"dsType": "elasticsearch", | |
"metrics": [ | |
{ | |
"field": "@value", | |
"id": "1", | |
"meta": {}, | |
"settings": {}, | |
"type": "max" | |
} | |
], | |
"query": "@hostname:${host:lucene}", | |
"refId": "A", | |
"target": "", | |
"timeField": "@timestamp" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Top 5 servers", | |
"tooltip": { | |
"msResolution": true, | |
"shared": true, | |
"sort": 0, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": { | |
"Count": "#6ED0E0" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"grid": {}, | |
"gridPos": { | |
"h": 6, | |
"w": 12, | |
"x": 0, | |
"y": 7 | |
}, | |
"hiddenSeries": false, | |
"id": 2, | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": false, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 2, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.4.0-pre", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [ | |
{ | |
"alias": "Count", | |
"lines": false, | |
"yaxis": 2, | |
"zindex": -1 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "{{metric}}", | |
"bucketAggs": [ | |
{ | |
"field": "@timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "5m", | |
"min_doc_count": 0, | |
"trimEdges": 0 | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"dsType": "elasticsearch", | |
"metrics": [ | |
{ | |
"field": "@value", | |
"id": "1", | |
"meta": {}, | |
"settings": { | |
"percents": [ | |
25, | |
50, | |
75, | |
95, | |
99 | |
] | |
}, | |
"type": "percentiles" | |
} | |
], | |
"query": "@hostname:${host:lucene} AND @metric:${metric:lucene}", | |
"refId": "A", | |
"target": "", | |
"timeField": "@timestamp" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Percentiles & Metric filter", | |
"tooltip": { | |
"msResolution": false, | |
"shared": true, | |
"sort": 0, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"aliasColors": { | |
"Count": "#6ED0E0" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {}, | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"grid": {}, | |
"gridPos": { | |
"h": 6, | |
"w": 12, | |
"x": 12, | |
"y": 7 | |
}, | |
"hiddenSeries": false, | |
"id": 3, | |
"legend": { | |
"alignAsTable": true, | |
"avg": true, | |
"current": false, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 2, | |
"links": [], | |
"nullPointMode": "connected", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "7.4.0-pre", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [ | |
{ | |
"alias": "Count", | |
"lines": false, | |
"yaxis": 2, | |
"zindex": -1 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"alias": "{{metric}}", | |
"bucketAggs": [ | |
{ | |
"field": "@timestamp", | |
"id": "2", | |
"settings": { | |
"interval": "auto", | |
"min_doc_count": 0, | |
"trimEdges": 0 | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"dsType": "elasticsearch", | |
"metrics": [ | |
{ | |
"field": "@value", | |
"id": "1", | |
"meta": { | |
"std_deviation_bounds_lower": true, | |
"std_deviation_bounds_upper": true | |
}, | |
"settings": {}, | |
"type": "extended_stats" | |
} | |
], | |
"query": "@hostname:${host:lucene} AND @metric:${metric:lucene}", | |
"refId": "A", | |
"target": "", | |
"timeField": "@timestamp" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeRegions": [], | |
"timeShift": null, | |
"title": "Standard dev", | |
"tooltip": { | |
"msResolution": true, | |
"shared": true, | |
"sort": 0, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"columns": [ | |
{ | |
"text": "@hostname", | |
"value": "@hostname" | |
}, | |
{ | |
"text": "Average", | |
"value": "Average" | |
}, | |
{ | |
"text": "Max", | |
"value": "Max" | |
}, | |
{ | |
"text": "Sum", | |
"value": "Sum" | |
} | |
], | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "100%", | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 13 | |
}, | |
"id": 6, | |
"links": [], | |
"pageSize": null, | |
"scroll": true, | |
"showHeader": true, | |
"sort": { | |
"col": 0, | |
"desc": true | |
}, | |
"styles": [ | |
{ | |
"align": "auto", | |
"dateFormat": "YYYY-MM-DD HH:mm:ss", | |
"pattern": "@timestamp", | |
"type": "date" | |
}, | |
{ | |
"align": "auto", | |
"colorMode": null, | |
"colors": [ | |
"rgba(245, 54, 54, 0.9)", | |
"rgba(237, 129, 40, 0.89)", | |
"rgba(50, 172, 45, 0.97)" | |
], | |
"dateFormat": "YYYY-MM-DD HH:mm:ss", | |
"decimals": 2, | |
"pattern": "/.*/", | |
"thresholds": [], | |
"type": "number", | |
"unit": "short" | |
} | |
], | |
"targets": [ | |
{ | |
"bucketAggs": [ | |
{ | |
"field": "@hostname", | |
"id": "2", | |
"settings": { | |
"min_doc_count": 1, | |
"order": "asc", | |
"orderBy": "_term", | |
"size": "0" | |
}, | |
"type": "terms" | |
} | |
], | |
"dsType": "elasticsearch", | |
"metrics": [ | |
{ | |
"field": "@value", | |
"id": "1", | |
"meta": {}, | |
"settings": {}, | |
"type": "avg" | |
}, | |
{ | |
"field": "@value", | |
"id": "3", | |
"meta": {}, | |
"settings": {}, | |
"type": "max" | |
}, | |
{ | |
"field": "@value", | |
"id": "4", | |
"meta": {}, | |
"settings": {}, | |
"type": "sum" | |
} | |
], | |
"refId": "B", | |
"timeField": "@timestamp" | |
} | |
], | |
"title": "ES Metrics", | |
"transform": "table", | |
"type": "table-old" | |
}, | |
{ | |
"columns": [ | |
{ | |
"text": "@timestamp", | |
"value": "@timestamp" | |
}, | |
{ | |
"text": "@message", | |
"value": "@message" | |
}, | |
{ | |
"text": "tags", | |
"value": "tags" | |
}, | |
{ | |
"text": "description", | |
"value": "description" | |
} | |
], | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-LOGS}", | |
"editable": true, | |
"error": false, | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"fontSize": "100%", | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 20 | |
}, | |
"id": 5, | |
"links": [], | |
"pageSize": null, | |
"scroll": true, | |
"showHeader": true, | |
"sort": { | |
"col": 0, | |
"desc": true | |
}, | |
"styles": [ | |
{ | |
"align": "auto", | |
"dateFormat": "YYYY-MM-DD HH:mm:ss", | |
"pattern": "@timestamp", | |
"type": "date" | |
} | |
], | |
"targets": [ | |
{ | |
"bucketAggs": [], | |
"dsType": "elasticsearch", | |
"metrics": [ | |
{ | |
"field": "select field", | |
"id": "1", | |
"meta": {}, | |
"settings": { | |
"size": 500 | |
}, | |
"type": "raw_document" | |
} | |
], | |
"refId": "A", | |
"target": "", | |
"timeField": "@timestamp" | |
} | |
], | |
"title": "ES Log query", | |
"transform": "json", | |
"type": "table-old" | |
}, | |
{ | |
"circleMaxSize": 30, | |
"circleMinSize": 2, | |
"colors": [ | |
"rgba(245, 54, 54, 0.9)", | |
"rgba(237, 129, 40, 0.89)", | |
"rgba(50, 172, 45, 0.97)" | |
], | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"decimals": 0, | |
"esGeoPoint": "@location", | |
"esMetric": "Average", | |
"fieldConfig": { | |
"defaults": { | |
"custom": {} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 24, | |
"x": 0, | |
"y": 27 | |
}, | |
"hideEmpty": false, | |
"hideZero": false, | |
"id": 8, | |
"initialZoom": "1", | |
"links": [], | |
"locationData": "geohash", | |
"mapCenter": "(0°, 0°)", | |
"mapCenterLatitude": 0, | |
"mapCenterLongitude": 0, | |
"maxDataPoints": 1, | |
"mouseWheelZoom": false, | |
"showLegend": true, | |
"stickyLabels": false, | |
"tableQueryOptions": { | |
"geohashField": "geohash", | |
"latitudeField": "latitude", | |
"longitudeField": "longitude", | |
"metricField": "metric", | |
"queryType": "geohash" | |
}, | |
"targets": [ | |
{ | |
"bucketAggs": [ | |
{ | |
"fake": true, | |
"field": "@location", | |
"id": "3", | |
"settings": { | |
"precision": 2 | |
}, | |
"type": "geohash_grid" | |
} | |
], | |
"metrics": [ | |
{ | |
"field": "@value", | |
"id": "1", | |
"meta": {}, | |
"settings": {}, | |
"type": "avg" | |
} | |
], | |
"refId": "A", | |
"target": "", | |
"timeField": "@timestamp" | |
} | |
], | |
"thresholds": "0,10", | |
"title": "World map panel", | |
"type": "grafana-worldmap-panel", | |
"unitPlural": "", | |
"unitSingle": "", | |
"valueName": "total" | |
} | |
], | |
"schemaVersion": 27, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"datasource": "gdev-elasticsearch-v7-metrics", | |
"description": null, | |
"error": null, | |
"filters": [], | |
"hide": 0, | |
"label": "", | |
"name": "Filters", | |
"skipUrlSync": false, | |
"type": "adhoc" | |
}, | |
{ | |
"allValue": null, | |
"current": {}, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"definition": "{\"find\": \"terms\", \"field\": \"@hostname\"}", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": true, | |
"name": "host", | |
"options": [], | |
"query": "{\"find\": \"terms\", \"field\": \"@hostname\"}", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"allValue": null, | |
"current": {}, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"definition": "{\"find\": \"terms\", \"field\": \"@metric\"}", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": true, | |
"name": "metric", | |
"options": [], | |
"query": "{\"find\": \"terms\", \"field\": \"@metric\"}", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"allValue": null, | |
"current": {}, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"definition": "{\"find\": \"fields\", \"type\":\"keyword\"}", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": true, | |
"name": "keyword_fields", | |
"options": [], | |
"query": "{\"find\": \"fields\", \"type\":\"keyword\"}", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"allValue": null, | |
"current": {}, | |
"datasource": "${DS_GDEV-ELASTICSEARCH-V7-METRICS}", | |
"definition": "{\"find\": \"fields\"}", | |
"description": null, | |
"error": null, | |
"hide": 0, | |
"includeAll": true, | |
"label": null, | |
"multi": true, | |
"name": "all_fields", | |
"options": [], | |
"query": "{\"find\": \"fields\"}", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tags": [], | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
} | |
] | |
}, | |
"time": { | |
"from": "now-5m", | |
"to": "now" | |
}, | |
"timepicker": { | |
"collapse": false, | |
"enable": true, | |
"notice": false, | |
"now": true, | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"1m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
], | |
"status": "Stable", | |
"time_options": [ | |
"5m", | |
"15m", | |
"1h", | |
"6h", | |
"12h", | |
"24h", | |
"2d", | |
"7d", | |
"30d" | |
], | |
"type": "timepicker" | |
}, | |
"timezone": "browser", | |
"title": "Elasticsearch v7 Fetch", | |
"uid": "Igtz1sbGz", | |
"version": 13 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment