cloudalchemy.mysqld_exporter

DEPRECATED

This role is no longer maintained and has been replaced by the prometheus-community/ansible collection.

database logo

Ansible Role: mysqld exporter

Build Status License Ansible Role GitHub tag

Description

This Ansible role sets up the Prometheus mysqld exporter.

Requirements

  • Ansible version 2.7 or higher (it might work with earlier versions, but we can't guarantee it).

Role Variables

You can change the default variables listed in the defaults/main.yml file and in the table below.

Name Default Value Description
mysqld_exporter_version 0.12.1 The version of the mysqld exporter package. Versions before 0.11 are not supported.
mysqld_exporter_binary_local_dir "" Use local packages instead of those from GitHub. This is the directory where the mysqld_exporter binary is stored on the host running Ansible. It will overwrite the mysqld_exporter_version parameter.
mysqld_exporter_web_listen_address "0.0.0.0:9104" The address on which the mysqld exporter will be listening.

Example

Playbook

You can use this role in a playbook like this:

- hosts: all
  become: yes
  roles:
    - cloudalchemy.mysqld_exporter

Demo site

We offer a demo site for a complete monitoring solution with Prometheus and Grafana. You can find the code repository and links to live instances on GitHub, and the site is hosted on DigitalOcean.

Local Testing

To test the role locally, it's best to use Docker and molecule (v3.x). You must have Docker installed on your system. Check "Get started" for a suitable Docker package for your machine. Running tests is easy—just execute molecule test.

Continuous Integration

By using molecule with CircleCI, we can test how new pull requests will work with different Ansible versions and operating systems. This also helps us create test scenarios for various role configurations. Consequently, our test matrix is quite comprehensive, which may take longer than local testing, so please be patient.

Contributing

For more information, see the contributor guideline.

Troubleshooting

If you run into issues, refer to the troubleshooting document.

License

This project is licensed under the MIT License. See LICENSE for more details.

Installa
ansible-galaxy install cloudalchemy.mysqld_exporter
Licenza
mit
Download
117.3k
Proprietario
Setup your monitoring stack with ansible