feat(ext/beats): Monitor via internal collectors
This commit is contained in:
parent
def0aa6665
commit
ac464b2d99
|
@ -2,6 +2,8 @@
|
||||||
## https://github.com/elastic/beats/blob/main/deploy/docker/filebeat.docker.yml
|
## https://github.com/elastic/beats/blob/main/deploy/docker/filebeat.docker.yml
|
||||||
#
|
#
|
||||||
|
|
||||||
|
name: filebeat
|
||||||
|
|
||||||
filebeat.config:
|
filebeat.config:
|
||||||
modules:
|
modules:
|
||||||
path: ${path.config}/modules.d/*.yml
|
path: ${path.config}/modules.d/*.yml
|
||||||
|
@ -17,6 +19,9 @@ filebeat.autodiscover:
|
||||||
processors:
|
processors:
|
||||||
- add_cloud_metadata: ~
|
- add_cloud_metadata: ~
|
||||||
|
|
||||||
|
monitoring:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
output.elasticsearch:
|
output.elasticsearch:
|
||||||
hosts: [ http://elasticsearch:9200 ]
|
hosts: [ http://elasticsearch:9200 ]
|
||||||
username: elastic
|
username: elastic
|
||||||
|
@ -26,5 +31,6 @@ output.elasticsearch:
|
||||||
## https://www.elastic.co/guide/en/beats/filebeat/current/http-endpoint.html
|
## https://www.elastic.co/guide/en/beats/filebeat/current/http-endpoint.html
|
||||||
#
|
#
|
||||||
|
|
||||||
http.enabled: true
|
http:
|
||||||
http.host: 0.0.0.0
|
enabled: true
|
||||||
|
host: 0.0.0.0
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
## https://github.com/elastic/beats/blob/main/deploy/docker/heartbeat.docker.yml
|
## https://github.com/elastic/beats/blob/main/deploy/docker/heartbeat.docker.yml
|
||||||
#
|
#
|
||||||
|
|
||||||
|
name: heartbeat
|
||||||
|
|
||||||
heartbeat.monitors:
|
heartbeat.monitors:
|
||||||
- type: http
|
- type: http
|
||||||
schedule: '@every 5s'
|
schedule: '@every 5s'
|
||||||
|
@ -18,6 +20,9 @@ heartbeat.monitors:
|
||||||
processors:
|
processors:
|
||||||
- add_cloud_metadata: ~
|
- add_cloud_metadata: ~
|
||||||
|
|
||||||
|
monitoring:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
output.elasticsearch:
|
output.elasticsearch:
|
||||||
hosts: [ http://elasticsearch:9200 ]
|
hosts: [ http://elasticsearch:9200 ]
|
||||||
username: elastic
|
username: elastic
|
||||||
|
@ -27,5 +32,6 @@ output.elasticsearch:
|
||||||
## https://www.elastic.co/guide/en/beats/heartbeat/current/http-endpoint.html
|
## https://www.elastic.co/guide/en/beats/heartbeat/current/http-endpoint.html
|
||||||
#
|
#
|
||||||
|
|
||||||
http.enabled: true
|
http:
|
||||||
http.host: 0.0.0.0
|
enabled: true
|
||||||
|
host: 0.0.0.0
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
## https://github.com/elastic/beats/blob/main/deploy/docker/metricbeat.docker.yml
|
## https://github.com/elastic/beats/blob/main/deploy/docker/metricbeat.docker.yml
|
||||||
#
|
#
|
||||||
|
|
||||||
|
name: metricbeat
|
||||||
|
|
||||||
metricbeat.config:
|
metricbeat.config:
|
||||||
modules:
|
modules:
|
||||||
path: ${path.config}/modules.d/*.yml
|
path: ${path.config}/modules.d/*.yml
|
||||||
|
@ -47,6 +49,9 @@ metricbeat.modules:
|
||||||
processors:
|
processors:
|
||||||
- add_cloud_metadata: ~
|
- add_cloud_metadata: ~
|
||||||
|
|
||||||
|
monitoring:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
output.elasticsearch:
|
output.elasticsearch:
|
||||||
hosts: [ http://elasticsearch:9200 ]
|
hosts: [ http://elasticsearch:9200 ]
|
||||||
username: elastic
|
username: elastic
|
||||||
|
@ -56,5 +61,6 @@ output.elasticsearch:
|
||||||
## https://www.elastic.co/guide/en/beats/metricbeat/current/http-endpoint.html
|
## https://www.elastic.co/guide/en/beats/metricbeat/current/http-endpoint.html
|
||||||
#
|
#
|
||||||
|
|
||||||
http.enabled: true
|
http:
|
||||||
http.host: 0.0.0.0
|
enabled: true
|
||||||
|
host: 0.0.0.0
|
||||||
|
|
Loading…
Reference in New Issue