elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.5k stars 8.05k forks source link

[Monitoring] Adapt UI code to read from metricbeat-* indices #73864

Open chrisronline opened 3 years ago

chrisronline commented 3 years ago

Relates to https://github.com/elastic/beats/pull/19747

In an effort to ensure a smooth migration path to the upcoming Agent, we want to adapt all queries in the UI to handle data living in .monitoring-* indices, or metricbeat-* indices. The Beats team is helping us in adapting each stack module to ship directly into metricbeat-* and we need to handle the UI changes to ensure that the UI will work properly.

Work items

elasticmachine commented 3 years ago

Pinging @elastic/stack-monitoring (Team:Monitoring)

chrisronline commented 3 years ago

I have some updates here.

I have written code that will generate the minimal set of mappings necessary for each stack product. I checked my work by modifying all existing es_archive mapping files to use these new mappings, then ensuring all tests pass.

Elasticsearch: https://gist.github.com/chrisronline/a002d91b51f0fdb1beb1aa2af31718b3 Kibana: https://gist.github.com/chrisronline/abcb27a2cca09fd542ef7b042984f005 Beats: https://gist.github.com/chrisronline/abbbbaf723f21c53a2aaaacc9a44000c Logstash: https://gist.github.com/chrisronline/23922534b97b3a001d227d3e772cdb16

Using the above, we should be able to add the minimal mappings to metricbeat-*.

chrisronline commented 3 years ago

I've updated the above mappings to also account for existing stack monitoring cluster alerts and telemetry code too. There were a few additions as a result