Skip to content

Commit 31a6091

Browse files
authored
Merge pull request #496 from ggriffiths/honor_http_addr
Fix snapshotter metrics server to use http-endpoint when provided
2 parents f255fe7 + f949f2b commit 31a6091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/csi-snapshotter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func main() {
154154
metricsManager.SetDriverName(driverName)
155155
go func() {
156156
klog.Infof("ServeMux listening at %q", addr)
157-
err := http.ListenAndServe(*metricsAddress, mux)
157+
err := http.ListenAndServe(addr, mux)
158158
if err != nil {
159159
klog.Fatalf("Failed to start HTTP server at specified address (%q) and metrics path (%q): %s", addr, *metricsPath, err)
160160
}

0 commit comments

Comments
 (0)