feat: Add HTTP health check endpoints with Redis and eBPF status validation for packet-gateway

- Add axum, serde, serde_json, and chrono dependencies to Cargo.toml
- Add health_port CLI argument (defaults to 8081)
- Add /health endpoint returning basic health status
- Add /health/live endpoint for liveness checks (always returns alive if service is running)
- Add /health/ready endpoint for readiness checks with Redis connectivity and eBPF attachment validation
- Add AtomicBool to track eBPF attachment status across
This commit is contained in:
nutcas3
2026-04-25 03:25:01 +03:00
parent 8e40a54d8b
commit 121cb60a62
2 changed files with 126 additions and 7 deletions
+4
View File
@@ -16,6 +16,10 @@ tracing = { workspace = true }
tracing-subscriber = { workspace = true }
dotenv = { workspace = true }
clap = { version = "4.5", features = ["derive"] }
axum = "0.8.9"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = "0.4"
[[bin]]
name = "packet-gateway"