diff --git a/metricbeat/docs/images/metricbeat-activemq-broker-overview.png b/metricbeat/docs/images/metricbeat-activemq-broker-overview.png index 0f6b6f00ef8..847ba914979 100644 Binary files a/metricbeat/docs/images/metricbeat-activemq-broker-overview.png and b/metricbeat/docs/images/metricbeat-activemq-broker-overview.png differ diff --git a/metricbeat/docs/images/metricbeat-activemq-queues-overview.png b/metricbeat/docs/images/metricbeat-activemq-queues-overview.png index f32e725395e..4f80189339d 100644 Binary files a/metricbeat/docs/images/metricbeat-activemq-queues-overview.png and b/metricbeat/docs/images/metricbeat-activemq-queues-overview.png differ diff --git a/metricbeat/docs/images/metricbeat-activemq-topics-overview.png b/metricbeat/docs/images/metricbeat-activemq-topics-overview.png index 16fbebbd410..d5cbdc6ae74 100644 Binary files a/metricbeat/docs/images/metricbeat-activemq-topics-overview.png and b/metricbeat/docs/images/metricbeat-activemq-topics-overview.png differ diff --git a/metricbeat/docs/modules/activemq.asciidoc b/metricbeat/docs/modules/activemq.asciidoc index 8f3e0551fd1..3bd03addf9c 100644 --- a/metricbeat/docs/modules/activemq.asciidoc +++ b/metricbeat/docs/modules/activemq.asciidoc @@ -35,6 +35,36 @@ metricbeat.modules: path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false' username: admin # default username password: admin # default password + processors: + - script: + lang: javascript + source: > + function process(event) { + var broker_memory_broker_pct = event.Get("activemq.broker.memory.broker.pct") + if (broker_memory_broker_pct != null) { + event.Put("activemq.broker.memory.broker.pct", broker_memory_broker_pct / 100.0) + } + + var broker_memory_temp_pct = event.Get("activemq.broker.memory.temp.pct") + if (broker_memory_temp_pct != null) { + event.Put("activemq.broker.memory.temp.pct", broker_memory_temp_pct / 100.0) + } + + var broker_memory_store_pct = event.Get("activemq.broker.memory.store.pct") + if (broker_memory_store_pct != null) { + event.Put("activemq.broker.memory.store.pct", broker_memory_store_pct / 100.0) + } + + var queue_memory_broker_pct = event.Get("activemq.queue.memory.broker.pct") + if (queue_memory_broker_pct != null) { + event.Put("activemq.queue.memory.broker.pct", queue_memory_broker_pct / 100.0) + } + + var topic_memory_broker_pct = event.Get("activemq.topic.memory.broker.pct") + if (topic_memory_broker_pct != null) { + event.Put("activemq.topic.memory.broker.pct", topic_memory_broker_pct / 100.0) + } + } ---- [float] diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml index 3c4b8bbcaba..ee62a879c76 100644 --- a/x-pack/metricbeat/metricbeat.reference.yml +++ b/x-pack/metricbeat/metricbeat.reference.yml @@ -139,6 +139,36 @@ metricbeat.modules: path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false' username: admin # default username password: admin # default password + processors: + - script: + lang: javascript + source: > + function process(event) { + var broker_memory_broker_pct = event.Get("activemq.broker.memory.broker.pct") + if (broker_memory_broker_pct != null) { + event.Put("activemq.broker.memory.broker.pct", broker_memory_broker_pct / 100.0) + } + + var broker_memory_temp_pct = event.Get("activemq.broker.memory.temp.pct") + if (broker_memory_temp_pct != null) { + event.Put("activemq.broker.memory.temp.pct", broker_memory_temp_pct / 100.0) + } + + var broker_memory_store_pct = event.Get("activemq.broker.memory.store.pct") + if (broker_memory_store_pct != null) { + event.Put("activemq.broker.memory.store.pct", broker_memory_store_pct / 100.0) + } + + var queue_memory_broker_pct = event.Get("activemq.queue.memory.broker.pct") + if (queue_memory_broker_pct != null) { + event.Put("activemq.queue.memory.broker.pct", queue_memory_broker_pct / 100.0) + } + + var topic_memory_broker_pct = event.Get("activemq.topic.memory.broker.pct") + if (topic_memory_broker_pct != null) { + event.Put("activemq.topic.memory.broker.pct", topic_memory_broker_pct / 100.0) + } + } #------------------------------ Aerospike Module ------------------------------ - module: aerospike diff --git a/x-pack/metricbeat/module/activemq/_meta/config.yml b/x-pack/metricbeat/module/activemq/_meta/config.yml index 08791c5dc06..cddafae3352 100644 --- a/x-pack/metricbeat/module/activemq/_meta/config.yml +++ b/x-pack/metricbeat/module/activemq/_meta/config.yml @@ -5,3 +5,33 @@ path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false' username: admin # default username password: admin # default password + processors: + - script: + lang: javascript + source: > + function process(event) { + var broker_memory_broker_pct = event.Get("activemq.broker.memory.broker.pct") + if (broker_memory_broker_pct != null) { + event.Put("activemq.broker.memory.broker.pct", broker_memory_broker_pct / 100.0) + } + + var broker_memory_temp_pct = event.Get("activemq.broker.memory.temp.pct") + if (broker_memory_temp_pct != null) { + event.Put("activemq.broker.memory.temp.pct", broker_memory_temp_pct / 100.0) + } + + var broker_memory_store_pct = event.Get("activemq.broker.memory.store.pct") + if (broker_memory_store_pct != null) { + event.Put("activemq.broker.memory.store.pct", broker_memory_store_pct / 100.0) + } + + var queue_memory_broker_pct = event.Get("activemq.queue.memory.broker.pct") + if (queue_memory_broker_pct != null) { + event.Put("activemq.queue.memory.broker.pct", queue_memory_broker_pct / 100.0) + } + + var topic_memory_broker_pct = event.Get("activemq.topic.memory.broker.pct") + if (topic_memory_broker_pct != null) { + event.Put("activemq.topic.memory.broker.pct", topic_memory_broker_pct / 100.0) + } + } diff --git a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-broker-overview.json b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-broker-overview.json index 3e86cc5793f..917ccaf9c2d 100644 --- a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-broker-overview.json +++ b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-broker-overview.json @@ -69,6 +69,32 @@ "panelIndex": "e5e43ead-2ed5-4290-86f3-5dd623500f87", "panelRefName": "panel_3", "version": "7.4.0" + }, + { + "embeddableConfig": {}, + "gridData": { + "h": 5, + "i": "f891ea87-7718-4820-a0dc-21b160c1e684", + "w": 24, + "x": 24, + "y": 20 + }, + "panelIndex": "f891ea87-7718-4820-a0dc-21b160c1e684", + "panelRefName": "panel_4", + "version": "7.4.0" + }, + { + "embeddableConfig": {}, + "gridData": { + "h": 5, + "i": "54a788b6-5ede-4217-a975-ba6bc57f5274", + "w": 24, + "x": 24, + "y": 25 + }, + "panelIndex": "54a788b6-5ede-4217-a975-ba6bc57f5274", + "panelRefName": "panel_5", + "version": "7.4.0" } ], "timeRestore": false, @@ -99,11 +125,21 @@ "id": "594db510-0b9c-11ea-81bb-cf244189d349", "name": "panel_3", "type": "visualization" + }, + { + "id": "bfad8290-0d22-11ea-ba76-7fb26815d86c", + "name": "panel_4", + "type": "visualization" + }, + { + "id": "cb475400-0d22-11ea-ba76-7fb26815d86c", + "name": "panel_5", + "type": "visualization" } ], "type": "dashboard", - "updated_at": "2019-11-20T19:19:32.346Z", - "version": "WzM5OSwxXQ==" + "updated_at": "2019-11-22T12:26:00.404Z", + "version": "WzUxOSwyXQ==" }, { "attributes": { @@ -240,8 +276,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T18:48:34.458Z", - "version": "WzM4MiwxXQ==" + "updated_at": "2019-11-21T13:34:08.894Z", + "version": "WzQzOCwxXQ==" }, { "attributes": { @@ -345,8 +381,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T18:49:43.382Z", - "version": "WzM4NSwxXQ==" + "updated_at": "2019-11-21T13:34:08.894Z", + "version": "WzQzOSwxXQ==" }, { "attributes": { @@ -456,8 +492,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T18:50:03.865Z", - "version": "WzM4NywxXQ==" + "updated_at": "2019-11-21T13:34:08.894Z", + "version": "WzQ0MCwxXQ==" }, { "attributes": { @@ -498,6 +534,7 @@ } ], "gauge_inner_width": 10, + "gauge_max": "1", "gauge_style": "half", "gauge_width": 10, "id": "61ca57f0-469d-11e7-af02-69e470af7417", @@ -510,7 +547,11 @@ "chart_type": "line", "color": "rgba(252,220,0,1)", "fill": 0.5, - "formatter": "number", + "filter": { + "language": "kuery", + "query": "" + }, + "formatter": "percent", "id": "61ca57f1-469d-11e7-af02-69e470af7417", "label": "Broker Memory", "line_width": 1, @@ -525,7 +566,8 @@ "separate_axis": 0, "split_mode": "everything", "stacked": "none", - "type": "timeseries" + "type": "timeseries", + "value_template": "" }, { "axis_position": "right", @@ -574,7 +616,7 @@ "show_grid": 1, "show_legend": 1, "time_field": "", - "type": "top_n" + "type": "gauge" }, "title": "Broker Memory Usage [Metricbeat ActiveMQ]", "type": "metrics" @@ -586,8 +628,280 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T15:41:14.151Z", - "version": "WzM1NCwxXQ==" + "updated_at": "2019-11-22T15:29:57.883Z", + "version": "WzUzOSwyXQ==" + }, + { + "attributes": { + "description": "", + "kibanaSavedObjectMeta": { + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } + }, + "title": "Broker Temp Memory Usage [Metricbeat ActiveMQ]", + "uiStateJSON": {}, + "version": 1, + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "a19e8b60-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "bar_color_rules": [ + { + "id": "f6955680-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "gauge_color_rules": [ + { + "id": "9acca240-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "gauge_inner_width": 10, + "gauge_max": "1", + "gauge_style": "half", + "gauge_width": 10, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "", + "interval": "", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(252,220,0,1)", + "fill": 0.5, + "filter": { + "language": "kuery", + "query": "" + }, + "formatter": "percent", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "label": "Temp Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.temp.pct", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none", + "type": "timeseries", + "value_template": "" + }, + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(104,204,202,1)", + "fill": 0.5, + "formatter": "number", + "id": "7716c9c0-0b9b-11ea-8e0f-4970006b3ce7", + "label": "Store Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.store.pct", + "id": "7716c9c1-0b9b-11ea-8e0f-4970006b3ce7", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none", + "type": "timeseries" + }, + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(174,161,255,1)", + "fill": 0.5, + "formatter": "number", + "id": "13799400-0b9c-11ea-8e0f-4970006b3ce7", + "label": "Temp Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.temp.pct", + "id": "13799401-0b9c-11ea-8e0f-4970006b3ce7", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "", + "type": "gauge" + }, + "title": "Broker Temp Memory Usage [Metricbeat ActiveMQ]", + "type": "metrics" + } + }, + "id": "bfad8290-0d22-11ea-ba76-7fb26815d86c", + "migrationVersion": { + "visualization": "7.3.1" + }, + "references": [], + "type": "visualization", + "updated_at": "2019-11-22T15:30:29.667Z", + "version": "WzU0MSwyXQ==" + }, + { + "attributes": { + "description": "", + "kibanaSavedObjectMeta": { + "searchSourceJSON": { + "filter": [], + "query": { + "language": "kuery", + "query": "" + } + } + }, + "title": "Broker Store Memory Usage [Metricbeat ActiveMQ]", + "uiStateJSON": {}, + "version": 1, + "visState": { + "aggs": [], + "params": { + "axis_formatter": "number", + "axis_position": "left", + "axis_scale": "normal", + "background_color_rules": [ + { + "id": "a19e8b60-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "bar_color_rules": [ + { + "id": "f6955680-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "default_index_pattern": "metricbeat-*", + "default_timefield": "@timestamp", + "gauge_color_rules": [ + { + "id": "9acca240-0b9b-11ea-8e0f-4970006b3ce7" + } + ], + "gauge_inner_width": 10, + "gauge_max": "1", + "gauge_style": "half", + "gauge_width": 10, + "id": "61ca57f0-469d-11e7-af02-69e470af7417", + "index_pattern": "", + "interval": "", + "isModelInvalid": false, + "series": [ + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(252,220,0,1)", + "fill": 0.5, + "filter": { + "language": "kuery", + "query": "" + }, + "formatter": "percent", + "id": "61ca57f1-469d-11e7-af02-69e470af7417", + "label": "Store Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.store.pct", + "id": "61ca57f2-469d-11e7-af02-69e470af7417", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none", + "type": "timeseries", + "value_template": "" + }, + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(104,204,202,1)", + "fill": 0.5, + "formatter": "number", + "id": "7716c9c0-0b9b-11ea-8e0f-4970006b3ce7", + "label": "Store Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.store.pct", + "id": "7716c9c1-0b9b-11ea-8e0f-4970006b3ce7", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none", + "type": "timeseries" + }, + { + "axis_position": "right", + "chart_type": "line", + "color": "rgba(174,161,255,1)", + "fill": 0.5, + "formatter": "number", + "id": "13799400-0b9c-11ea-8e0f-4970006b3ce7", + "label": "Temp Memory", + "line_width": 1, + "metrics": [ + { + "field": "activemq.broker.memory.temp.pct", + "id": "13799401-0b9c-11ea-8e0f-4970006b3ce7", + "type": "max" + } + ], + "point_size": 1, + "separate_axis": 0, + "split_mode": "everything", + "stacked": "none" + } + ], + "show_grid": 1, + "show_legend": 1, + "time_field": "", + "type": "gauge" + }, + "title": "Broker Store Memory Usage [Metricbeat ActiveMQ]", + "type": "metrics" + } + }, + "id": "cb475400-0d22-11ea-ba76-7fb26815d86c", + "migrationVersion": { + "visualization": "7.3.1" + }, + "references": [], + "type": "visualization", + "updated_at": "2019-11-22T15:30:59.820Z", + "version": "WzU0MywyXQ==" } ], "version": "7.4.0" diff --git a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-queues-overview.json b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-queues-overview.json index 2a358c6616f..2b10633599c 100644 --- a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-queues-overview.json +++ b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-queues-overview.json @@ -174,8 +174,8 @@ } ], "type": "dashboard", - "updated_at": "2019-11-21T07:17:54.890Z", - "version": "WzQ4NSwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0MiwxXQ==" }, { "attributes": { @@ -252,8 +252,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:31:05.461Z", - "version": "WzQzNSwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0MywxXQ==" }, { "attributes": { @@ -330,8 +330,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:33:36.545Z", - "version": "WzQzOSwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0NCwxXQ==" }, { "attributes": { @@ -408,8 +408,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:35:29.537Z", - "version": "WzQ0MywxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0NSwxXQ==" }, { "attributes": { @@ -486,7 +486,7 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:36:57.531Z", + "updated_at": "2019-11-21T13:34:09.899Z", "version": "WzQ0NiwxXQ==" }, { @@ -564,8 +564,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:37:42.707Z", - "version": "WzQ0OCwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0NywxXQ==" }, { "attributes": { @@ -601,7 +601,7 @@ "chart_type": "line", "color": "rgba(226,115,0,1)", "fill": 0.5, - "formatter": "number", + "formatter": "ms,ms,", "id": "61ca57f1-469d-11e7-af02-69e470af7417", "label": "Equeue", "line_width": 1, @@ -636,8 +636,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:12:25.470Z", - "version": "WzQ2NSwxXQ==" + "updated_at": "2019-11-22T12:43:58.984Z", + "version": "WzUzMCwyXQ==" }, { "attributes": { @@ -708,8 +708,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:14:13.769Z", - "version": "WzQ3MiwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ0OSwxXQ==" }, { "attributes": { @@ -780,8 +780,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:15:12.613Z", - "version": "WzQ3NCwxXQ==" + "updated_at": "2019-11-21T13:34:09.899Z", + "version": "WzQ1MCwxXQ==" } ], "version": "7.4.0" diff --git a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-topics-overview.json b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-topics-overview.json index b5835ba61ac..cf7424e4ba3 100644 --- a/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-topics-overview.json +++ b/x-pack/metricbeat/module/activemq/_meta/kibana/7/dashboard/metricbeat-activemq-topics-overview.json @@ -174,8 +174,8 @@ } ], "type": "dashboard", - "updated_at": "2019-11-21T07:20:06.046Z", - "version": "WzQ5NiwxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1MSwxXQ==" }, { "attributes": { @@ -252,8 +252,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T19:54:19.763Z", - "version": "WzQxNSwxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1MiwxXQ==" }, { "attributes": { @@ -330,8 +330,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T19:54:35.779Z", - "version": "WzQxNywxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1MywxXQ==" }, { "attributes": { @@ -408,8 +408,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T19:54:48.506Z", - "version": "WzQxOSwxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1NCwxXQ==" }, { "attributes": { @@ -445,7 +445,7 @@ "chart_type": "line", "color": "rgba(226,115,0,1)", "fill": 0.5, - "formatter": "number", + "formatter": "ms,ms,", "id": "61ca57f1-469d-11e7-af02-69e470af7417", "label": "", "line_width": 1, @@ -480,8 +480,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:12:59.069Z", - "version": "WzQ2OCwxXQ==" + "updated_at": "2019-11-22T12:42:45.591Z", + "version": "WzUyNiwyXQ==" }, { "attributes": { @@ -558,8 +558,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T19:55:16.873Z", - "version": "WzQyMywxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1NiwxXQ==" }, { "attributes": { @@ -630,8 +630,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:19:55.125Z", - "version": "WzQ5NSwxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1NywxXQ==" }, { "attributes": { @@ -702,8 +702,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-21T07:19:38.050Z", - "version": "WzQ5MywxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1OCwxXQ==" }, { "attributes": { @@ -780,8 +780,8 @@ }, "references": [], "type": "visualization", - "updated_at": "2019-11-20T20:49:26.920Z", - "version": "WzQ1NiwxXQ==" + "updated_at": "2019-11-21T13:34:10.940Z", + "version": "WzQ1OSwxXQ==" } ], "version": "7.4.0" diff --git a/x-pack/metricbeat/modules.d/activemq.yml.disabled b/x-pack/metricbeat/modules.d/activemq.yml.disabled index 33716db01c9..8759b7cbe52 100644 --- a/x-pack/metricbeat/modules.d/activemq.yml.disabled +++ b/x-pack/metricbeat/modules.d/activemq.yml.disabled @@ -8,3 +8,33 @@ path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false' username: admin # default username password: admin # default password + processors: + - script: + lang: javascript + source: > + function process(event) { + var broker_memory_broker_pct = event.Get("activemq.broker.memory.broker.pct") + if (broker_memory_broker_pct != null) { + event.Put("activemq.broker.memory.broker.pct", broker_memory_broker_pct / 100.0) + } + + var broker_memory_temp_pct = event.Get("activemq.broker.memory.temp.pct") + if (broker_memory_temp_pct != null) { + event.Put("activemq.broker.memory.temp.pct", broker_memory_temp_pct / 100.0) + } + + var broker_memory_store_pct = event.Get("activemq.broker.memory.store.pct") + if (broker_memory_store_pct != null) { + event.Put("activemq.broker.memory.store.pct", broker_memory_store_pct / 100.0) + } + + var queue_memory_broker_pct = event.Get("activemq.queue.memory.broker.pct") + if (queue_memory_broker_pct != null) { + event.Put("activemq.queue.memory.broker.pct", queue_memory_broker_pct / 100.0) + } + + var topic_memory_broker_pct = event.Get("activemq.topic.memory.broker.pct") + if (topic_memory_broker_pct != null) { + event.Put("activemq.topic.memory.broker.pct", topic_memory_broker_pct / 100.0) + } + }