X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=elasticsearch%2Ffiles%2Fgrafana_influxdb.json;h=9eec5af2c142efc546c0af8f0a6c2a3d16376adc;hp=2a07913e0a8b42805c9ae5aa59af92a0ce17ab8d;hb=3762da9211ecc8b0fcbb57df0ae996af9b76de57;hpb=de38c969798a8295d096b8c085a45daa4c3ff666 diff --git a/elasticsearch/files/grafana_influxdb.json b/elasticsearch/files/grafana_influxdb.json index 2a07913..9eec5af 100644 --- a/elasticsearch/files/grafana_influxdb.json +++ b/elasticsearch/files/grafana_influxdb.json @@ -17,10 +17,10 @@ ] }, "editable": true, + "gnetId": null, "hideControls": false, "id": null, "links": [], - "originalTitle": "Elasticsearch", "refresh": "1m", "rows": [ { @@ -51,6 +51,17 @@ "id": 59, "interval": "> 60s", "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, @@ -58,6 +69,13 @@ "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], "span": 2, "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", @@ -72,19 +90,12 @@ "dsType": "influxdb", "fill": "", "function": "last", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], + "groupBy": [], "groupby_field": "", "interval": "", "measurement": "cluster_status", "policy": "default", - "query": "SELECT last(\"value\") FROM \"cluster_status\" WHERE \"cluster_name\" = 'elasticsearch' AND $timeFilter GROUP BY time($interval)", + "query": "SELECT last(\"value\") FROM \"cluster_status\" WHERE \"cluster_name\" = 'elasticsearch' AND $timeFilter", "rawQuery": false, "refId": "A", "resultFormat": "time_series", @@ -105,10 +116,11 @@ "tags": [ { "key": "environment_label", - "operator": "=", - "value": "$environment" + "operator": "=~", + "value": "/^$environment$/" }, { + "condition": "AND", "key": "cluster_name", "operator": "=", "value": "elasticsearch" @@ -178,6 +190,17 @@ "id": 61, "interval": ">60s", "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, @@ -185,6 +208,13 @@ "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], "span": 2, "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", @@ -196,17 +226,10 @@ { "alias": "number", "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], + "groupBy": [], "measurement": "elasticsearch_cluster_number_of_nodes", "policy": "default", - "query": "SELECT last(\"value\") FROM \"elasticsearch_cluster_number_of_nodes\" WHERE $timeFilter GROUP BY time($interval)", + "query": "SELECT last(\"value\") FROM \"elasticsearch_cluster_number_of_nodes\" WHERE $timeFilter", "rawQuery": false, "refId": "A", "resultFormat": "time_series", @@ -227,8 +250,8 @@ "tags": [ { "key": "environment_label", - "operator": "=", - "value": "$environment" + "operator": "=~", + "value": "/^$environment$/" } ] } @@ -487,6 +510,7 @@ "tooltip": { "msResolution": false, "shared": true, + "sort": 0, "value_type": "cumulative" }, "type": "graph", @@ -595,6 +619,7 @@ "tooltip": { "msResolution": false, "shared": true, + "sort": 0, "value_type": "cumulative" }, "type": "graph", @@ -651,6 +676,17 @@ "id": 32, "interval": "> 60s", "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, @@ -658,6 +694,13 @@ "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], "span": 2, "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", @@ -670,17 +713,10 @@ "column": "value", "dsType": "influxdb", "function": "last", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], + "groupBy": [], "measurement": "lma_components_threads", "policy": "default", - "query": "SELECT last(\"value\") FROM \"lma_components_threads\" WHERE \"service\" = 'elasticsearch' AND \"hostname\" =~ /^$server$/ AND $timeFilter GROUP BY time($interval)", + "query": "SELECT last(\"value\") FROM \"lma_components_threads\" WHERE \"service\" = 'elasticsearch' AND \"hostname\" =~ /^$server$/ AND $timeFilter", "rawQuery": false, "refId": "A", "resultFormat": "time_series", @@ -707,8 +743,8 @@ { "condition": "AND", "key": "hostname", - "operator": "=", - "value": "$server" + "operator": "=~", + "value": "/^$server$/" } ] } @@ -824,6 +860,7 @@ "tooltip": { "msResolution": false, "shared": true, + "sort": 0, "value_type": "cumulative" }, "type": "graph", @@ -998,6 +1035,7 @@ "tooltip": { "msResolution": false, "shared": true, + "sort": 0, "value_type": "cumulative" }, "type": "graph", @@ -1172,6 +1210,7 @@ "tooltip": { "msResolution": false, "shared": true, + "sort": 0, "value_type": "individual" }, "type": "graph", @@ -1194,323 +1233,6 @@ "show": true } ] - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": null, - "editable": true, - "error": false, - "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "id": 58, - "interval": null, - "links": [], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "span": 2, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "targets": [ - { - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], - "measurement": "fs_space_percent_free", - "policy": "default", - "query": "SELECT mean(\"value\") FROM \"fs_space_percent_free\" WHERE \"fs\" = '/opt/es/data' AND \"hostname\" =~ /^$server$/ AND $timeFilter GROUP BY time($interval)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "fs", - "operator": "=", - "value": "/opt/es/data" - }, - { - "condition": "AND", - "key": "hostname", - "operator": "=", - "value": "$server" - } - ] - } - ], - "thresholds": "", - "title": "Free space on /opt/es/data", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "datasource": null, - "editable": true, - "error": false, - "fill": 1, - "grid": { - "threshold1": null, - "threshold1Color": "rgba(216, 200, 27, 0.27)", - "threshold2": null, - "threshold2Color": "rgba(234, 112, 112, 0.22)" - }, - "id": 57, - "interval": "> 60s", - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "span": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "free", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "0" - ], - "type": "fill" - } - ], - "measurement": "fs_space_free", - "policy": "default", - "query": "SELECT mean(\"value\") FROM \"fs_space_free\" WHERE \"fs\" = '/opt/es/data' AND \"hostname\" =~ /^$server$/ AND $timeFilter GROUP BY time($interval) fill(0)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "fs", - "operator": "=", - "value": "/opt/es/data" - }, - { - "condition": "AND", - "key": "hostname", - "operator": "=", - "value": "$server" - } - ] - }, - { - "alias": "used", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "0" - ], - "type": "fill" - } - ], - "measurement": "fs_space_used", - "policy": "default", - "query": "SELECT mean(\"value\") FROM \"fs_space_used\" WHERE \"fs\" = '/opt/es/data' AND \"hostname\" =~ /^$server$/ AND $timeFilter GROUP BY time($interval) fill(0)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "fs", - "operator": "=", - "value": "/opt/es/data" - }, - { - "condition": "AND", - "key": "hostname", - "operator": "=", - "value": "$server" - } - ] - }, - { - "alias": "reserved", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "0" - ], - "type": "fill" - } - ], - "measurement": "fs_space_percent_reserved", - "policy": "default", - "query": "SELECT mean(\"value\") FROM \"fs_space_percent_reserved\" WHERE \"fs\" = '/opt/es/data' AND \"hostname\" =~ /^$server$/ AND $timeFilter GROUP BY time($interval) fill(0)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "fs", - "operator": "=", - "value": "/opt/es/data" - }, - { - "condition": "AND", - "key": "hostname", - "operator": "=", - "value": "$server" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Disk usage on /opt/es/data", - "tooltip": { - "msResolution": false, - "shared": true, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "show": true - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] } ], "showTitle": true, @@ -1591,5 +1313,5 @@ }, "timezone": "browser", "title": "Elasticsearch", - "version": 2 + "version": 4 }