Ansible role for install and configure Prometheus redis Exporter. Currently this works on Debian and RedHat based linux systems. Tested platforms are:
- Ubuntu 16.04
- CentOS 7
No special requirements; note that this role requires root access, so either run it in a playbook with a global become: yes
The variables that can be passed to this role and a brief description about them are as follows. (For all variables, take a look at defaults/main.yml)
redis_exporter_version: 1.1.1
version for installation
redis_exporter_web_listen_address: "0.0.0.0:9121"
listen address and port
redis_exporter_root_dir: /opt/redis_exporter
directory for installation
redis_exporter_user: "redis-exp"
redis_exporter_group: "{{ redis_exporter_system_group }}"
user and group for service
# see https://github.com/oliver006/redis_exporter#environment-variables
redis_exporter_config_vars: |
REDIS_ADDR=redis://127.0.0.1:6379
config variables
None
- hosts: app
become: yes
roles:
- mbaran0v.prometheus-redis-exporter
MIT / BSD
This role was created in 2018 by Maxim Baranov.