[Stack Monitoring] Use BasePath.publicBaseUrl for links generated by SM rules #127126
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Stack Monitoring
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Based on this SDH: https://github.com/elastic/sdh-kibana/issues/2664
Here is where the rule creates the link URL:
kibana/x-pack/plugins/monitoring/server/alerts/large_shard_size_rule.ts
Lines 171 to 175 in 720fbed
We grab the host from these global here:
kibana/x-pack/plugins/monitoring/server/alerts/base_rule.ts
Line 352 in 720fbed
These globals are defined here, coming from Kibana Core's
getServerInfo
function:kibana/x-pack/plugins/monitoring/server/static_globals.ts
Lines 82 to 86 in 720fbed
In the docs for
getServerInfo
it says:kibana/docs/development/core/server/kibana-plugin-core-server.httpserverinfo.md
Line 7 in 720fbed
We should change this code to make use of BasePath.publicBaseUrl instead.
Affected rules: https://github.com/elastic/kibana/search?q=globalStateLink
The text was updated successfully, but these errors were encountered: