mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2947] Write separate HTTP server for Prometheus metrics scrapes #1097
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#1097
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?
Originally created by @divergentdave on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2947
Originally assigned to: @divergentdave on GitHub.
#2900 adds a test that checks the output of the Prometheus exporter. The exporter crate we're using just takes in a socket address, and doesn't return the local address of the socket, so we can't bind to port 0 for this test. Instead we bind an ephemeral port, close it, and reuse that port number with the exporter. Based on past experience, this will introduce infrequent test flakes. The suggested approach for more advanced use cases is to implement our own HTTP server, and use the exporter crate to just render the metrics scrape into the Prometheus text format. This will let us write our own test utilities, and it will give us more flexibility in the future to tweak the Prometheus endpoint.