An ansible role which contains multiple exporters of prometheus for scrapping data and for enhancing your monitoring stack. Here are the list of exporters which we are supporting in this role:-
Needs to be change depending upon environment
| Variables | Default Values | Description |
|---|---|---|
| es_url | localhost | Server IP of Elasticsearch |
| es_port | 9200 | Port on which elasticsearch is listening |
| Variables | Default Values | Description |
|---|---|---|
| node_exporter_version | 0.17.0 | Version of Node Exporter |
| es_exporter | 1.0.2 | Version of Elasticsearch Exporter |
Values of exporter_name could be:-
| Values | Description |
|---|---|
| node | For Node Exporter |
| elasticsearch | For Elasticsearch Exporter |
Here is an example playbook:-
---
- hosts: exporter
user: ubuntu
become: yes
roles:
- Prometheus-ExportersFor using this role you have to pass one variable to role which is exporter_name
ansible-playbook -i hosts site.yml -e exporter_name="node"