Public | Automated Build

Last pushed: 6 months ago
Short Description
A simple image with metricbeat
Full Description

metricbeat

https://www.elastic.co/downloads/beats/metricbeat

Basic image usage

Arguments are passed to metricbeat execuable. To display command line options use run:

docker run --rm -ti jokedebuhr/metricbeat:latest -help

Advanced usage

The container should bind special paths of the host environment. Otherwise metricbeat is restricted to collect information from within the container only.

docker run -d --name metricbeat \
  --net=host \
  --volume=/proc:/hostfs/proc:ro \
  --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \
  --volume=/:/hostfs:ro \
  jokedebuhr/metricbeat:latest -system.hostfs=/hostfs

Customize default settings

Metricbeat can be configured via command line. For example set the elasticsearch server directly as command:

docker run -d --name metricbeat \
  --net=host \
  --volume=/proc:/hostfs/proc:ro \
  --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \
  --volume=/:/hostfs:ro \
  jokedebuhr/metricbeat:latest -system.hostfs=/hostfs \
  -E output.elasticsearch.hosts=logs-elasticsearch

For complex configuration bind a metricbeat.yml into the container:

docker run -d --name metricbeat \
  --net=host \
  --volume=/proc:/hostfs/proc:ro \
  --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \
  --volume=/:/hostfs:ro \
  --volume=/metricbeat.yml:/metricbeat/metricbeat.yml:ro \
  jokedebuhr/metricbeat:latest -system.hostfs=/hostfs
Docker Pull Command
Owner
jokedebuhr
Source Repository

Comments (0)