mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #3123] [MERGED] Add recursor metrics #3577
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3577
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/3123
Author: @divergentdave
Created: 7/16/2025
Status: ✅ Merged
Merged: 7/20/2025
Merged by: @djc
Base:
main← Head:david/recursor-metrics📝 Commits (4)
d8e1aceAdd metric for number of outgoing queries made8057c2cAdd counters for recursor cache hits and missesadb2b73Only run metrics test when the exporter is enableddd5ff0aReplace string literal with variable📊 Changes
12 files changed (+557 additions, -5 deletions)
View changed files
📝
Cargo.lock(+13 -0)📝
Cargo.toml(+1 -0)📝
bin/tests/integration/main.rs(+1 -1)📝
crates/proto/src/op/message.rs(+1 -2)📝
crates/recursor/Cargo.toml(+4 -0)📝
crates/recursor/src/lib.rs(+2 -0)➕
crates/recursor/src/metrics_tests.rs(+456 -0)📝
crates/recursor/src/recursor.rs(+13 -0)📝
crates/recursor/src/recursor_dns_handle.rs(+46 -0)📝
crates/recursor/src/recursor_pool.rs(+18 -0)📝
crates/server/Cargo.toml(+1 -1)📝
crates/server/src/server/metrics.rs(+1 -1)📄 Description
This adds some basic metrics in the recursor crate, tracking cache hits and misses, as well as the total number of iterative queries made. I also tweaked the feature gate on the relevant integration test, to avoid failures with exotic feature combinations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.