This is an Ansible role for installing tools for Riemann.
You may also be interested in:
- an Ansible role for Riemann dash, a web application used to view data in Riemann
- an Ansible role for Riemann server, the Rieman server itself
Installs the Ruby riemann-client
and riemann-tools
gems which
provide both the Ruby Riemann client as well as several programs for
basic monitoring of a selected set of services and metrics.
Provides variables which control which of the tools are set up as system services to feed data to Riemann. Also creates "configuration files" for the tools to use to connect to a shared Riemann. See the Variables section below.
Creates the files:
/etc/riemann/server_host
-- Riemann server host/etc/riemann/server_port
-- Riemann server port
FIXME: This was only implemented for Debian...
For each tool used, a system service will be set up running that tool.
For example, the riemann-health
tool will run as the
riemann-health
service if the riemann_tool_health
variable is
true. See Usage and Variables below.
Use the role in a playbook like this:
- hosts: all
roles:
- role: riemann-client
riemann_tool_health: true
...
The riemann-client
role will install the Riemann tools and the Ruby
Riemann client. Setting riemann_tool_health
will cause the
riemann-health
tool to be run as the riemann-health
service. See
Variables below.
The following variables are used for configuring which tools are launched as services and how:
riemann_server_host
-- the host for the Riemann server (default: 127.0.0.1)riemann_server_port
-- the port for the Riemann server (default: 5555)
riemann_tool_health
-- launches theriemann-health
service
riemann_tool_elasticsearch
-- launches theriemann-elasticsearch
serviceelasticsearch_host
-- the ElasticSearch host to monitor
riemann_tool_nginx
-- launches theriemann-nginx
servicenginx_status_uri
-- the URI at which nginx reports metrics