-
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
Allow plugins to register their own stats for an _xpack/usage API #12504
Comments
In some sense we are allowing plugins to define their own usage collection. But I think it's a little subjective on what's meant by "define their own." There is not a registration method that plugins can call and pass some function into, but Reporting does have a It seems like a better implementation to build a registration method that Reporting can pull in, instead of having Reporting export this magical function. |
Reopening this issue to track building a registration function that telemetry provides to plugins, as per my previous comment. |
I re-titled this issue to be more specific about "usage" stats. The new Added to the description: With #12504, plugins will be able to register their own stats as "extended" stats for the Kibana Plugins also want to have a server method available for registering "usage" stats that indicate user activity. Kibana should have a separate API to host these stats, similar to the Currently there is the |
My plan is to work on this in phases:
All this will need to be done without breaking the 6.x behavior of having the collector set fetch data and combine into a single payload for |
whoops, it got closed accidentally |
We should provide a mechanism for plugins to extend the Stats API and include their own stats.
With #12504, plugins will be able to register their own stats as "extended" stats for the Kibana
stats
API. The intention for that API is to host operational stats such as performance metrics.Plugins also want to have a server method available for registering "usage" stats that indicate user activity. Kibana should have a separate API to host these stats, similar to the
_xpack/usage
API in Elasticsearch.Currently there is the
/api/_kibana/v1/stats
endpoint inxpack_main
that is close to doing the job of what we need. We want to rename (duplicate it until it can be removed in a breaking change) the endpoint to_xpack/usage
. The internals of the endpoint should change as well, so that instead of plucking collector objects out ofmonitoring/server/kibana_monitoring
and calling thefetch
method of each one, collector objects can be registered. That will make ownership more clear, and avoid having to hardcode internal specifics across different plugins.cc @pickypg @alexfrancoeur
The text was updated successfully, but these errors were encountered: