-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate /api/settings
route to Kibana platform
#76416
Comments
It's unclear to me from the code what this endpoint accesses that isn't available on the I'm working on moving the
Yes, I'm going to have to solve this in the
The HTTP API is not changing by default in 7.x, but will have a slightly different format. That said, the |
@chrisronline do you have any idea about that one? |
The platform does know the current locale
|
The main difference is the The We need to keep the API around during 7.x, but I don't see any reason why we can't merge the two for 8.0, if desired. |
Oh right, there are some differences between kibana/x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_settings_collector.ts Lines 14 to 16 in 223f774
Both that code, the collector and the
is not an option? I had to create the https://github.com/elastic/kibana/blob/7.x/x-pack/plugins/xpack_legacy/server/plugin.ts Maybe it makes sense to add this plugin also in |
@pgayvallet I think that makes sense. I don't mind this living in a "legacy" location, and then plan to remove it in 8.0 and update Metricbeat to stop calling it, and instead call the |
The
/api/settings
route, that is currently in the legacyxpack_main
plugin, is still used and needs to be migrated to the Kibana Platformkibana/x-pack/legacy/plugins/xpack_main/server/routes/api/v1/settings.js
Lines 16 to 20 in bf04235
The endpoint is consumed by MetricBeat, and is an undocumented public API.
First question is: where should this move to? Should it move to the
monitoring
plugin, or should it be moved to something more 'generic'. Issue with this second option is that we don't currently have an equivalent toxpackMain
in xpack plugins. Should we create one? Should we just create a 'settings' plugin?Second question, regarding the data format
kibana/x-pack/legacy/plugins/xpack_main/server/routes/api/v1/settings.js
Lines 29 to 49 in bf04235
Most infos can be retrieved with KP APIs, but:
This is currently not accessible via any
core
API. How should this be retrieved from a plugin.@joshdover Will the KP
status
API be close to the legacy one? Can the new status API format be 'converted' to the legacy one?@chrisronline Can you find out which properties of the overall status MetricBeat is consuming?
cc @elastic/kibana-platform @elastic/stack-monitoring-ui
The text was updated successfully, but these errors were encountered: