https://github.com/ricardbejarano/dnsmasq_exporter
🔥 Prometheus exporter for Dnsmasq
https://github.com/ricardbejarano/dnsmasq_exporter
dnsmasq prometheus-exporter
Last synced: 6 months ago
JSON representation
🔥 Prometheus exporter for Dnsmasq
- Host: GitHub
- URL: https://github.com/ricardbejarano/dnsmasq_exporter
- Owner: ricardbejarano
- License: mit
- Created: 2019-06-26T03:45:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-29T08:48:43.000Z (7 months ago)
- Last Synced: 2025-03-29T09:29:12.893Z (7 months ago)
- Topics: dnsmasq, prometheus-exporter
- Language: Go
- Homepage:
- Size: 125 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dnsmasq_exporter
Prometheus exporter for Dnsmasq
docker pull quay.io/ricardbejarano/dnsmasq_exporter
## Usage
### Considerations
* **Requires Dnsmasq 2.69 or above!**
:` pairs of Dnsmasq servers' addresses
* **Tune your `dnsmasq_exporter` configuration**. All configuration is done through environment variables:
* `DNSMASQ_SERVERS`: *(defaults to `127.0.0.1:53`)* comma-separated list of `
* `EXPORTER_LISTEN_ADDR`: *(defaults to `127.0.0.1:9153`)*, bind address for `dnsmasq_exporter`### Using the official container image
#### Docker Hub
Available on Docker Hub as [`docker.io/ricardbejarano/dnsmasq_exporter`](https://hub.docker.com/r/ricardbejarano/dnsmasq_exporter):
- [`1.4.6`, `latest` *(Dockerfile)*](Dockerfile)
#### RedHat Quay
Available on RedHat Quay as [`quay.io/ricardbejarano/dnsmasq_exporter`](https://quay.io/repository/ricardbejarano/dnsmasq_exporter):
- [`1.4.6`, `latest` *(Dockerfile)*](Dockerfile)
### Building the container image yourself
```bash
docker build -t dnsmasq_exporter .
docker run -it -p 9153:9153 dnsmasq_exporter
```### Building the binary yourself
```bash
go build -o bin/ .
./bin/dnsmasq_exporter
```### Integrating with Prometheus
Add the following to `prometheus.yml`:
```yaml
scrape_configs:
- job_name: "dnsmasq"
static_configs:
- targets: [":9153"]
```