[PR #2954] [MERGED] Add separate Prometheus HTTP server #3448

Closed
opened 2026-03-16 11:44:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2954
Author: @divergentdave
Created: 4/29/2025
Status: Merged
Merged: 5/1/2025
Merged by: @djc

Base: mainHead: david/prometheus-http-server


📝 Commits (2)

  • 2f988c1 Wait for child process to exit in tests
  • f81cefb Add separate Prometheus HTTP server

📊 Changes

7 files changed (+157 additions, -37 deletions)

View changed files

📝 Cargo.lock (+4 -0)
📝 Cargo.toml (+2 -0)
📝 bin/Cargo.toml (+5 -1)
📝 bin/src/hickory-dns.rs (+29 -34)
📝 bin/src/lib.rs (+6 -0)
bin/src/prometheus_server.rs (+105 -0)
📝 bin/tests/integration/server_harness/mod.rs (+6 -2)

📄 Description

This re-implements the Prometheus HTTP server directly, so we have more control over it for testing purposes. This closes #2947.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/2954 **Author:** [@divergentdave](https://github.com/divergentdave) **Created:** 4/29/2025 **Status:** ✅ Merged **Merged:** 5/1/2025 **Merged by:** [@djc](https://github.com/djc) **Base:** `main` ← **Head:** `david/prometheus-http-server` --- ### 📝 Commits (2) - [`2f988c1`](https://github.com/hickory-dns/hickory-dns/commit/2f988c1c0d5a4db476f034d1fe79e47ac9f816e6) Wait for child process to exit in tests - [`f81cefb`](https://github.com/hickory-dns/hickory-dns/commit/f81cefb0e9316e24a54f386e128b51c462accc7a) Add separate Prometheus HTTP server ### 📊 Changes **7 files changed** (+157 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+4 -0) 📝 `Cargo.toml` (+2 -0) 📝 `bin/Cargo.toml` (+5 -1) 📝 `bin/src/hickory-dns.rs` (+29 -34) 📝 `bin/src/lib.rs` (+6 -0) ➕ `bin/src/prometheus_server.rs` (+105 -0) 📝 `bin/tests/integration/server_harness/mod.rs` (+6 -2) </details> ### 📄 Description This re-implements the Prometheus HTTP server directly, so we have more control over it for testing purposes. This closes #2947. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:44:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#3448
No description provided.