how to monitor ip address list of domains

39 views
Skip to first unread message

jk2K

unread,
Jun 29, 2020, 2:21:21 AM6/29/20
to Prometheus Users
I want to get the ips of domains and check the dns record, I tried Blackbox Exporter, 

# HELP probe_dns_additional_rrs Returns number of entries in the additional resource record list
# TYPE probe_dns_additional_rrs gauge
probe_dns_additional_rrs 0
# HELP probe_dns_answer_rrs Returns number of entries in the answer resource record list
# TYPE probe_dns_answer_rrs gauge
probe_dns_answer_rrs 1
# HELP probe_dns_authority_rrs Returns number of entries in the authority resource record list
# TYPE probe_dns_authority_rrs gauge
probe_dns_authority_rrs 0
# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
# TYPE probe_dns_lookup_time_seconds gauge
probe_dns_lookup_time_seconds 1.029e-05
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds
# TYPE probe_duration_seconds gauge
probe_duration_seconds 0.000532969
# HELP probe_ip_addr_hash Specifies the hash of IP address. It's useful to detect if the IP address changes.
# TYPE probe_ip_addr_hash gauge
probe_ip_addr_hash 1.993640491e+09
# HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6
# TYPE probe_ip_protocol gauge
probe_ip_protocol 4
# HELP probe_success Displays whether or not the probe was a success
# TYPE probe_success gauge
probe_success 1

I cannot get the real ip address, only got the ip address hash, What i should do? thanks

Matt Doughty

unread,
Jun 29, 2020, 9:28:59 AM6/29/20
to jk2K, Prometheus Users
The goal of the dns probe is to let you know that DNS is working and if the address has changed. I'm not sure what problem you are trying to solve exactly, but I don't think blackbox exporter is the right tool.

In general, people avoid recording client identifiers in Prometheus time series because it tends to create really high cardinality. Taking IPs as an example, the upper bound is 2^32. 

It might help if you explained why you want to do dns lookups on ips from <source>.

thanks,

--Matt

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ba30d2ca-697e-41b3-b554-5999f3dd4619o%40googlegroups.com.


--
--Matt

jk2K

unread,
Jun 29, 2020, 10:15:40 PM6/29/20
to Prometheus Users
okay, now I understand the design goal of the dns probe,I want to check if DNS is working and the address resolved by dns is correct, And can view the resolved IP address list at the same time.

perhaps the IP address list only can be collected by other methods, If there is no suitable tool, maybe I can only collect it manually

thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.


--
--Matt
Reply all
Reply to author
Forward
0 new messages