mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #3428] [MERGED] Additional recursive resolver metrics, general metrics tidying #3838
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#3838
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/3428
Author: @cpu
Created: 1/7/2026
Status: ✅ Merged
Merged: 1/14/2026
Merged by: @cpu
Base:
main← Head:cpu-moar-metrics_dev📝 Commits (10+)
337754eresolver: gate all opp enc metrics equivalently65449f4resolver: consolidate metrics into a module7d5b6e7resolver: export metric names as pub0e5585abin: extract metrics to separate module6ee1833bin: export metric names81a73d3server: lift metrics into top-level module7873127server: export metric names8a400dbserver: blocklist entries metric name consistency8277891bin: test that histogram metrics are not summaries4055073bin: propagate DoH/DoT/DoQ features to hickory-resolver📊 Changes
27 files changed (+2271 additions, -1390 deletions)
View changed files
📝
bin/Cargo.toml(+6 -6)📝
bin/src/config/tests.rs(+1 -1)📝
bin/src/lib.rs(+5 -135)➕
bin/src/metrics.rs(+142 -0)📝
bin/src/prometheus_server.rs(+52 -7)📝
bin/tests/integration/named_metrics_tests.rs(+191 -127)📝
crates/resolver/src/cache.rs(+15 -0)📝
crates/resolver/src/lib.rs(+2 -0)➕
crates/resolver/src/metrics.rs(+526 -0)📝
crates/resolver/src/name_server.rs(+240 -276)📝
crates/resolver/src/recursor/handle.rs(+43 -42)📝
crates/resolver/src/recursor/mod.rs(+25 -4)📝
crates/resolver/src/recursor/tests.rs(+77 -6)📝
crates/server/src/lib.rs(+2 -0)➕
crates/server/src/metrics.rs(+820 -0)➖
crates/server/src/server/metrics.rs(+0 -277)📝
crates/server/src/server/mod.rs(+5 -25)📝
crates/server/src/store/blocklist.rs(+2 -50)📝
crates/server/src/store/file.rs(+1 -1)➖
crates/server/src/store/metrics.rs(+0 -75)...and 7 more files
📄 Description
A continuation of previous metrics work, largely focused on metrics that will be helpful for https://github.com/hickory-dns/hickory-dns/issues/2725 based on gaps between what
hickory-dnsoffers today, and what metricsunbound_exporteroffers.Some highlights:
pubitems. This both reduces fragile duplication of the string literals across crate boundaries and also makes the question of "What metrics does Hickory expose?" easier to answer usingrustdoc. More detail in commit message🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.