Skip to content

jayniz/riemann-tools-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

riemann-tools docker image

Run any of the riemann-tools as a docker container.

Configuring the event host name

This docker image will try the following sources to use as the --event-host option (in this order):

  1. Content of the file /docker-hostname
  2. Environment variable EVENT_HOST
  3. Output of running hostname in the container

Pure docker

Running in pure docker and, as an example, setting a custom --event-host for riemann-health via environment variable:

❯ docker run --privileged --pid host -e EVENT_HOST=my_hostname creators/riemann-tools health --cpu-warning 0.8
running: riemann-health --event-host my_hostname --cpu-warning 0.8
[...]
$

Docker Compose

Here, we're running in docker-compose and, as an example, setting the --event-host by mounting the docker host's /etc/hostname into our container:

riemann-tools-proc:
  image: 'creators/riemann-tools:latest'
  command: 'health --cpu-warning 0.8'
  links:
    - 'riemann-riemann:riemann'
  pid: host
  privileged: true
  volumes:
    - '/etc/hostname:/docker-hostname:ro'

Docker Cloud stackfile

In docker cloud, you probably want to run riemann-health on all your nodes:

riemann-tools-proc:
  image: 'creators/riemann-tools:latest'
  command: 'health --cpu-warning 0.8'
  deployment_strategy: every_node
  links:
    - 'riemann-riemann:riemann'
  pid: host
  privileged: true
  restart: always

About

Run any of the riemann-tools as a docker container

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages