[Stack Monitoring] Improve error message for getKibanaInfo #123521
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Stack Monitoring
Team:Monitoring
Stack Monitoring team
The current error message from the
getKibanaInfo()
when Elasticsearch returns ZERO results is unhelpful; it will return this error message:This error doesn't indicate the real problem which is the query returned ZERO results. We should add a check to ensure there are results and when it fails we should return a meaningful error message like:
The offending code lives here:
kibana/x-pack/plugins/monitoring/server/lib/kibana/get_kibana_info.ts
Lines 19 to 24 in 4d47cb7
The text was updated successfully, but these errors were encountered: