Merge pull request #496 from ggriffiths/honor_http_addr
Fix snapshotter metrics server to use http-endpoint when provided
This commit is contained in:
@@ -154,7 +154,7 @@ func main() {
|
||||
metricsManager.SetDriverName(driverName)
|
||||
go func() {
|
||||
klog.Infof("ServeMux listening at %q", addr)
|
||||
err := http.ListenAndServe(*metricsAddress, mux)
|
||||
err := http.ListenAndServe(addr, mux)
|
||||
if err != nil {
|
||||
klog.Fatalf("Failed to start HTTP server at specified address (%q) and metrics path (%q): %s", addr, *metricsPath, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user