[Infra] Improve /api/metrics/source
endpoint
#180690
Labels
Feature:Metrics UI
Metrics UI feature
Feature:ObsHosts
Hosts feature within Observability
Feature:ObsInventory
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
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, which is used by the Infra UIs.The idea is to split that process, following the way Logs UI handles the same idea, making the
/source
endpoint only responsible for managing the Saved Object that stores the settings config, removing the retrieval of the indices fieldse.g: response
Probably depends on #180689
AC
GET /api/metrics/source/{sourceId}
doesn't returnstatus
attribute, which contains the indices fieldsThe text was updated successfully, but these errors were encountered: