From 1fb0cfe1dd09497b3f85b02ca2d9212e204ad001 Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Wed, 19 Feb 2020 13:34:21 -0700 Subject: [PATCH 1/4] Change sqs metricset to use Average statistic method --- .../Metricbeat-aws-sqs-overview.json | 684 ++---------------- x-pack/metricbeat/module/aws/sqs/sqs.go | 2 +- 2 files changed, 56 insertions(+), 630 deletions(-) diff --git a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json index 4a9a18d0802..ad99669360b 100644 --- a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json +++ b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json @@ -5,131 +5,17 @@ "description": "Overview of AWS SQS Metrics", "hits": 0, "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, - "optionsJSON": { - "hidePanelTitles": false, - "useMargins": true - }, - "panelsJSON": [ - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "1", - "w": 12, - "x": 12, - "y": 0 - }, - "panelIndex": "1", - "panelRefName": "panel_0", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "2", - "w": 12, - "x": 36, - "y": 0 - }, - "panelIndex": "2", - "panelRefName": "panel_1", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "3", - "w": 24, - "x": 0, - "y": 8 - }, - "panelIndex": "3", - "panelRefName": "panel_2", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "4", - "w": 24, - "x": 24, - "y": 8 - }, - "panelIndex": "4", - "panelRefName": "panel_3", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "7", - "w": 24, - "x": 0, - "y": 16 - }, - "panelIndex": "7", - "panelRefName": "panel_4", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "8", - "w": 24, - "x": 24, - "y": 16 - }, - "panelIndex": "8", - "panelRefName": "panel_5", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "9", - "w": 12, - "x": 0, - "y": 0 - }, - "panelIndex": "9", - "panelRefName": "panel_6", - "version": "7.0.0-beta1" - }, - { - "embeddableConfig": {}, - "gridData": { - "h": 8, - "i": "10", - "w": 12, - "x": 24, - "y": 0 - }, - "panelIndex": "10", - "panelRefName": "panel_7", - "version": "7.0.0" - } - ], + "optionsJSON": "{\"hidePanelTitles\":false,\"useMargins\":true}", + "panelsJSON": "[{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"1\",\"w\":12,\"x\":12,\"y\":0},\"panelIndex\":\"1\",\"embeddableConfig\":{\"title\":\"SQS Messages Visible\"},\"title\":\"SQS Messages Visible\",\"panelRefName\":\"panel_0\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"2\",\"w\":12,\"x\":36,\"y\":0},\"panelIndex\":\"2\",\"embeddableConfig\":{\"title\":\"SQS Oldest Message Age in Seconds\"},\"title\":\"SQS Oldest Message Age in Seconds\",\"panelRefName\":\"panel_1\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"3\",\"w\":24,\"x\":0,\"y\":8},\"panelIndex\":\"3\",\"embeddableConfig\":{\"title\":\"SQS Messages Received\"},\"title\":\"SQS Messages Received\",\"panelRefName\":\"panel_2\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"4\",\"w\":24,\"x\":24,\"y\":8},\"panelIndex\":\"4\",\"embeddableConfig\":{\"title\":\"SQS Messages Deleted\"},\"title\":\"SQS Messages Deleted\",\"panelRefName\":\"panel_3\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"7\",\"w\":24,\"x\":0,\"y\":16},\"panelIndex\":\"7\",\"embeddableConfig\":{\"title\":\"SQS Messages Delayed\"},\"title\":\"SQS Messages Delayed\",\"panelRefName\":\"panel_4\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"8\",\"w\":24,\"x\":24,\"y\":16},\"panelIndex\":\"8\",\"embeddableConfig\":{\"title\":\"SQS Messages Sent\"},\"title\":\"SQS Messages Sent\",\"panelRefName\":\"panel_5\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"9\",\"w\":12,\"x\":0,\"y\":0},\"panelIndex\":\"9\",\"embeddableConfig\":{\"title\":\"SQS Filters\"},\"title\":\"SQS Filters\",\"panelRefName\":\"panel_6\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"10\",\"w\":12,\"x\":24,\"y\":0},\"panelIndex\":\"10\",\"embeddableConfig\":{\"title\":\"SQS Empty Receives\"},\"title\":\"SQS Empty Receives\",\"panelRefName\":\"panel_7\"}]", "timeRestore": false, "title": "[Metricbeat AWS] SQS Overview", "version": 1 }, "id": "234aeda0-43b7-11e9-8697-530f39afc6eb", "migrationVersion": { - "dashboard": "7.0.0" + "dashboard": "7.3.0" }, "references": [ { @@ -174,527 +60,143 @@ } ], "type": "dashboard", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI4NywxXQ==" + "updated_at": "2020-02-19T20:21:00.962Z", + "version": "Wzc0NCwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Messages Visible [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "background_color_rules": [ - { - "id": "d5b83c70-41e8-11e9-9e94-11d4d21d3f4b" - } - ], - "bar_color_rules": [ - { - "id": "d2d14920-41e8-11e9-9e94-11d4d21d3f4b" - } - ], - "default_index_pattern": "metricbeat-*", - "gauge_color_rules": [ - { - "id": "d2163680-41e8-11e9-9e94-11d4d21d3f4b" - } - ], - "gauge_inner_width": 10, - "gauge_style": "half", - "gauge_width": 10, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "label": "SQS Message Visible", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.messages.visible", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "avg" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "top_n" - }, - "title": "AWS SQS Messages Visible", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Messages Visible [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d5b83c70-41e8-11e9-9e94-11d4d21d3f4b\"}],\"bar_color_rules\":[{\"id\":\"d2d14920-41e8-11e9-9e94-11d4d21d3f4b\"}],\"default_index_pattern\":\"metricbeat-*\",\"gauge_color_rules\":[{\"id\":\"d2163680-41e8-11e9-9e94-11d4d21d3f4b\"}],\"gauge_inner_width\":10,\"gauge_style\":\"half\",\"gauge_width\":10,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"label\":\"SQS Message Visible\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.visible\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" }, "id": "f74eb760-41e8-11e9-b7a0-c99d9d127b61", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI4OCwxXQ==" + "updated_at": "2020-02-19T19:55:49.258Z", + "version": "WzcxMywxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Oldest Message Age in Seconds [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "bar_color_rules": [ - { - "id": "3e3d3610-437e-11e9-a35d-972620e4f790" - } - ], - "default_index_pattern": "metricbeat-*", - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": 0.5, - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "label": "AWS SQS Oldest Message Age in Seconds", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.oldest_message_age.sec", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "max" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "top_n" - }, - "title": "AWS SQS Oldest Message Age in Seconds", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Oldest Message Age in Seconds [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"bar_color_rules\":[{\"id\":\"3e3d3610-437e-11e9-a35d-972620e4f790\"}],\"default_index_pattern\":\"metricbeat-*\",\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":0.5,\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"label\":\"AWS SQS Oldest Message Age in Seconds\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.oldest_message_age.sec\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"max\"}],\"point_size\":1,\"separate_axis\":0,\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" }, "id": "53730d20-437e-11e9-8697-530f39afc6eb", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI4OSwxXQ==" + "updated_at": "2020-02-19T20:13:55.042Z", + "version": "WzcyOSwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Messages Received [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "background_color_rules": [ - { - "id": "1ccb6710-43b3-11e9-8c70-d17a67455a84" - } - ], - "bar_color_rules": [ - { - "id": "57cc0200-43b5-11e9-84e9-a97a63579915" - } - ], - "default_index_pattern": "metricbeat-*", - "drop_last_bucket": 1, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.messages.received", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "sum" - } - ], - "point_size": 1, - "separate_axis": 0, - "series_drop_last_bucket": 1, - "split_color_mode": "rainbow", - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "timeseries" - }, - "title": "AWS SQS Messages Received", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Messages Received [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"1ccb6710-43b3-11e9-8c70-d17a67455a84\"}],\"bar_color_rules\":[{\"id\":\"57cc0200-43b5-11e9-84e9-a97a63579915\"}],\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.received\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"sum\"}],\"point_size\":1,\"separate_axis\":0,\"series_drop_last_bucket\":1,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" }, "id": "1235fe50-41e7-11e9-b7a0-c99d9d127b61", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI5MCwxXQ==" + "updated_at": "2020-02-19T20:14:13.512Z", + "version": "WzczMCwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Messages Deleted [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "default_index_pattern": "metricbeat-*", - "drop_last_bucket": 1, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.messages.deleted", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "avg" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_color_mode": "rainbow", - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "timeseries" - }, - "title": "AWS SQS Messages Deleted", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Messages Deleted [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.deleted\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" }, "id": "be6c4180-41e6-11e9-b7a0-c99d9d127b61", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI5MSwxXQ==" + "updated_at": "2020-02-19T20:14:34.617Z", + "version": "WzczMSwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Messages Delayed [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "default_index_pattern": "metricbeat-*", - "drop_last_bucket": 1, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.messages.delayed", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "avg" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_color_mode": "rainbow", - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "timeseries" - }, - "title": "AWS SQS Messages Delayed", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Messages Delayed [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.delayed\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" }, "id": "dcd31cd0-41e5-11e9-b7a0-c99d9d127b61", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI5MiwxXQ==" + "updated_at": "2020-02-19T20:14:55.374Z", + "version": "WzczMiwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Messages Sent [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "background_color_rules": [ - { - "id": "d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1" - } - ], - "default_index_pattern": "metricbeat-*", - "drop_last_bucket": 1, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.messages.sent", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "type": "avg" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_color_mode": "rainbow", - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "timeseries" - }, - "title": "AWS SQS Messages Sent", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Messages Sent [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1\"}],\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.sent\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" }, "id": "dd2f2a10-41e6-11e9-b7a0-c99d9d127b61", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI5MywxXQ==" + "updated_at": "2020-02-19T20:15:31.921Z", + "version": "WzczNCwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\": [], \"query\": {\"language\": \"kuery\", \"query\": \"\"}}" }, "title": "SQS Filters [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "controls": [ - { - "fieldName": "cloud.region", - "id": "1549397251041", - "indexPatternRefName": "control_0_index_pattern", - "label": "region", - "options": { - "dynamicOptions": true, - "multiselect": true, - "order": "desc", - "size": 5, - "type": "terms" - }, - "parent": "", - "type": "list" - }, - { - "fieldName": "aws.sqs.queue.name", - "id": "1549512142947", - "indexPatternRefName": "control_1_index_pattern", - "label": "queue name", - "options": { - "dynamicOptions": true, - "multiselect": true, - "order": "desc", - "size": 5, - "type": "terms" - }, - "parent": "", - "type": "list" - } - ], - "pinFilters": false, - "updateFiltersOnChange": true, - "useTimeFilter": false - }, - "title": "AWS SQS Filters", - "type": "input_control_vis" - } + "visState": "{\"aggs\":[],\"params\":{\"controls\":[{\"fieldName\":\"cloud.region\",\"id\":\"1549397251041\",\"indexPatternRefName\":\"control_0_index_pattern\",\"label\":\"region\",\"options\":{\"dynamicOptions\":true,\"multiselect\":true,\"order\":\"desc\",\"size\":5,\"type\":\"terms\"},\"parent\":\"\",\"type\":\"list\"},{\"fieldName\":\"aws.sqs.queue.name\",\"id\":\"1549512142947\",\"indexPatternRefName\":\"control_1_index_pattern\",\"label\":\"queue name\",\"options\":{\"dynamicOptions\":true,\"multiselect\":true,\"order\":\"desc\",\"size\":5,\"type\":\"terms\"},\"parent\":\"\",\"type\":\"list\"}],\"pinFilters\":false,\"updateFiltersOnChange\":true,\"useTimeFilter\":false},\"title\":\"AWS SQS Filters\",\"type\":\"input_control_vis\"}" }, "id": "b0afd3e0-43b7-11e9-8697-530f39afc6eb", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [ { @@ -709,105 +211,29 @@ } ], "type": "visualization", - "updated_at": "2019-05-29T14:13:49.585Z", - "version": "WzQ5NCwxXQ==" + "updated_at": "2020-02-19T19:41:31.612Z", + "version": "WzIyOSwxXQ==" }, { "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [], - "query": { - "language": "kuery", - "query": "" - } - } + "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" }, "title": "SQS Empty Receives [Metricbeat AWS]", - "uiStateJSON": {}, + "uiStateJSON": "{}", "version": 1, - "visState": { - "aggs": [], - "params": { - "axis_formatter": "number", - "axis_position": "left", - "axis_scale": "normal", - "background_color_rules": [ - { - "id": "d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1" - } - ], - "bar_color_rules": [ - { - "id": "a7e8c370-6c25-11e9-9cd1-3bdb0c7db024" - } - ], - "default_index_pattern": "metricbeat-*", - "gauge_color_rules": [ - { - "id": "a778eaa0-6c25-11e9-9cd1-3bdb0c7db024" - } - ], - "gauge_inner_width": 10, - "gauge_style": "half", - "gauge_width": 10, - "id": "61ca57f0-469d-11e7-af02-69e470af7417", - "index_pattern": "metricbeat-*", - "interval": "5m", - "series": [ - { - "axis_position": "right", - "chart_type": "line", - "color": "#68BC00", - "fill": "0", - "formatter": "number", - "id": "61ca57f1-469d-11e7-af02-69e470af7417", - "line_width": 1, - "metrics": [ - { - "field": "aws.sqs.empty_receives", - "id": "61ca57f2-469d-11e7-af02-69e470af7417", - "numerator": "", - "percentiles": [ - { - "id": "74323cf0-6c25-11e9-9cd1-3bdb0c7db024", - "mode": "line", - "shade": 0.2, - "value": 50 - } - ], - "type": "avg" - } - ], - "point_size": 1, - "separate_axis": 0, - "split_color_mode": "rainbow", - "split_mode": "terms", - "stacked": "none", - "terms_field": "aws.sqs.queue.name.keyword", - "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", - "terms_size": "5" - } - ], - "show_grid": 1, - "show_legend": 1, - "time_field": "@timestamp", - "type": "top_n" - }, - "title": "AWS SQS Empty Receives", - "type": "metrics" - } + "visState": "{\"title\":\"SQS Empty Receives [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1\"}],\"bar_color_rules\":[{\"id\":\"a7e8c370-6c25-11e9-9cd1-3bdb0c7db024\"}],\"default_index_pattern\":\"metricbeat-*\",\"gauge_color_rules\":[{\"id\":\"a778eaa0-6c25-11e9-9cd1-3bdb0c7db024\"}],\"gauge_inner_width\":10,\"gauge_style\":\"half\",\"gauge_width\":10,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.empty_receives\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"numerator\":\"\",\"percentiles\":[{\"id\":\"74323cf0-6c25-11e9-9cd1-3bdb0c7db024\",\"mode\":\"line\",\"shade\":0.2,\"value\":50}],\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" }, "id": "bb82c4d0-6c25-11e9-81bc-7f4cd8b3d892", "migrationVersion": { - "visualization": "7.2.0" + "visualization": "7.4.2" }, "references": [], "type": "visualization", - "updated_at": "2019-05-29T14:11:54.211Z", - "version": "WzI5NSwxXQ==" + "updated_at": "2020-02-19T20:06:45.040Z", + "version": "WzcyNCwxXQ==" } ], - "version": "7.2.0" + "version": "7.6.0" } diff --git a/x-pack/metricbeat/module/aws/sqs/sqs.go b/x-pack/metricbeat/module/aws/sqs/sqs.go index 9bfe9bd9075..daa2c735878 100644 --- a/x-pack/metricbeat/module/aws/sqs/sqs.go +++ b/x-pack/metricbeat/module/aws/sqs/sqs.go @@ -149,7 +149,7 @@ func constructMetricQueries(listMetricsOutput []cloudwatch.Metric, period time.D } func createMetricDataQuery(metric cloudwatch.Metric, index int, period time.Duration) (metricDataQuery cloudwatch.MetricDataQuery) { - statistic := "Sum" + statistic := "Average" periodInSec := int64(period.Seconds()) id := "sqs" + strconv.Itoa(index) metricDims := metric.Dimensions From 33fbe2670574be8b70a5e17f4eb0bdb691dd074d Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Thu, 20 Feb 2020 07:45:52 -0700 Subject: [PATCH 2/4] re-export dashboard for sqs --- .../Metricbeat-aws-sqs-overview.json | 669 +++++++++++++++++- 1 file changed, 642 insertions(+), 27 deletions(-) diff --git a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json index ad99669360b..376a957ae91 100644 --- a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json +++ b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json @@ -5,10 +5,148 @@ "description": "Overview of AWS SQS Metrics", "hits": 0, "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, - "optionsJSON": "{\"hidePanelTitles\":false,\"useMargins\":true}", - "panelsJSON": "[{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"1\",\"w\":12,\"x\":12,\"y\":0},\"panelIndex\":\"1\",\"embeddableConfig\":{\"title\":\"SQS Messages Visible\"},\"title\":\"SQS Messages Visible\",\"panelRefName\":\"panel_0\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"2\",\"w\":12,\"x\":36,\"y\":0},\"panelIndex\":\"2\",\"embeddableConfig\":{\"title\":\"SQS Oldest Message Age in Seconds\"},\"title\":\"SQS Oldest Message Age in Seconds\",\"panelRefName\":\"panel_1\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"3\",\"w\":24,\"x\":0,\"y\":8},\"panelIndex\":\"3\",\"embeddableConfig\":{\"title\":\"SQS Messages Received\"},\"title\":\"SQS Messages Received\",\"panelRefName\":\"panel_2\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"4\",\"w\":24,\"x\":24,\"y\":8},\"panelIndex\":\"4\",\"embeddableConfig\":{\"title\":\"SQS Messages Deleted\"},\"title\":\"SQS Messages Deleted\",\"panelRefName\":\"panel_3\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"7\",\"w\":24,\"x\":0,\"y\":16},\"panelIndex\":\"7\",\"embeddableConfig\":{\"title\":\"SQS Messages Delayed\"},\"title\":\"SQS Messages Delayed\",\"panelRefName\":\"panel_4\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"8\",\"w\":24,\"x\":24,\"y\":16},\"panelIndex\":\"8\",\"embeddableConfig\":{\"title\":\"SQS Messages Sent\"},\"title\":\"SQS Messages Sent\",\"panelRefName\":\"panel_5\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"9\",\"w\":12,\"x\":0,\"y\":0},\"panelIndex\":\"9\",\"embeddableConfig\":{\"title\":\"SQS Filters\"},\"title\":\"SQS Filters\",\"panelRefName\":\"panel_6\"},{\"version\":\"7.6.0\",\"gridData\":{\"h\":8,\"i\":\"10\",\"w\":12,\"x\":24,\"y\":0},\"panelIndex\":\"10\",\"embeddableConfig\":{\"title\":\"SQS Empty Receives\"},\"title\":\"SQS Empty Receives\",\"panelRefName\":\"panel_7\"}]", + "optionsJSON": { + "hidePanelTitles": false, + "useMargins": true + }, + "panelsJSON": [ + { + "embeddableConfig": { + "title": "SQS Messages Visible" + }, + "gridData": { + "h": 8, + "i": "1", + "w": 12, + "x": 12, + "y": 0 + }, + "panelIndex": "1", + "panelRefName": "panel_0", + "title": "SQS Messages Visible", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Oldest Message Age in Seconds" + }, + "gridData": { + "h": 8, + "i": "2", + "w": 12, + "x": 36, + "y": 0 + }, + "panelIndex": "2", + "panelRefName": "panel_1", + "title": "SQS Oldest Message Age in Seconds", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Messages Received" + }, + "gridData": { + "h": 8, + "i": "3", + "w": 24, + "x": 0, + "y": 8 + }, + "panelIndex": "3", + "panelRefName": "panel_2", + "title": "SQS Messages Received", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Messages Deleted" + }, + "gridData": { + "h": 8, + "i": "4", + "w": 24, + "x": 24, + "y": 8 + }, + "panelIndex": "4", + "panelRefName": "panel_3", + "title": "SQS Messages Deleted", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Messages Delayed" + }, + "gridData": { + "h": 8, + "i": "7", + "w": 24, + "x": 0, + "y": 16 + }, + "panelIndex": "7", + "panelRefName": "panel_4", + "title": "SQS Messages Delayed", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Messages Sent" + }, + "gridData": { + "h": 8, + "i": "8", + "w": 24, + "x": 24, + "y": 16 + }, + "panelIndex": "8", + "panelRefName": "panel_5", + "title": "SQS Messages Sent", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Filters" + }, + "gridData": { + "h": 8, + "i": "9", + "w": 12, + "x": 0, + "y": 0 + }, + "panelIndex": "9", + "panelRefName": "panel_6", + "title": "SQS Filters", + "version": "7.6.0" + }, + { + "embeddableConfig": { + "title": "SQS Empty Receives" + }, + "gridData": { + "h": 8, + "i": "10", + "w": 12, + "x": 24, + "y": 0 + }, + "panelIndex": "10", + "panelRefName": "panel_7", + "title": "SQS Empty Receives", + "version": "7.6.0" + } + ], "timeRestore": false, "title": "[Metricbeat AWS] SQS Overview", "version": 1 @@ -67,12 +205,82 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Messages Visible [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Messages Visible [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d5b83c70-41e8-11e9-9e94-11d4d21d3f4b\"}],\"bar_color_rules\":[{\"id\":\"d2d14920-41e8-11e9-9e94-11d4d21d3f4b\"}],\"default_index_pattern\":\"metricbeat-*\",\"gauge_color_rules\":[{\"id\":\"d2163680-41e8-11e9-9e94-11d4d21d3f4b\"}],\"gauge_inner_width\":10,\"gauge_style\":\"half\",\"gauge_width\":10,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"label\":\"SQS Message Visible\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.visible\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "d5b83c70-41e8-11e9-9e94-11d4d21d3f4b" + } + ], + "bar_color_rules": [ + { + "id": "d2d14920-41e8-11e9-9e94-11d4d21d3f4b" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "gauge_color_rules": [ + { + "id": "d2163680-41e8-11e9-9e94-11d4d21d3f4b" + } + ], + "gauge_inner_width": 10, + "gauge_style": "half", + "gauge_width": 10, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "label": "SQS Message Visible", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.messages.visible", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "avg" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "top_n" + }, + "title": "SQS Messages Visible [Metricbeat AWS]", + "type": "metrics" + } }, "id": "f74eb760-41e8-11e9-b7a0-c99d9d127b61", "migrationVersion": { @@ -87,12 +295,69 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Oldest Message Age in Seconds [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Oldest Message Age in Seconds [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"bar_color_rules\":[{\"id\":\"3e3d3610-437e-11e9-a35d-972620e4f790\"}],\"default_index_pattern\":\"metricbeat-*\",\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":0.5,\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"label\":\"AWS SQS Oldest Message Age in Seconds\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.oldest_message_age.sec\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"max\"}],\"point_size\":1,\"separate_axis\":0,\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "bar_color_rules": [ + { + "id": "3e3d3610-437e-11e9-a35d-972620e4f790" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": 0.5, + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "label": "AWS SQS Oldest Message Age in Seconds", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.oldest_message_age.sec", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "top_n" + }, + "title": "SQS Oldest Message Age in Seconds [Metricbeat AWS]", + "type": "metrics" + } }, "id": "53730d20-437e-11e9-8697-530f39afc6eb", "migrationVersion": { @@ -107,12 +372,75 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Messages Received [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Messages Received [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"1ccb6710-43b3-11e9-8c70-d17a67455a84\"}],\"bar_color_rules\":[{\"id\":\"57cc0200-43b5-11e9-84e9-a97a63579915\"}],\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.received\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"sum\"}],\"point_size\":1,\"separate_axis\":0,\"series_drop_last_bucket\":1,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "1ccb6710-43b3-11e9-8c70-d17a67455a84" + } + ], + "bar_color_rules": [ + { + "id": "57cc0200-43b5-11e9-84e9-a97a63579915" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.messages.received", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "sum" + } + ], + "point_size": 1, + "separate_axis": 0, + "series_drop_last_bucket": 1, + "split_color_mode": "rainbow", + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "timeseries" + }, + "title": "SQS Messages Received [Metricbeat AWS]", + "type": "metrics" + } }, "id": "1235fe50-41e7-11e9-b7a0-c99d9d127b61", "migrationVersion": { @@ -127,12 +455,64 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Messages Deleted [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Messages Deleted [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.deleted\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.messages.deleted", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "avg" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_color_mode": "rainbow", + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "timeseries" + }, + "title": "SQS Messages Deleted [Metricbeat AWS]", + "type": "metrics" + } }, "id": "be6c4180-41e6-11e9-b7a0-c99d9d127b61", "migrationVersion": { @@ -147,12 +527,64 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Messages Delayed [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Messages Delayed [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.delayed\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.messages.delayed", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "avg" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_color_mode": "rainbow", + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "timeseries" + }, + "title": "SQS Messages Delayed [Metricbeat AWS]", + "type": "metrics" + } }, "id": "dcd31cd0-41e5-11e9-b7a0-c99d9d127b61", "migrationVersion": { @@ -167,12 +599,69 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Messages Sent [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Messages Sent [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1\"}],\"default_index_pattern\":\"metricbeat-*\",\"drop_last_bucket\":0,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.messages.sent\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"timeseries\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.messages.sent", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "avg" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_color_mode": "rainbow", + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "timeseries" + }, + "title": "SQS Messages Sent [Metricbeat AWS]", + "type": "metrics" + } }, "id": "dd2f2a10-41e6-11e9-b7a0-c99d9d127b61", "migrationVersion": { @@ -187,12 +676,59 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\": [], \"query\": {\"language\": \"kuery\", \"query\": \"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Filters [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"aggs\":[],\"params\":{\"controls\":[{\"fieldName\":\"cloud.region\",\"id\":\"1549397251041\",\"indexPatternRefName\":\"control_0_index_pattern\",\"label\":\"region\",\"options\":{\"dynamicOptions\":true,\"multiselect\":true,\"order\":\"desc\",\"size\":5,\"type\":\"terms\"},\"parent\":\"\",\"type\":\"list\"},{\"fieldName\":\"aws.sqs.queue.name\",\"id\":\"1549512142947\",\"indexPatternRefName\":\"control_1_index_pattern\",\"label\":\"queue name\",\"options\":{\"dynamicOptions\":true,\"multiselect\":true,\"order\":\"desc\",\"size\":5,\"type\":\"terms\"},\"parent\":\"\",\"type\":\"list\"}],\"pinFilters\":false,\"updateFiltersOnChange\":true,\"useTimeFilter\":false},\"title\":\"AWS SQS Filters\",\"type\":\"input_control_vis\"}" + "visState": { + "aggs": [], + "params": { + "controls": [ + { + "fieldName": "cloud.region", + "id": "1549397251041", + "indexPatternRefName": "control_0_index_pattern", + "label": "region", + "options": { + "dynamicOptions": true, + "multiselect": true, + "order": "desc", + "size": 5, + "type": "terms" + }, + "parent": "", + "type": "list" + }, + { + "fieldName": "aws.sqs.queue.name", + "id": "1549512142947", + "indexPatternRefName": "control_1_index_pattern", + "label": "queue name", + "options": { + "dynamicOptions": true, + "multiselect": true, + "order": "desc", + "size": 5, + "type": "terms" + }, + "parent": "", + "type": "list" + } + ], + "pinFilters": false, + "updateFiltersOnChange": true, + "useTimeFilter": false + }, + "title": "AWS SQS Filters", + "type": "input_control_vis" + } }, "id": "b0afd3e0-43b7-11e9-8697-530f39afc6eb", "migrationVersion": { @@ -218,12 +754,91 @@ "attributes": { "description": "", "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"kuery\",\"query\":\"\"}}" + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } }, "title": "SQS Empty Receives [Metricbeat AWS]", - "uiStateJSON": "{}", + "uiStateJSON": {}, "version": 1, - "visState": "{\"title\":\"SQS Empty Receives [Metricbeat AWS]\",\"type\":\"metrics\",\"params\":{\"axis_formatter\":\"number\",\"axis_position\":\"left\",\"axis_scale\":\"normal\",\"background_color_rules\":[{\"id\":\"d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1\"}],\"bar_color_rules\":[{\"id\":\"a7e8c370-6c25-11e9-9cd1-3bdb0c7db024\"}],\"default_index_pattern\":\"metricbeat-*\",\"gauge_color_rules\":[{\"id\":\"a778eaa0-6c25-11e9-9cd1-3bdb0c7db024\"}],\"gauge_inner_width\":10,\"gauge_style\":\"half\",\"gauge_width\":10,\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"index_pattern\":\"metricbeat-*\",\"interval\":\"5m\",\"series\":[{\"axis_position\":\"right\",\"chart_type\":\"line\",\"color\":\"#68BC00\",\"fill\":\"0\",\"formatter\":\"number\",\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"line_width\":1,\"metrics\":[{\"field\":\"aws.sqs.empty_receives\",\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"numerator\":\"\",\"percentiles\":[{\"id\":\"74323cf0-6c25-11e9-9cd1-3bdb0c7db024\",\"mode\":\"line\",\"shade\":0.2,\"value\":50}],\"type\":\"avg\"}],\"point_size\":1,\"separate_axis\":0,\"split_color_mode\":\"rainbow\",\"split_mode\":\"terms\",\"stacked\":\"none\",\"terms_field\":null,\"terms_order_by\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"terms_size\":\"5\"}],\"show_grid\":1,\"show_legend\":1,\"time_field\":\"@timestamp\",\"type\":\"top_n\",\"default_timefield\":\"@timestamp\",\"isModelInvalid\":false,\"drop_last_bucket\":0},\"aggs\":[]}" + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "d95adba0-6b8a-11e9-98b0-9b2c3d14a4c1" + } + ], + "bar_color_rules": [ + { + "id": "a7e8c370-6c25-11e9-9cd1-3bdb0c7db024" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "drop_last_bucket": 0, + "gauge_color_rules": [ + { + "id": "a778eaa0-6c25-11e9-9cd1-3bdb0c7db024" + } + ], + "gauge_inner_width": 10, + "gauge_style": "half", + "gauge_width": 10, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "metricbeat-*", + "interval": "5m", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "#68BC00", + "fill": "0", + "formatter": "number", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "line_width": 1, + "metrics": [ + { + "field": "aws.sqs.empty_receives", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "numerator": "", + "percentiles": [ + { + "id": "74323cf0-6c25-11e9-9cd1-3bdb0c7db024", + "mode": "line", + "shade": 0.2, + "value": 50 + } + ], + "type": "avg" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_color_mode": "rainbow", + "split_mode": "terms", + "stacked": "none", + "terms_field": null, + "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", + "terms_size": "5" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "@timestamp", + "type": "top_n" + }, + "title": "SQS Empty Receives [Metricbeat AWS]", + "type": "metrics" + } }, "id": "bb82c4d0-6c25-11e9-81bc-7f4cd8b3d892", "migrationVersion": { From a5fe722e266255f0028f70db96c1056f6a1802ff Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Thu, 20 Feb 2020 07:48:16 -0700 Subject: [PATCH 3/4] update changelog --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 2cc088b8a7a..fef9e399ebe 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -90,6 +90,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fixed issue `logstash-xpack` module suddenly ceasing to monitor Logstash. {issue}15974[15974] {pull}16044[16044] - Fix skipping protocol scheme by light modules. {pull}16205[pull] - Made `logstash-xpack` module once again have parity with internally-collected Logstash monitoring data. {pull}16198[16198] +- Change sqs metricset to use average as statistic method. {pull}16438[16438] *Packetbeat* From ecf0a069de8dcf992ab0cef17ccb64c4d5ad5b1b Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Thu, 20 Feb 2020 08:46:26 -0700 Subject: [PATCH 4/4] Add terms_field back into sqs visualizations --- .../Metricbeat-aws-sqs-overview.json | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json index 376a957ae91..4d352edb3a8 100644 --- a/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json +++ b/x-pack/metricbeat/module/aws/_meta/kibana/7/dashboard/Metricbeat-aws-sqs-overview.json @@ -198,8 +198,8 @@ } ], "type": "dashboard", - "updated_at": "2020-02-19T20:21:00.962Z", - "version": "Wzc0NCwxXQ==" + "updated_at": "2020-02-20T15:44:13.514Z", + "version": "Wzc4NywxXQ==" }, { "attributes": { @@ -268,7 +268,7 @@ "separate_axis": 0, "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -288,8 +288,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T19:55:49.258Z", - "version": "WzcxMywxXQ==" + "updated_at": "2020-02-20T15:42:09.980Z", + "version": "Wzc3MSwxXQ==" }, { "attributes": { @@ -345,7 +345,7 @@ "separate_axis": 0, "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -365,8 +365,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:13:55.042Z", - "version": "WzcyOSwxXQ==" + "updated_at": "2020-02-20T15:41:06.771Z", + "version": "Wzc2MSwxXQ==" }, { "attributes": { @@ -428,7 +428,7 @@ "split_color_mode": "rainbow", "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -448,8 +448,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:14:13.512Z", - "version": "WzczMCwxXQ==" + "updated_at": "2020-02-20T15:43:10.687Z", + "version": "Wzc4MywxXQ==" }, { "attributes": { @@ -500,7 +500,7 @@ "split_color_mode": "rainbow", "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -520,8 +520,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:14:34.617Z", - "version": "WzczMSwxXQ==" + "updated_at": "2020-02-20T15:43:21.430Z", + "version": "Wzc4NCwxXQ==" }, { "attributes": { @@ -572,7 +572,7 @@ "split_color_mode": "rainbow", "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -592,8 +592,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:14:55.374Z", - "version": "WzczMiwxXQ==" + "updated_at": "2020-02-20T15:44:04.576Z", + "version": "Wzc4NiwxXQ==" }, { "attributes": { @@ -649,7 +649,7 @@ "split_color_mode": "rainbow", "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -669,8 +669,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:15:31.921Z", - "version": "WzczNCwxXQ==" + "updated_at": "2020-02-20T15:43:31.048Z", + "version": "Wzc4NSwxXQ==" }, { "attributes": { @@ -826,7 +826,7 @@ "split_color_mode": "rainbow", "split_mode": "terms", "stacked": "none", - "terms_field": null, + "terms_field": "aws.sqs.queue.name", "terms_order_by": "61ca57f2-469d-11e7-af02-69e470af7417", "terms_size": "5" } @@ -846,8 +846,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2020-02-19T20:06:45.040Z", - "version": "WzcyNCwxXQ==" + "updated_at": "2020-02-20T15:41:44.620Z", + "version": "Wzc2NSwxXQ==" } ], "version": "7.6.0"