-
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
Extend logstash.node_stats metricset for logstash_stats stack monitoring data #11511
Conversation
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package node_stats |
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.
don't use an underscore in package name
Pinging @elastic/stack-monitoring |
jenkins, test this |
1 similar comment
jenkins, test this |
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.
Do you plan to also expand the metrics collected by non-xpack?
|
||
type commonStats struct { | ||
Events map[string]interface{} `json:"events"` | ||
JVM map[string]interface{} `json:"jvm"` |
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.
@felixbarny @axw Just found some more jvm metrics. I wonder if long term this also ties into our metrics discussion: elastic/ecs#474
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.
Tested and reviewed. Looks great!
@ruflin Not right away. I want to deliberately keep this set minimal to start out. It's easier to add more later than take away ones we don't need. So I'd rather add metrics as/when users request them. |
Chatted with @ruflin off-PR and he's given his LGTM. So I'm going ahead with the merge. |
This PR extends the
node_stats
metricset in thelogstash
metricbeat module. It teaches it to understand thexpack.enabled
setting inmodules.d/logstash.yml
. If this setting is set, the metricset indexeslogstash_stats
documents in.monitoring-logstash-*
indices.Resolves partially: #7035
Testing this PR
Start up a Logstash node running one or more pipelines.
Build Metricbeat with this PR:
Enable the logstash Metricbeat module:
Note:
metricbeat modules enable logstash-xpack
will not work as it has not been implemented yet.Configure the logstash Metricbeat module for X-Pack Monitoring. To do this, edit
modules.d/logstash.yml
and add the following line to it:Start Metricbeat:
Query the
.monitoring-logstash-7-mb-*
indices to make sure there are documents withtype: logstash_stats
.Repeat the query in 6. above multiple times over the course of a minute or so. Make sure the number of documents grows over time. New documents of
type:logstash_stats
should be created every 10 seconds (corresponding to the defaultperiod
inmodules.d/logstash.yml
).