Heartbeat Container to use with Kibana & Elasticsearch
617
Here is the containerized version of Elastic Heartbeat
This image has been built on top of Ubuntu 20.04 using its official Debian package.
docker pull doctorkirk/heartbeat-ubuntu:7.12.0
mkdir -p /your/docker/path/heartbeat
vi /your/docker/path/heartbeat/config.yml
heartbeat.config.monitors:
path: ${path.config}/monitors.d/*.yml
reload.enabled: false
reload.period: 5s
heartbeat.monitors:
- type: http
id: my-http-monitor
name: My Http Monitor
urls: ["http://localhost:9200"]
schedule: '@every 10s'
- type: icmp
id: my-ping-monitor
name: My ICMP Ping Monitor
urls: ["localhost"]
schedule: '@every 10s'
- type: tcp
id: my-tcp-monitor
name: My TCP Monitor
urls: ["localhost:9200"]
schedule: '@every 10s'
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.kibana:
host: ""localhost:5601"
output.elasticsearch:
hosts: ["localhost:9200"]
processors:
- add_observer_metadata:
*This is a sample file, customize it accordingly to your needs
docker run -dit \
--name heartbeat \
-v /your/docker/path/heartbeat/heartbeat.yml:/etc/heartbeat/heartbeat.yml \
--restart=unless-stopped \
doctorkirk/heartbeat-ubuntu:7.12.1
Starting from 7.12.1 Spervisord has been introduced in this image, so manually starting heartbeat is no longer needed.
docker exec -it heartbeat bash
service heartbeat-elastic start
Content type
Image
Digest
Size
128.5 MB
Last updated
about 5 years ago
docker pull doctorkirk/heartbeat-ubuntu:7.13.2