Prometheus: mDNS names in DNS service discovery
The Prometheus docs now say that DNS service discovery does not resolve .local names, and a test covers the case.
- Merged pull request: prometheus/prometheus#20033
- What it adds: A note under
dns_sd_configin the configuration docs: names are resolved with unicast DNS queries only, so.local(mDNS) names are not resolved unless the configured DNS servers can answer for them, with a pointer tofile_sd_configandhttp_sd_config. A test case inTestDNSchecks that a.localname answered with NXDOMAIN gives no targets. A maintainer asked for both on Prometheus #2537, the 2017 report that mDNS names cannot be scraped. It does not add mDNS support. - How AI was used: AI coding agents (Claude, via Claude Code) wrote the test and the docs note, and a separate AI review and QA pass checked them. The maintainer asked for a simpler test and his own wording for the note, and the agents applied both as he gave them, with one unused variable renamed in the test. A. Caleb Ratliff approved the pull request text, each push and each reply. The maintainer reviewed it, asked for changes, approved it and merged it.