monitor DNS availability

1,001 views
Skip to first unread message

Amari CH

unread,
Sep 17, 2020, 4:09:08 AM9/17/20
to Prometheus Users
Hello

How can I setup prometheus to monitor the availability of name servers?

regards.

--
Amari CH
https://maddoghost.com/

sayf.eddi...@gmail.com

unread,
Sep 17, 2020, 4:19:31 AM9/17/20
to Prometheus Users
Hi, you need a proper exporter
You can use https://github.com/prometheus/blackbox_exporter, it can monitor DNS

Amari CH

unread,
Sep 17, 2020, 4:31:14 AM9/17/20
to promethe...@googlegroups.com
sayf.eddi...@gmail.com wrote:
> Hi, you need a proper exporter
> You can use https://github.com/prometheus/blackbox_exporter, it can
> monitor DNS

Do you have a sample configuration?
Thanks.

sayf.eddi...@gmail.com

unread,
Sep 17, 2020, 4:38:50 AM9/17/20
to Prometheus Users

Антон Зубков

unread,
Feb 18, 2021, 1:52:22 PM2/18/21
to Prometheus Users
This allows one recording to be monitored. You won't be able to filter because blackboch doesn't send domain names to prometheus. If I want to monitor 200 records, then this is impossible.

четверг, 17 сентября 2020 г. в 11:38:50 UTC+3, sayf.eddi...@gmail.com:

Marcelo Magallón

unread,
Feb 19, 2021, 12:16:40 PM2/19/21
to Prometheus Users
On Thursday, February 18, 2021 at 12:52:22 PM UTC-6 anton....@gmail.com wrote:
This allows one recording to be monitored. You won't be able to filter because blackboch doesn't send domain names to prometheus. If I want to monitor 200 records, then this is impossible.

I'm not sure I follow.

It's true that with blackbox exporter your target is the server and the query is just part of the configuration. So in order to query 200 different records, you do need 200 different blackbox_exporter modules.

If you need the query (example.org. IN A) as part of the labels in the resulting metrics, you do need to add a label that reflects that information e.g. (job="example.org_IN_A").

To put it differently, with blackbox exporter you are not asking whether many records are present in a single server, but you are asking if one record is present in many servers (which makes sense, you want to know if all the domain name servers for your domain are correctly configured). It's true that in today's Internet you might be interested in knowing if public DNS (e.g. google's, cloudflare's, etc) is working for your domain, but even that use case is the same, as you are just adding one more DNS to the list of targets, which is what the blog post shows.

Marcelo
Reply all
Reply to author
Forward
0 new messages