From 6f106167b45e476a50fdee54efee6f0ad0750b71 Mon Sep 17 00:00:00 2001 From: neptunian Date: Wed, 8 Dec 2021 17:37:37 -0500 Subject: [PATCH] use config for metricbeat index --- .../server/routes/api/v1/elasticsearch/overview.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/elasticsearch/overview.js b/x-pack/plugins/monitoring/server/routes/api/v1/elasticsearch/overview.js index 8801b2712288a..ff2883df49ff8 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/elasticsearch/overview.js +++ b/x-pack/plugins/monitoring/server/routes/api/v1/elasticsearch/overview.js @@ -46,7 +46,12 @@ export function esOverviewRoute(server) { ccs, true ); - const mbIndexPattern = prefixIndexPattern(config, 'metricbeat-*', ccs, true); + const mbIndexPattern = prefixIndexPattern( + config, + config.get('monitoring.ui.metricbeat.index'), + ccs, + true + ); const filebeatIndexPattern = prefixIndexPattern( config,