no need for absolute path for prometheus endpoint pointing to metrics

This commit is contained in:
Mechiel Lukkien 2023-10-24 13:11:04 +02:00
parent a6d55b7e76
commit 7b047ed28d
No known key found for this signature in database

View file

@ -610,7 +610,7 @@ func Listen() {
return return
} }
w.Header().Set("Content-Type", "text/html") w.Header().Set("Content-Type", "text/html")
fmt.Fprint(w, `<html><body>see <a href="/metrics">/metrics</a></body></html>`) fmt.Fprint(w, `<html><body>see <a href="metrics">metrics</a></body></html>`)
}))) })))
} }
if l.AutoconfigHTTPS.Enabled { if l.AutoconfigHTTPS.Enabled {