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

Add logic to fetch index search stats for groups #505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pvanisacker
Copy link

@pvanisacker pvanisacker commented Nov 27, 2021

This PR implements the needed to fix #223

There's some code duplication that can probably be cleaned up. As this is the first time I'm writing go I'm looking for feedback on how to fix/improve that.

Closes: #223

Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor issue with the flag, otherwise LGTM.

@@ -70,6 +70,9 @@ func main() {
esExportIndicesSettings = kingpin.Flag("es.indices_settings",
"Export stats for settings of all indices of the cluster.").
Default("false").Envar("ES_INDICES_SETTINGS").Bool()
esExportIndicesSearchGroups = kingpin.Flag("es.indices_search_groups",
"Export search stats of all indices of the cluster by group.").
Default("false").Envar("ES_INDICES_TAGS").Bool()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've stopped using ENV vars here.

Suggested change
Default("false").Envar("ES_INDICES_TAGS").Bool()
Default("false").Bool()

@SuperQ
Copy link
Contributor

SuperQ commented Jan 19, 2022

Also needs a rebase.

@aston-r
Copy link

aston-r commented Aug 10, 2023

@pvanisacker Hi, Are you planing to finish the PR? I am also interested in this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Allow indices stats search API to support groups.
4 participants