From 4bdd1b4a61a4c0d84b92a9fa7faeb41354175b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ester=20Mart=C3=AD=20Vilaseca?= Date: Thu, 16 Sep 2021 17:48:12 +0200 Subject: [PATCH] [Stack Monitoring] add missing mb field (#112251) (#112416) * add missing mb field * fix tests --- .../server/lib/metrics/__snapshots__/metrics.test.js.snap | 1 + x-pack/plugins/monitoring/server/lib/metrics/logstash/metrics.js | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/plugins/monitoring/server/lib/metrics/__snapshots__/metrics.test.js.snap b/x-pack/plugins/monitoring/server/lib/metrics/__snapshots__/metrics.test.js.snap index 02d48b91b7879..a28beead44c1e 100644 --- a/x-pack/plugins/monitoring/server/lib/metrics/__snapshots__/metrics.test.js.snap +++ b/x-pack/plugins/monitoring/server/lib/metrics/__snapshots__/metrics.test.js.snap @@ -3787,6 +3787,7 @@ Object { "format": "0,0.[00]", "getDateHistogramSubAggs": [Function], "label": "Pipeline Throughput", + "mbField": "logstash.node.stats.pipelines.events.out", "timestampField": "logstash_stats.timestamp", "units": "e/s", "uuidField": "logstash_stats.logstash.uuid", diff --git a/x-pack/plugins/monitoring/server/lib/metrics/logstash/metrics.js b/x-pack/plugins/monitoring/server/lib/metrics/logstash/metrics.js index cd518804eeb67..a140cd7bcc370 100644 --- a/x-pack/plugins/monitoring/server/lib/metrics/logstash/metrics.js +++ b/x-pack/plugins/monitoring/server/lib/metrics/logstash/metrics.js @@ -439,6 +439,7 @@ export const metrics = { }), logstash_node_pipeline_throughput: new LogstashPipelineThroughputMetric({ uuidField: 'logstash_stats.logstash.uuid', // TODO: add comment explaining why + mbField: 'logstash.node.stats.pipelines.events.out', field: 'logstash_stats.pipelines.events.out', label: pipelineThroughputLabel, description: pipelineThroughputDescription,