https://github.com/stuartapp/ansible-dnsmasq_exporter
Ansible role to install dnsmasq exporter for Prometheus
https://github.com/stuartapp/ansible-dnsmasq_exporter
Last synced: 10 months ago
JSON representation
Ansible role to install dnsmasq exporter for Prometheus
- Host: GitHub
- URL: https://github.com/stuartapp/ansible-dnsmasq_exporter
- Owner: StuartApp
- Created: 2021-02-02T12:04:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-02T17:10:58.000Z (over 5 years ago)
- Last Synced: 2025-06-04T18:54:51.986Z (about 1 year ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 50
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dnsmasq_exporter Ansible role
=========
This role will install and configure Google's [dnsmasq_exporter](https://github.com/google/dnsmasq_exporter).
## Usage
Use it in a playbook as follows:
```yaml
- hosts: all
roles:
- stuart.dnsmasq_exporter
```
All variables which can be overridden are stored in [defaults/main.yml](defaults/main.yml) file as well as in table below.
| Name | Default Value | Description |
| -------------- | ------------- | -----------------------------------|
|`dnsmasq_exporter_pkg_location`|none|URL where the executable can be downloaded from. PLEASE SPECIFY!|
|`dnsmasq_exporter_install_dir`|"/usr/local/bin"|Base dir where the exporter will be placed|
|`dnsmasq_exporter_svc_enabled`|true|Enable systemd service for the exporter at boot|
|`dnsmasq_exporter_listen`|"localhost:9153"|`IP:PORT` to bind|
|`dnsmasq_exporter_system_user`|"prometheus"|User that will run the exporter|
|`dnsmasq_exporter_system_group`|"prometheus"|Group that will run the exporter|
|`dnsmasq_exporter_consul_discovery_enabled`|true|If true, it will enable service discovery through Consul|
|`dnsmasq_exporter_leases_path`|"/var/lib/misc/dnsmasq.leases"|Path to dnsmasq DHCP lease file|
All the metrics are exported `http://{{dnsmasq_exporter_listen}}/metrics`
## Limitations
It currently supports only a binary served from S3 as the mean of installation