metricbeat: disable cloud_metadata processor by default
This commit is contained in:
parent
ff275efd95
commit
c8e7675a49
4 changed files with 25 additions and 0 deletions
|
@ -12,6 +12,7 @@ The **patch** part changes incrementally at each release.
|
|||
|
||||
### Added
|
||||
* filebeat: disable cloud_metadata processor by default
|
||||
* metricbeat: disable cloud_metadata processor by default
|
||||
* redis: add variable for configure unixsocketperm
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -6,3 +6,5 @@ metricbeat_elasticsearch_hosts:
|
|||
- "localhost:9200"
|
||||
metricbeat_elasticsearch_auth_username: ""
|
||||
metricbeat_elasticsearch_auth_password: ""
|
||||
|
||||
metricbeat_processors_cloud_metadata: False
|
||||
|
|
6
metricbeat/handlers/main.yml
Normal file
6
metricbeat/handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
- name: restart metricbeat
|
||||
systemd:
|
||||
name: metricbeat
|
||||
state: restarted
|
|
@ -72,3 +72,19 @@
|
|||
when:
|
||||
- metricbeat_elasticsearch_auth_username != ""
|
||||
- metricbeat_elasticsearch_auth_password != ""
|
||||
|
||||
- name: disable cloud_metadata
|
||||
replace:
|
||||
dest: /etc/metricbeat/metricbeat.yml
|
||||
regexp: '^(\s+)(- add_cloud_metadata:)'
|
||||
replace: '\1# \2'
|
||||
notify: restart metricbeat
|
||||
when: not metricbeat_processors_cloud_metadata
|
||||
|
||||
- name: cloud_metadata processor is disabled
|
||||
lineinfile:
|
||||
dest: /etc/metricbeat/metricbeat.yml
|
||||
line: " - add_cloud_metadata: ~"
|
||||
insert_after: '^processors:'
|
||||
notify: restart metricbeat
|
||||
when: metricbeat_processors_cloud_metadata
|
||||
|
|
Loading…
Reference in a new issue