-
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
Change Metricbeat default config to reduce disk space #4329
Changes from all commits
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#==================== Elasticsearch template setting ========================== | ||
setup.template.settings: | ||
index.number_of_shards: 1 | ||
index.codec: best_compression | ||
#_source.enabled: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,45 +86,30 @@ in <<configuration-metricbeat>>. Here is an example configuration: | |
---- | ||
metricbeat.modules: | ||
- module: system | ||
enabled: true | ||
period: 10s | ||
metricsets: | ||
# CPU stats | ||
- cpu | ||
|
||
# System Load stats | ||
- load | ||
|
||
# Per CPU core stats | ||
- memory | ||
#- core | ||
|
||
# IO stats | ||
#- diskio | ||
|
||
# Per filesystem stats | ||
- filesystem | ||
|
||
# File system summary stats | ||
- fsstat | ||
|
||
# Memory stats | ||
- memory | ||
|
||
# Network stats | ||
- network | ||
|
||
# Processes summary | ||
- process_summary | ||
|
||
# Per process stats | ||
- process | ||
|
||
# Sockets (linux only) | ||
#- socket | ||
enabled: true | ||
period: 10s | ||
processes: ['.*'] | ||
process.include_top_n: | ||
by_cpu: 5 # include top 5 processes by CPU | ||
by_memory: 5 # include top 5 processes by memory | ||
- module: system | ||
enabled: true | ||
period: 1m | ||
metricsets: | ||
- filesystem | ||
- fsstat | ||
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. We should really rename this to 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 guess you mean 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. lol, yes :-) |
||
filters: | ||
- drop_event.when.regexp.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)' | ||
---- | ||
|
||
[float] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
- module: system | ||
enabled: true | ||
period: 10s | ||
metricsets: | ||
# CPU stats | ||
- cpu | ||
|
||
# System Load stats | ||
- load | ||
|
||
# Per CPU core stats | ||
- memory | ||
#- core | ||
|
||
# IO stats | ||
#- diskio | ||
|
||
# Per filesystem stats | ||
- filesystem | ||
|
||
# File system summary stats | ||
- fsstat | ||
|
||
# Memory stats | ||
- memory | ||
|
||
# Network stats | ||
- network | ||
|
||
# Processes summary | ||
- process_summary | ||
|
||
# Per process stats | ||
- process | ||
|
||
# Sockets (linux only) | ||
#- socket | ||
enabled: true | ||
period: 10s | ||
processes: ['.*'] | ||
process.include_top_n: | ||
by_cpu: 5 # include top 5 processes by CPU | ||
by_memory: 5 # include top 5 processes by memory | ||
- module: system | ||
enabled: true | ||
period: 1m | ||
metricsets: | ||
- filesystem | ||
- fsstat | ||
filters: | ||
- drop_event.when.regexp.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#======================== Template options =============================== |
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 should be the damned default in ES to begin with...