An open API service indexing awesome lists of open source software.

https://github.com/elan-ev/monitoring_statsd_exporter

Ansible role to install the statsd_exporter for prometheus
https://github.com/elan-ev/monitoring_statsd_exporter

Last synced: 3 months ago
JSON representation

Ansible role to install the statsd_exporter for prometheus

Awesome Lists containing this project

README

        

# Ansible Role for the statsd_exporter

![molecule](https://github.com/elan-ev/monitoring_statsd_exporter/actions/workflows/molecule.yml/badge.svg)

Install the latest [statsd_exporter](https://github.com/prometheus/statsd_exporter) version with [ansible](https://docs.ansible.com/).

## Role Variables

For a full overview of configuration options look at the [defaults](defaults/main.yml)
and the corresponding config options on the statsd_exporter GitHub-page.

## Example Playbook

If you do not want to change the defaults, just add the role to your playbook:

```yaml
- hosts: all
become: true
roles:
- elan.monitoring_statsd_exporter
```

## Development

For development and testing you can use [molecule](https://molecule.readthedocs.io/en/latest/).
With podman as driver you can install it like this – preferably in a virtual environment (if you use docker, substitute `podman` with `docker`):

```bash
pip install -r .dev_requirements.txt
```

Then you can *create* the test instances, apply the ansible config (*converge*) and *destroy* the test instances with these commands:

```bash
molecule create
molecule converge
molecule destroy
```

If you want to inspect a running test instance use `molecule login --host `, where you replace `` with the desired value.

## License

[BSD-3-Clause](LICENSE)

## Author Information

[ELAN e.V](https://elan-ev.de/)