Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/google/dnsmasq_exporter
dnsmasq exporter for Prometheus
https://github.com/google/dnsmasq_exporter
Last synced: 3 months ago
JSON representation
dnsmasq exporter for Prometheus
- Host: GitHub
- URL: https://github.com/google/dnsmasq_exporter
- Owner: google
- License: apache-2.0
- Created: 2017-11-06T11:08:31.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T16:39:25.000Z (6 months ago)
- Last Synced: 2024-08-05T19:33:58.484Z (6 months ago)
- Language: Go
- Homepage:
- Size: 59.6 KB
- Stars: 161
- Watchers: 6
- Forks: 57
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - google/dnsmasq_exporter - dnsmasq exporter for Prometheus (Go)
README
# dnsmasq exporter
[![Build Status](https://github.com/google/dnsmasq_exporter/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/google/dnsmasq_exporter/actions)
dnsmasq_exporter is an exporter for [Prometheus](https://prometheus.io/),
allowing you to monitor/alert on the number of DHCP leases and various DNS
statistics.The minimum required version of dnsmasq is 2.69, which added support for
querying the statistics via DNS.See also the “cache statistics” section in
https://manpages.debian.org/stretch/dnsmasq-base/dnsmasq.8.en.html#NOTESThis is not an official Google product.
## Installation
``` shell
go get -u github.com/google/dnsmasq_exporter
```## Usage
Place `dnsmasq_exporter.service` in
`/etc/systemd/system/dnsmasq_exporter.service`, then enable and start the
service using:```shell
systemctl daemon-reload
systemctl enable --now dnsmasq_exporter
```### Alternative usage
```shell
docker build -t dnsmasq_exporter .
docker run --restart=unless-stopped --net=host dnsmasq_exporter
```Then, add the endpoint to your Prometheus configuration file:
```yaml
scrape_configs:
- job_name: dnsmasq
static_configs:
- targets: ['localhost:9153']
```