bilalcaliskan.redis_exporter

Redis Exporter Ansible Role

CI GitHub tag

Installs and configures redis-exporter on Redhat/Debian based hosts.

If you need also Redis, please refer to bilalcaliskan.redis.

Requirements

This role has below requirements:

You can install suggested version with pip3:

$ pip3 install "ansible==2.9.16"

Note that this role requires root access, so either run it in a playbook with a global become: true, or invoke the role in your playbook like:

If you have a running Redis process on the same server:

- hosts: all
  become: true
  roles:
    - role: bilalcaliskan.redis_exporter

If you do not have a running Redis process on the same server, it will setup Redis and Redis exporter sequentially:

- hosts: all
  become: true
  roles:
    - role: bilalcaliskan.redis
    - role: bilalcaliskan.redis_exporter

Role Variables

See the default values in defaults/main.yml. You can overwrite them in vars/main.yml if neccessary or you can set them while running playbook.

Please note that this role can ensure that firewalld systemd service on your servers are started and enabled by default. If you want to start and enable firewalld service, please modify below variable as true while running playbook:

firewalld_enabled: true

Dependencies

None

Examples

Inventory

[all]
redis01.example.com
redis02.example.com
redis03.example.com

Installation

- hosts: all
  become: true
  roles:
    - role: bilalcaliskan.redis_exporter
      vars:
        install_redis_exporter: true
        redis_port: 6379
        version: 1.15.0

Uninstallation

- hosts: all
  become: true
  roles:
    - role: bilalcaliskan.redis_exporter
      vars:
        install_redis_exporter: false

Development

This project requires below tools for development:

After you install all the tools above, you can simply configure pre-commit by typing:

$ pre-commit install

License

Apache License 2.0

About

Redis exporter setup role to provide monitoring over Prometheus

Install
ansible-galaxy install bilalcaliskan.redis_exporter
GitHub repository
License
apache-2.0
Downloads
191