50 lines
983 B
YAML
50 lines
983 B
YAML
## Heartbeat configuration
|
|
## https://github.com/elastic/beats/blob/main/deploy/docker/heartbeat.docker.yml
|
|
#
|
|
|
|
name: heartbeat
|
|
|
|
heartbeat.monitors:
|
|
- type: http
|
|
name: elasticsearch
|
|
schedule: '@every 5s'
|
|
urls:
|
|
- http://elasticsearch:9200
|
|
username: heartbeat_internal
|
|
password: ${HEARTBEAT_INTERNAL_PASSWORD}
|
|
|
|
- type: icmp
|
|
name: elasticsearch
|
|
schedule: '@every 5s'
|
|
hosts:
|
|
- elasticsearch
|
|
|
|
# - type: http
|
|
# name: dummy
|
|
# schedule: '@every 5s'
|
|
# check.response.status: [200]
|
|
# urls:
|
|
# - http://localhost:5000
|
|
|
|
processors:
|
|
- add_cloud_metadata: ~
|
|
|
|
monitoring:
|
|
enabled: true
|
|
elasticsearch:
|
|
username: beats_system
|
|
password: ${BEATS_SYSTEM_PASSWORD}
|
|
|
|
output.elasticsearch:
|
|
hosts: [ http://elasticsearch:9200 ]
|
|
username: heartbeat_internal
|
|
password: ${HEARTBEAT_INTERNAL_PASSWORD}
|
|
|
|
## HTTP endpoint for health checking
|
|
## https://www.elastic.co/guide/en/beats/heartbeat/current/http-endpoint.html
|
|
#
|
|
|
|
http:
|
|
enabled: true
|
|
host: 0.0.0.0
|