Skip to content
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

Merged
merged 6 commits into from
Feb 4, 2020

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Jan 21, 2020

Closes #51138

@jpountz jpountz added >non-issue :Data Management/Stats Statistics tracking and retrieval APIs v8.0.0 v7.7.0 labels Jan 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Stats)

Copy link
Member

@martijnvg martijnvg left a 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;
Copy link
Member

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?

Copy link
Contributor Author

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.

@jpountz
Copy link
Contributor Author

jpountz commented Feb 4, 2020

Thanks @martijnvg for looking!

@jpountz jpountz merged commit d5bc6d6 into elastic:master Feb 4, 2020
@jpountz jpountz deleted the enhancement/mapping_analysis_stats branch February 4, 2020 15:56
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Feb 4, 2020
jpountz added a commit that referenced this pull request Feb 5, 2020
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Feb 5, 2020
Now that elastic#51260 has been backported.
@jpountz jpountz mentioned this pull request Feb 5, 2020
jpountz added a commit that referenced this pull request Feb 6, 2020
Now that #51260 has been backported.
jrodewig added a commit that referenced this pull request Apr 17, 2020
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.
jrodewig added a commit that referenced this pull request Apr 17, 2020
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.
jrodewig added a commit that referenced this pull request Apr 17, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move information about usage of field types and analysis components to cluster stats
4 participants