Skip to content

Commit

Permalink
Fix metrics path not using command-line argument value (#904)
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Hromic <[email protected]>
  • Loading branch information
hhromic authored Jul 1, 2023
1 parent 562ae90 commit 30da795
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 30da795

Please sign in to comment.