Closed crespocarlos closed 1 month ago
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)
Related: In https://github.com/elastic/kibana/pull/164094, we created a way to access the metrics indices without having to use this endpoint (/api/metrics/source/) by creating the metrics data access plugin and storing the indices value in metrics-data-source
saved object. The indices are meant to stop being set in infrastructure-ui-source
saved object as part of https://github.com/elastic/kibana/issues/168282. You can already get just the indices value by using client in the plugin https://github.com/elastic/kibana/tree/main/x-pack/plugins/metrics_data_access.
Summary
Infra uses
/api/metrics/source/{sourceId}
endpoint to register, update, and retrieve the Infra Settings. However, it also returns a representation of a data view, built from the Metrics Indices config. This object can be very large depending on the number of indices that are part of the index pattern configured.We're no longer using the fields returned by this endpoint in the "status" object, therefore the
indexFields
can be removed from the response as well as any code related to its retrievale.g: response
Related to #180689
AC
GET /api/metrics/source/{sourceId}
doesn't return theindexFields
object in thestatus
attribute