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

On Mon, Jun 29, 2020 at 2:21 AM jk2K <[email protected]> wrote:

> I want to get the ips of domains and check the dns record, I
> tried Blackbox Exporter,
>
> curl "
> http://prometheus-blackbox-exporter.mpaas-v1.svc.cluster.local:9115/probe?target=10.0.56.10&module=dns_crash2yingyanapiweb
> "
> # 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
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/ba30d2ca-697e-41b3-b554-5999f3dd4619o%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/ba30d2ca-697e-41b3-b554-5999f3dd4619o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
--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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAGyBzcz6bw3E1yBSb47zryT6zcttDi%2B5nKkoHqDGUK%3DTPBc%3DLg%40mail.gmail.com.

Reply via email to