-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Team:APM - DEPRECATEDUse Team:obs-ux-infra_services.Use Team:obs-ux-infra_services.Team:Infra Monitoring UI - DEPRECATEDDEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_servicesDEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_servicesv7.6.0
Description
In #48079 APM added support for overriding index names defined in kibana.yml via the UI. This means that reading a config value directly from the config might give a stale result, since it's being overridden by the UI settings.
Instead of reading directly from the config file one should read both from the config file and the UI settings and merge the result. Fortunately this is already taken care of by getApmIndices.
Example: apm_oss.transactionIndices
Instead of getting apm_oss.transactionIndices via config.get('apm_oss.transactionIndices') one should instead get it like:
import { getApmIndices } from 'x-pack/legacy/plugins/apm/server/lib/settings/apm_indices/get_apm_indices'
const apmIndices = getApmIndices(server)
const transactionIndices = apmIndices['apm_oss.transactionIndices']Fix in
jasonrhodes
Metadata
Metadata
Assignees
Labels
Team:APM - DEPRECATEDUse Team:obs-ux-infra_services.Use Team:obs-ux-infra_services.Team:Infra Monitoring UI - DEPRECATEDDEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_servicesDEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_servicesv7.6.0