-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Move analysis/mappings stats to cluster-stats. #51260
Move analysis/mappings stats to cluster-stats. #51260
Conversation
Pinging @elastic/es-core-features (:Core/Features/Stats) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cluster stats doc snippet test needs to be adjusted, but otherwise LGTM!
* Return the number of indices that use this feature across the cluster. | ||
*/ | ||
public int getIndexCount() { | ||
return indexCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both count and indexCount are useful. Was there a specific reason why it wasn't included in the change to the xpack usage api initially?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly added statistics because the API name suggests so. I suspect that the number of clusters that used a field is going to be much more interesting than the number of indices or fields.
Thanks @martijnvg for looking! |
Now that elastic#51260 has been backported.
Now that #51260 has been backported.
PR #51260 moved usage counts about mapping field types and analysis to the `_cluster/stats` API. This documents those stats in the response section of the cluster stats API docs.
PR #51260 moved usage counts about mapping field types and analysis to the `_cluster/stats` API. This documents those stats in the response section of the cluster stats API docs.
PR #51260 moved usage counts about mapping field types and analysis to the `_cluster/stats` API. This documents those stats in the response section of the cluster stats API docs.
Closes #51138