-
Notifications
You must be signed in to change notification settings - Fork 5k
Extend logstash.node metricset for logstash_state stack monitoring data #11506
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
Conversation
|
Pinging @elastic/stack-monitoring |
|
jenkins, test this |
chrisronline
left a comment
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.
LGTM! I tested the functionality through the directions below and didn't see any new documents created until I restarted the pipeline
|
I've both reviewed the code and tested this PR and it's a 👍 from me. Nice work, @ycombinator ! |
|
Will wait for elastic/logstash#10561 to be resolved and CI to go green on this PR before merging. |
Depends on elastic/logstash#10561. Do not merge until elastic/logstash#10561 is resolved first.
This PR extends the
nodemetricset in thelogstashmetricbeat module. It teaches it to understand thexpack.enabledsetting inmodules.d/logstash.yml. If this setting is set, the metricset indexeslogstash_statedocuments in.monitoring-logstash-*indices.Resolves partially: #7035
Testing this PR
Start up a Logstash node (built with Refactoring of LIR serializer and exposing pipeline metrics logstash#10561) running one or more pipelines.
Build Metricbeat with this PR:
Enable the
logstashMetricbeat module:Configure the
logstashMetricbeat module for X-Pack Monitoring. To do this, editmodules.d/logstash.ymland add the following line to it:Start Metricbeat:
Query the
.monitoring-logstash-7-mb-*indices to make sure there are as many documents withtype: logstash_stateas there are running Logstash pipelines.Repeat the query in 6. above multiple times over the course of a minute or so. Make sure the number of documents stays constant over time. New documents of
type:logstash_stateshould only be created if either the shape of one of the Logstash pipelines changes or the pipeline is restarted.