/ansible-role-prometheus-redis-exporter

Ansible role for Prometheus Redis exporter

Primary LanguageJinja

Ansible role: prometheus-redis-exporter

Build Status License GitHub tag Open Source Love PRs Welcome

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

Requirements

No special requirements; note that this role requires root access, so either run it in a playbook with a global become: yes

Role Variables

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

Dependencies

None

Example Playbook

- hosts: app
  become: yes
  roles:
      - mbaran0v.prometheus-redis-exporter

License

MIT / BSD

Author Information

This role was created in 2018 by Maxim Baranov.