mirror of
https://github.com/fosrl/newt.git
synced 2025-12-05 19:17:38 -06:00
Add log message that the server is on
This commit is contained in:
1
main.go
1
main.go
@@ -391,6 +391,7 @@ func main() {
|
||||
}
|
||||
if tel != nil {
|
||||
// Admin HTTP server (exposes /metrics when Prometheus exporter is enabled)
|
||||
logger.Info("Starting metrics server on %s", tcfg.AdminAddr)
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) })
|
||||
if tel.PrometheusHandler != nil {
|
||||
|
||||
Reference in New Issue
Block a user