feat(ext/beats): Monitor via internal collectors

This commit is contained in:
Antoine Cotten 2022-11-18 12:11:23 +01:00
parent def0aa6665
commit ac464b2d99
No known key found for this signature in database
GPG Key ID: 94637E68D4A79DD0
3 changed files with 24 additions and 6 deletions

View File

@ -2,6 +2,8 @@
## https://github.com/elastic/beats/blob/main/deploy/docker/filebeat.docker.yml
#
name: filebeat
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
@ -17,6 +19,9 @@ filebeat.autodiscover:
processors:
- add_cloud_metadata: ~
monitoring:
enabled: true
output.elasticsearch:
hosts: [ http://elasticsearch:9200 ]
username: elastic
@ -26,5 +31,6 @@ output.elasticsearch:
## https://www.elastic.co/guide/en/beats/filebeat/current/http-endpoint.html
#
http.enabled: true
http.host: 0.0.0.0
http:
enabled: true
host: 0.0.0.0

View File

@ -2,6 +2,8 @@
## https://github.com/elastic/beats/blob/main/deploy/docker/heartbeat.docker.yml
#
name: heartbeat
heartbeat.monitors:
- type: http
schedule: '@every 5s'
@ -18,6 +20,9 @@ heartbeat.monitors:
processors:
- add_cloud_metadata: ~
monitoring:
enabled: true
output.elasticsearch:
hosts: [ http://elasticsearch:9200 ]
username: elastic
@ -27,5 +32,6 @@ output.elasticsearch:
## https://www.elastic.co/guide/en/beats/heartbeat/current/http-endpoint.html
#
http.enabled: true
http.host: 0.0.0.0
http:
enabled: true
host: 0.0.0.0

View File

@ -2,6 +2,8 @@
## https://github.com/elastic/beats/blob/main/deploy/docker/metricbeat.docker.yml
#
name: metricbeat
metricbeat.config:
modules:
path: ${path.config}/modules.d/*.yml
@ -47,6 +49,9 @@ metricbeat.modules:
processors:
- add_cloud_metadata: ~
monitoring:
enabled: true
output.elasticsearch:
hosts: [ http://elasticsearch:9200 ]
username: elastic
@ -56,5 +61,6 @@ output.elasticsearch:
## https://www.elastic.co/guide/en/beats/metricbeat/current/http-endpoint.html
#
http.enabled: true
http.host: 0.0.0.0
http:
enabled: true
host: 0.0.0.0