Sign inSign up

doctorkirk/heartbeat-ubuntu

By doctorkirk

Updated about 5 years ago

Heartbeat Container to use with Kibana & Elasticsearch

Image
0

617

doctorkirk/heartbeat-ubuntu repository overview

Disclaimer

Here is the containerized version of Elastic Heartbeat
This image has been built on top of Ubuntu 20.04 using its official Debian package.

Quick Start

Pull the image

docker pull doctorkirk/heartbeat-ubuntu:7.12.0

Create a config.yml file*

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

Run the Container
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
Start the Heartbeat Service

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

Tags: heartbeat , elastic , elasticsearch, kibana

Tag summary

Content type

Image

Digest

Size

128.5 MB

Last updated

about 5 years ago

docker pull doctorkirk/heartbeat-ubuntu:7.13.2