Ansible role that deploys a domain-exporter which receives information and exports them as prometheus metrics to http://localhost:9222/probe
- Debian 9+
- Ubuntu 16.04+ (untested)
- Ansible 2.4+ (on execution host)
- Docker 17+ (on remote host)
See ./defaults/main.yml
for configurable variables and their defaults
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
---
- name: Example play with some optional vars set
hosts: all
vars:
monitoring_host: "domain_exporter_url" #default is localhost
roles:
- { role: domain-exporter-docker
}
Add as a submodule to your playbook repo
git submodule add https://github.com/tekniqueltd/ansible-role-domain-exporter-docker.git roles/domain-exporter-docker