Skip to content

Commit

Permalink
Fix metrics path not using command-line argument value
Browse files Browse the repository at this point in the history
  • Loading branch information
hhromic committed Jul 1, 2023
1 parent 562ae90 commit a306f27
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 a306f27

Please sign in to comment.