-
Notifications
You must be signed in to change notification settings - Fork 797
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 Indices filter flag #574
Conversation
Any update about this one? |
I've fixed the merge conflicts, but I'm failing to pass the DCO due to invalid signature. |
The details button on the DCO should help you to resolve. My suggestion is to rebase onto the master branch, squashing all of your commits into a single commit. This makes it easy to know that there's only one commit to sign. |
* Add support for adding aliases to index and shard stats Optionally will include aliases in a label to index and shard stats Signed-off-by: Steven Cipriano <[email protected]> * move aliases to separate informational metrics Signed-off-by: Steven Cipriano <[email protected]> * address review - switch boolean flag - fix linting errors Signed-off-by: Steven Cipriano <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
… queries Signed-off-by: Shahar Tal <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/go-kit/log](https://github.com/go-kit/log) from 0.2.0 to 0.2.1. - [Release notes](https://github.com/go-kit/log/releases) - [Commits](go-kit/log@v0.2.0...v0.2.1) --- updated-dependencies: - dependency-name: github.com/go-kit/log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Thibault Richard <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.34.0 to 0.35.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.34.0...v0.35.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.12 to 0.3.13. - [Release notes](https://github.com/imdario/mergo/releases) - [Commits](darccio/mergo@0.3.12...v0.3.13) --- updated-dependencies: - dependency-name: github.com/imdario/mergo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.1 to 1.12.2. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.12.1...v1.12.2) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* Support for AWS Elasticsearch using AWS SDK v2 (#1) Signed-off-by: Roshan Patil <[email protected]> * Fixes PR comments Signed-off-by: Roshan Patil <[email protected]> * Resolved PR comments Signed-off-by: Roshan Patil <[email protected]> * Fix PR comments Signed-off-by: Roshan Patil <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Mike Eves <[email protected]>
…set (#603) Signed-off-by: akazs <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Use semver/v4 for better Go module compatibility. * Update all Go modules. Signed-off-by: SuperQ <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* [FEATURE] Add metrics collection for data stream statistics #592 * [FEATURE] Support for AWS Elasticsearch using AWS SDK v2 #597 * [BUGFIX] Fix cluster settings collection when max_shards_per_node is manually set. #603 Signed-off-by: SuperQ <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Roshan Patil <[email protected]> Signed-off-by: Roshan Patil <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Simon Zengerling <[email protected]> Signed-off-by: Simon Zengerling <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* Add https to metrics server Signed-off-by: Yuriy Kis <[email protected]> * Delete tls-config.yml Signed-off-by: Yuriy Kis <[email protected]> * Apply suggestions Co-authored-by: Joe Adams <[email protected]> Signed-off-by: Yuriy Kis <[email protected]> * Add webflag import Signed-off-by: Yuriy Kis <[email protected]> Signed-off-by: Yuriy Kis <[email protected]> Signed-off-by: Yuriy Kis <[email protected]> Co-authored-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.15.14 to 1.17.8. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@config/v1.15.14...config/v1.17.8) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Abhilash Mandaliya <[email protected]> Signed-off-by: Abhilash Mandaliya <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* number_of_replicas Signed-off-by: Alexandr Marchenko <[email protected]> * simplify metric name by removing redundant number_of_ prefix Co-authored-by: Ben Kochie <[email protected]> Signed-off-by: Alexandr Marchenko <[email protected]> * Update README.md Thanks indeed Co-authored-by: Joe Adams <[email protected]> Signed-off-by: Alexandr Marchenko <[email protected]> Signed-off-by: Alexandr Marchenko <[email protected]> Co-authored-by: Ben Kochie <[email protected]> Co-authored-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.17.8 to 1.18.7. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@config/v1.17.8...config/v1.18.7) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
* feat(*): add ilm metrics Signed-off-by: iishabakaev <[email protected]> * Refactor ilm collectors Signed-off-by: Шабакаев Илья Исмаилович <[email protected]> Signed-off-by: Шабакаев Илья Исмаилович <[email protected]> * fix lint checks Signed-off-by: Шабакаев Илья Исмаилович <[email protected]> Signed-off-by: iishabakaev <[email protected]> Signed-off-by: Шабакаев Илья Исмаилович <[email protected]> Signed-off-by: Шабакаев Илья Исмаилович <[email protected]> Co-authored-by: Шабакаев Илья Исмаилович <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* Fixing field counting logic in countFieldsRecursive function for the indices_mappings feature Signed-off-by: Alain Lefebvre <[email protected]> * Added test case to validate counting of fields in index mapping Signed-off-by: Alain Lefebvre <[email protected]> * Updated conditional statement to exclude counting field when the type field is set to object as it will be counted in the recursion case Signed-off-by: Alain Lefebvre <[email protected]> * Reverting version change Signed-off-by: Alain Lefebvre <[email protected]> Signed-off-by: Alain Lefebvre <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Co-authored-by: Christoph Burmeister <[email protected]> Signed-off-by: Steve Teuber <[email protected]> Signed-off-by: Steve Teuber <[email protected]> Co-authored-by: Christoph Burmeister <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
…679) Bumps [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) from 1.13.7 to 1.13.10. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@service/mq/v1.13.7...service/mq/v1.13.10) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/credentials dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
…682) Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.18.2 to 1.18.3. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@config/v1.18.2...config/v1.18.3) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.37.0 to 0.40.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.37.0...v0.40.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.4.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
…1.0 (#689) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210616213533-5ff15b29337e to 0.1.0. - [Release notes](https://github.com/golang/crypto/releases) - [Commits](https://github.com/golang/crypto/commits/v0.1.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Shahar Tal <[email protected]>
* feat: additional elasticcloud roles --------- Signed-off-by: Christophe MORIO <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* Refactor cluster settings collector Refactor cluster settings collector into new Collector interface. Update tests to use prometheus/testutil to validate the output instead of checking the parsed elasticsearch response. Signed-off-by: Joe Adams <[email protected]> * Fix rebase Signed-off-by: Joe Adams <[email protected]> --------- Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
* Update Go to 1.20. * Update Makefile.common * Update golangci-lint. * Update exporter-toolkit. * Cleanup useless `_` assignment for go-kit/log. * Cleanup deprecated and unused code. Signed-off-by: SuperQ <[email protected]>
The metric labels in the prometheus description were set to all 3 status options, instead of the name of the status label. The code exports a metric for each of the statuses individually, not all 3 at the same time. fixes #677 Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: innerpeacez <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: innerpeacez <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
In the Prometheus ecosystem, info metrics (those with the `_info` suffix) usually have a value of 1. Although not enforced, this has become a standard pattern across Prometheus and several exporters (see `prometheus_build_info`). Signed-off-by: Jorge Luis Betancourt Gonzalez <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Fix comment typo error in Retriever struct of the clusterinfo package Signed-off-by: bagmeg <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Raz Amir <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Joe Adams <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: prombot <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Tomáš Kadaně <[email protected]> Co-authored-by: Tomáš Kadaně <[email protected]> Signed-off-by: Shahar Tal <[email protected]>
Signed-off-by: Shahar Tal <[email protected]>
I've tried to use the DCO guidelines, but it went off so I've closed this PR and created a new fork. |
As can be seen earlier, certain people asked for the option to filter the indices they are exporting.
Especially if you have a lot of them and you need to monitor just certain, the rest of it, is just a waste of resources.
ATM, fetching indices settings/stats/mappings queries all the existing ones using this kind of GET requests:
GET /_all/_settings
,GET /_all/_stats
andGET /_all/_mappings
As mentioned in the docs:
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html
It's possible to just retrieve the ones which match 2 types of queries:
Matching using wildcard(*) expression. i.e:
GET /prefix_*/_stats
Matching a list of indices, using comma:
GET /first_name,second_name/_stats
It is possible to mix them both. ie:
GET /prefix_1_*,prefix_2_*/_stats
The new added flag:
es.indices_filter
(default is '_all')Note: The flag will be used only if any export indices flag is used.
To use it, pass an expression to match your use-case indices, default '_all' just like before.
By passing one of the options mentioned above as a value (statement with a wildcard, list with commas), it will be used in the http request to retrieve statistics.
This change would be very appreciated,
Thanks.