Deploy prometheus mongodb exporter by Percona using ansible.
This ansible role are based on mongodb-exporter and node-exporter
- Ansible >= 2.9
All variables which can be overridden are stored in defaults/main.yml and are listed in the table below.
Name | Default Value | Description |
---|---|---|
mongodb_exporter_version |
0.20.1 | MongoDB exporter package version |
mongodb_exporter_binary_local_dir |
"" | Allows to use local packages instead of ones distributed on github. As parameter it takes a directory where mongodb_exporter binary is stored on host on which ansible is ran. This overrides mongodb_exporter_version parameter |
mongodb_exporter_web_listen_address |
"0.0.0.0:9216" | Address on which mongodb exporter will listen |
mongodb_exporter_web_telemetry_path |
"/metrics" | Path under which to expose metrics |
mongodb_exporter_database_uri |
"mongodb://127.0.0.1:27017" | MongoDB URI |
mongodb_exporter_collect_database |
false | Enable collection of Database metrics |
mongodb_exporter_collect_collection |
false | Enable collection of Collection metrics |
mongodb_exporter_collect_topmetrics |
false | Enable collection of table top metrics |
mongodb_exporter_collect_indexusage |
false | Enable collection of per index usage stats |
Use it in a playbook as follows:
- hosts: all
roles:
- felipefrizzo.mongodb_exporter
This project is licensed under MIT License. See LICENSE for more details.