Re: [prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-18 Thread 'Brian Candler' via Prometheus Users
You don't need a separate job for each DNS server. You can have a single job with multiple target blocks. - job_name: 'dns' scrape_interval: 5s metrics_path: /probe params: module: [dns_probe] static_configs: - targets: - www.google.com -

Re: [prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-17 Thread Vincent Romero
Hello every i change the relabel y try this - job_name: '208.67.222.220-opendns' ##REBUILD new blackbox_expoerter scrape_interval: 5s metrics_path: /probe params: module: [dns_probe] static_configs: - targets: - www.google.com - www.mindfree.cl labels: dns: 208.67.220.220 #australia cloudflare

Re: [prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-12 Thread 'Brian Candler' via Prometheus Users
It's not really related to blackbox_exporter itself, but I don't entirely agree with that comment. There are two different things at play here: the address you send the query to ("target"), and the name that you are looking up ("queryname"). - For caching resolvers: large providers use anycast

Re: [prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-12 Thread Conall O'Brien
On Wed, 10 Apr 2024 at 06:47, 'Brian Candler' via Prometheus Users < prometheus-users@googlegroups.com> wrote: > One exporter scrape = one probe test and I think that should remain. You > can get what you want by expanding the targets (which is a *list* of > targets+labels): > > static_configs:

[prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-09 Thread 'Brian Candler' via Prometheus Users
One exporter scrape = one probe test and I think that should remain. You can get what you want by expanding the targets (which is a *list* of targets+labels): static_configs: - targets: - 1.1.1.1 - 185.228.168.9 labels: queryname: www.google.com -

[prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-09 Thread Vincent Romero
Hello, this worked With the new feature with simple domain works, but considered whether the label required adding N domains? Y try add other domain in the same labels - job_name: 'blackbox-dns-monitor' scrape_interval: 5s metrics_path: /probe params: module: [dns_probe]

[prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-09 Thread Vincent Romero
i will try make build, with this change El Saturday, April 6, 2024 a la(s) 2:45:29 PM UTC-3, Brian Candler escribió: > You're correct that currently the qname is statically configured in the > prober config. > > A patch was submitted to allow what you want, but hasn't been merged: >

[prometheus-users] Re: Config DNS Prometheus/Blackbox_Exporter

2024-04-06 Thread 'Brian Candler' via Prometheus Users
You're correct that currently the qname is statically configured in the prober config. A patch was submitted to allow what you want, but hasn't been merged: https://github.com/prometheus/blackbox_exporter/pull/1105 You can build blackbox_exporter yourself with this patch applied though. On