mbaran0v.ansible_role_prometheus_redis_exporter

Ansible Role: Prometheus Redis Exporter

Build Status License GitHub tag Open Source Love PRs Welcome

This Ansible role installs and configures the Prometheus Redis Exporter. It currently works on Debian and RedHat-based Linux systems. The tested platforms are:

  • Ubuntu 16.04
  • CentOS 7

Requirements

There are no special requirements, but this role needs root access. You should run it in a playbook with become: yes.

Role Variables

You can customize this role with the following variables. For all variables, check defaults/main.yml.

redis_exporter_version: 1.1.1

This sets the version for installation.

redis_exporter_web_listen_address: "0.0.0.0:9121"

This defines the listen address and port.

redis_exporter_root_dir: /opt/redis_exporter

This is the directory where it will be installed.

redis_exporter_user: "redis-exp"
redis_exporter_group: "{{ redis_exporter_system_group }}"

These set the user and group for the service.

# See https://github.com/oliver006/redis_exporter#environment-variables
redis_exporter_config_vars: |
  REDIS_ADDR=redis://127.0.0.1:6379

This contains the configuration variables.

Dependencies

There are no dependencies.

Example Playbook

Here's an example of a playbook that uses this role:

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

License

This role is licensed under MIT / BSD.

Author Information

This role was created in 2018 by Maxim Baranov.

Informazioni sul progetto

Prometheus Redis Exporter https://github.com/oliver006/redis_exporter

Installa
ansible-galaxy install mbaran0v.ansible_role_prometheus_redis_exporter
Licenza
Unknown
Download
466
Proprietario
Experienced DevOps Engineer