Skip to content

dns: make query_name optional; fallback to target hostname when omitted#1483

Open
serrrios wants to merge 1 commit into
prometheus:masterfrom
serrrios:feat/dns-optional-query-name
Open

dns: make query_name optional; fallback to target hostname when omitted#1483
serrrios wants to merge 1 commit into
prometheus:masterfrom
serrrios:feat/dns-optional-query-name

Conversation

@serrrios

Copy link
Copy Markdown

Makes dns.query_name optional. When omitted the prober uses the hostname part of target. Rationale: simplifies common configs and reduces duplication. Changes: remove mandatory check in DNSProbe.UnmarshalYAML; derive qName in prober/dns.go; update documentation. Backward compatibility: existing configs continue to work. Tests: keep explicit query_name behavior and add fallback coverage.

@github-actions github-actions Bot added the stale label Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant