dnsmasq_exporter

command module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 0

README

dnsmasq_exporter

Prometheus exporter for Dnsmasq

docker pull quay.io/ricardbejarano/dnsmasq_exporter

Usage

Considerations

  • Requires Dnsmasq 2.69 or above!
  • 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 <address>:<port> pairs of Dnsmasq servers' addresses
    • 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:

RedHat Quay

Available on RedHat Quay as quay.io/ricardbejarano/dnsmasq_exporter:

Building the container image yourself

docker build -t dnsmasq_exporter .
docker run -it -p 9153:9153 dnsmasq_exporter

Building the binary yourself

make
./bin/dnsmasq_exporter

Integrating with Prometheus

Add the following to prometheus.yml:

scrape_configs:
  - job_name: "dnsmasq"
    static_configs:
      - targets: ["<DNSMASQ_EXPORTER_ADDRESS>:9153"]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL