[Stack Monitoring] Removing remaining usage of legacy getIndexPatterns() #123508
Labels
Feature:Stack Monitoring
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
This is a follow up from #119112.
getIndexPatterns
was replaced withgetNewIndexPatterns
. Though there are still a few places that use it:filebeat-*
index pattern - done in [Stack Monitoring] Add log-* index pattern support on SM UI #139121filebeat-*
.getNewIndexPatterns
needs to be updated to supportlogs-*
along with corresponding data stream dataset and replacegetIndexPatterns
wherever we usefilebeat
. Make sure to check for any other areas that might be usingfilebeat
index without usinggetIndexPatterns
getIndexPattern
because it passes the index pattern intogetCollectionStatus
. At the time, I wasn't familiar withgetCollectionStatus
(it's a large function) and wanted to make sure I understood it more before changing the index pattern it used. getCollectionStatus handles getting the collection method(s) the user is running. We don't need to update ito handle the Agent(metrics-*) case here, but just ensure it doesn't break existing functionalityAfter these updates are made, make sure there are no other instances and rename getNewIndexPatterns to getIndexPatterns and remove the old code
The text was updated successfully, but these errors were encountered: