Skip to main content

Multi-target Prometheus exporter with an exclusive focus on DNS monitoring

Project description

Run Tox CI Documentation Status Ruff codecov PyPI version Docker Image Version (latest semver)

dns_exporter

dns_exporter is a multi-target Prometheus exporter with an exclusive focus on DNS monitoring. It is built on the excellent libraries dnspython and the Prometheus Python client library.

dns_exporter can be used to monitor availability and performance of DNS servers, and to validate the responses they return. It can monitor recursive and authoritative servers regardless of the software they run. You can use it to make sure your (or your providers) DNS servers are sending the replies you expect and configure Prometheus and Alertmanager to notify you if something stops working.

dns_exporter works similar to the Blackbox exporter where Prometheus asks the exporter to scrape the target, rather than the exporter itself being the target. This is called the Multi Target Exporter Pattern. It is typically used in black-box style exporters where 1) the thing you are monitoring is not under your control, or 2) you want to measure the path as well. Often when monitoring DNS both 1) and 2) are relevant.

This means that for each scrape Prometheus speaks HTTP to the dns_exporter which then speaks DNS with the target DNS server and returns the resulting metrics over HTTP to Prometheus. dns_exporter supports doing DNS queries over plain port 53 UDP and TCP, as well as DoT, DoH and DoQ.

Installation

dns_exporter is not yet in any OS package managers but installing dns_exporter can be done from pypi. This is the recommended way to install for now:

pip install dns_exporter

There is also a Docker image so you can get your container on:

docker run -p 15353:15353 tykling/dns_exporter:latest

Documentation

The documentation is available on ReadTheDocs

Fancy Repo Activity Graphics

Alt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dns_exporter-1.0.0rc3.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dns_exporter-1.0.0rc3-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file dns_exporter-1.0.0rc3.tar.gz.

File metadata

  • Download URL: dns_exporter-1.0.0rc3.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for dns_exporter-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 ec22a3e4b9a77072c1036cd9b76d0b2b53fe2fed6a9f856f4982eaef2f39408a
MD5 f23bc7adda380683ffb13945629a8668
BLAKE2b-256 8eb6ec1ad637dccf06a1e4f8a0cc8e087fe09d3c52a884823b556d8e8fdcf0a0

See more details on using hashes here.

File details

Details for the file dns_exporter-1.0.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for dns_exporter-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 da94b900cc693632b6721816029702b77817bb8e22e339f9b95aa2a36855d601
MD5 65eae6b3ffadfe13ae0f51270da112d3
BLAKE2b-256 c7e5ab7edbb86779e025f0fa0e9703f999ae2ef0a48e1999e590e3dbd43fd40a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page