Skip to content

Commit

Permalink
Fix metrics path not using command-line argument value (prometheus#904)
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Hromic <[email protected]>
Signed-off-by: Stephan Windischmann <[email protected]>
  • Loading branch information
hhromic authored and Stephan Windischmann committed Oct 27, 2023
1 parent 3aee601 commit 269286e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func main() {
}
}()

http.Handle("/metrics", promhttp.Handler()) // Normal metrics endpoint for SNMP exporter itself.
http.Handle(*metricsPath, promhttp.Handler()) // Normal metrics endpoint for SNMP exporter itself.
// Endpoint to do SNMP scrapes.
http.HandleFunc(proberPath, func(w http.ResponseWriter, r *http.Request) {
handler(w, r, logger)
Expand Down

0 comments on commit 269286e

Please sign in to comment.