mbaran0v.ansible_role_prometheus_rabbitmq_exporter
Ansible Role: Prometheus RabbitMQ Exporter
This Ansible role helps you install and set up the Prometheus RabbitMQ Exporter. It works on Debian and RedHat based Linux systems. The tested platforms are:
- Ubuntu 16.04
- CentOS 7
Requirements
There are no special requirements; however, this role needs root access, so either run it in a playbook with become: yes
.
Role Variables
Here are some variables you can use with this role, along with brief descriptions. For all variables, check defaults/main.yml
.
rabbitmq_exporter_version: 0.29.0
This is the version you want to install.
rabbitmq_exporter_listen_address: "0.0.0.0"
rabbitmq_exporter_listen_port: 9419
These set the address and port for the exporter to listen on.
rabbitmq_exporter_root_dir: /opt/rabbitmq_exporter
This is the directory where the exporter will be installed.
rabbitmq_exporter_user: "rabbitmq-exp"
rabbitmq_exporter_group: "{{ rabbitmq_exporter_user }}"
Here you specify the user and group for the service.
# Check https://github.com/kbudde/rabbitmq_exporter#configuration for configuration options
rabbitmq_exporter_config_vars: |
RABBIT_URL=http://127.0.0.1:15672
RABBIT_USER=guest
RABBIT_PASSWORD=guest
These are the configuration variables.
Dependencies
There are no dependencies.
Example Playbook
Here is an example of how to use this role in a playbook:
- hosts: app
become: yes
roles:
- mbaran0v.prometheus-rabbitmq-exporter
License
This project is licensed under the MIT/BSD licenses.
Author Information
This role was created by Maxim Baranov in 2018.
Prometheus RabbitMQ Exporter https://github.com/kbudde/rabbitmq_exporter
ansible-galaxy install mbaran0v.ansible_role_prometheus_rabbitmq_exporter