prometheus / blackbox_exporter

Blackbox prober exporter
https://prometheus.io
Apache License 2.0
4.71k stars 1.06k forks source link

allow specification of query_name by probe param for dns prober #1104

Open FOWind opened 1 year ago

FOWind commented 1 year ago

Currently dns prober only specify query_name by blackbox_exporter configuration file.

In some scenes, I want to specify query_name by prometheus targets config.

I found in tcp and http prober, user can specify hostname by 'hostname' query param.

I think dns prober can reuse hostname query param to specify query_name .

vilhelmprytz commented 11 months ago

Anything new regarding this? I would also like to be able to specify query_name in the URL using a parameter.

FOWind commented 11 months ago

Anything new regarding this? I would also like to be able to specify query_name in the URL using a parameter.

Can refer to https://github.com/prometheus/blackbox_exporter/pull/1105 and build it yourself if you need.

vilhelmprytz commented 11 months ago

Anything new regarding this? I would also like to be able to specify query_name in the URL using a parameter.

Can refer to https://github.com/prometheus/blackbox_exporter/pull/1105 and build it yourself if you need.

Thanks for the tip, will try! @FOWind

JDA88 commented 9 months ago

Anyone know when this will be available? We also have a use case for it.