-
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
Module configuration variants #9118
Changes from 13 commits
8ea828f
bafa955
fe6e568
478b11c
c43e87d
49d202d
096e145
166ae8f
40e16cd
55b94e3
b36ccdc
39756e0
6a3cd0a
bd6ea0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,20 @@ metricbeat.modules: | |
period: 30s | ||
---- | ||
|
||
[float] | ||
[[config-combos]] | ||
== Configuration variants | ||
|
||
Every module come with a default configuration file. Some modules also come with | ||
one or more variant configuration files containing common alternative configurations | ||
for that module. | ||
|
||
When you see the list of enabled and disabled modules, those modules with configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for adding the docs 👍 |
||
variants will be shown as `<module_name>-<variant_name>`. You can enable or disable | ||
specific configuration variants of a module by specifying `metricbeat modules enable | ||
<module_name>-<variant_name>` and `metricbeat modules disable <module_name>-<variant_name>` | ||
respectively. | ||
|
||
[float] | ||
[[config-combos]] | ||
== Configuration combinations | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- module: elasticsearch | ||
metricsets: | ||
- ccr | ||
- cluster_stats | ||
- index | ||
- index_recovery | ||
- index_summary | ||
- ml_job | ||
- node_stats | ||
- shard | ||
period: 10s | ||
hosts: ["http://localhost:9200"] | ||
#username: "user" | ||
#password: "secret" | ||
xpack.enabled: true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- module: kibana | ||
metricsets: | ||
- stats | ||
period: 10s | ||
hosts: ["localhost:5601"] | ||
#basepath: "" | ||
#username: "user" | ||
#password: "secret" | ||
xpack.enabled: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Module: elasticsearch | ||
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-elasticsearch.html | ||
|
||
- module: elasticsearch | ||
metricsets: | ||
- ccr | ||
- cluster_stats | ||
- index | ||
- index_recovery | ||
- index_summary | ||
- ml_job | ||
- node_stats | ||
- shard | ||
period: 10s | ||
hosts: ["http://localhost:9200"] | ||
#username: "user" | ||
#password: "secret" | ||
xpack.enabled: true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Module: kibana | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit surprised that the collection of these files just works. Or did you move these manually? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me too, TBH! However, it works; I just re-tested it twice to make sure, like so:
Do you mind pulling down this PR and trying this out yourself as well, just in case? |
||
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-kibana.html | ||
|
||
- module: kibana | ||
metricsets: | ||
- stats | ||
period: 10s | ||
hosts: ["localhost:5601"] | ||
#basepath: "" | ||
#username: "user" | ||
#password: "secret" | ||
xpack.enabled: true |
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.
Could you add a quick test for 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.
Added in b8d0094f4.