-
Notifications
You must be signed in to change notification settings - Fork 4.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
Add elasticsearch/enrich
metricset
#14243
Conversation
2b8e5a5
to
bee2da4
Compare
Pinging @elastic/stack-monitoring (Stack monitoring) |
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.
This looks really good. I have verified this functionally using the steps provided and it works as described. I have also verified by hand that the documents produced by this PR line up with the fields that we are gathering via internal collection. I reviewed the code as well and found no concerns.
Travis CI is green. Jenkins CI failures are unrelated. Merging... |
* Add `elasticsearch/enrich` metricset (#14243) * WIP: elasticsearch/enrich metricset * Adding non-xpack event creation * More changes * Adding docs.asciidoc * Running make update * Adding missing file * Adding data.json * Implement xpack.enabled: true event creation * Adding missing import * Remove license check as enrich is available in basic * Skip enrich integration test against ES versions < 7.5.0 * Skip system tests for enrich metricset with ES < 7.5.0 * Adding integration test * Updating data.json * Adding CHANGELOG entry * Adding system test * Fixing up system tests * Cleanup! * Only try to create enrich stats if enrich feature is available * Fixing skip logic * Fixing up CHANGELOG
* WIP: elasticsearch/enrich metricset * Adding non-xpack event creation * More changes * Adding docs.asciidoc * Running make update * Adding missing file * Adding data.json * Implement xpack.enabled: true event creation * Adding missing import * Remove license check as enrich is available in basic * Skip enrich integration test against ES versions < 7.5.0 * Skip system tests for enrich metricset with ES < 7.5.0 * Adding integration test * Updating data.json * Adding CHANGELOG entry * Adding system test * Fixing up system tests * Cleanup! * Only try to create enrich stats if enrich feature is available * Fixing skip logic
…4302) * Add `elasticsearch/enrich` metricset (elastic#14243) * WIP: elasticsearch/enrich metricset * Adding non-xpack event creation * More changes * Adding docs.asciidoc * Running make update * Adding missing file * Adding data.json * Implement xpack.enabled: true event creation * Adding missing import * Remove license check as enrich is available in basic * Skip enrich integration test against ES versions < 7.5.0 * Skip system tests for enrich metricset with ES < 7.5.0 * Adding integration test * Updating data.json * Adding CHANGELOG entry * Adding system test * Fixing up system tests * Cleanup! * Only try to create enrich stats if enrich feature is available * Fixing skip logic * Fixing up CHANGELOG
Resolves #14221.
This PR adds a new
enrich
metricset to theelasticsearch
Metricbeat module. This metricset is responsible for collecting stats from theGET _enrich/_stats
Elasticsearch API. It's primarily intended to be used for Stack Monitoring, i.e. with thexpack.enabled
flag set totrue
in theelasticsearch
module configuration.Testing this PR
Build Metricbeat with this PR.
Enable the
elasticsearch-xpack
module. This module configuration contains theenrich
metricset.Run Metricbeat.
Follow the 6 steps at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/ingest-enriching-data.html to ingest a document and have Elasticsearch enrich it. This will generate some enrich stats.
Give the
elasticsearch/enrich
metricset up to 10 seconds to collect enrich stats and index them.Verify that the
.monitoring-es-*
indices contains enrich stats documents.