idealista / prometheus_apache_exporter_role

Ansible role to install Apache Exporter for prometheus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo Build Status

Prometheus Apache Exporter Ansible role

This ansible role installs a Prometheus Apache Exporter in a debian environment. It has been tested for the following Debian versions:

  • Stretch
  • Buster
  • Bullseye

This role has been generated using the cookiecutter tool, you can generate a similar role that fits your needs using the this cookiecutter template.

Getting Started

These instructions will get you a copy of the role for your ansible playbook. Once launched, it will install an Prometheus Apache Exporter server in a Debian system.

Prerequisities

Ansible 5.2.0 version installed.

Molecule 3.5.x version installed.

For testing purposes, Molecule with Docker as driver and Goss as verifier.

Installing

Create or add to your roles dependency file (e.g requirements.yml):

- src: idealista.prometheus_apache_exporter_role
  version: 2.1.0
  name: apache_exporter

Install the role with ansible-galaxy command:

ansible-galaxy install -p roles -r requirements.yml -f

Use in a playbook:

---
- hosts: someserver
  roles:
    - role: apache_exporter

Usage

Look to the defaults properties file to see the possible configuration properties. To work properly apache module mod_status should be enabled and configure.

Testing

Install dependencies

$ pipenv sync

For more information read the pipenv docs.

Testing

$ pipenv run molecule test 

Note: if you want to add colorized output (as previous versions of molecule), you must set these environment variables:


## Built With

![Ansible](https://img.shields.io/badge/ansible-5.2.0-green.svg)
![Molecule](https://img.shields.io/badge/molecule-3.5.2-green.svg)
![Goss](https://img.shields.io/badge/goss-0.3.16-green.svg)

## Versioning

For the versions available, see the [tags on this repository](https://github.com/idealista/prometheus_apache_exporter_role/tags).

Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.

## Authors

* **Idealista** - *Work with* - [idealista](https://github.com/idealista)

See also the list of [contributors](https://github.com/idealista/prometheus_redis_exporter-role/contributors) who participated in this project.

## License

![Apache 2.0 Licence](https://img.shields.io/hexpm/l/plug.svg)

This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE.txt](LICENSE.txt) file for details.

## Contributing

Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

About

Ansible role to install Apache Exporter for prometheus

License:Apache License 2.0


Languages

Language:Jinja 63.6%Language:YAML 36.4%