Skip to content

Commit 600477f

Browse files
author
Grant Griffiths
committed
Fix metrics server to use httpEndpoint when provided
Signed-off-by: Grant Griffiths <[email protected]>
1 parent d12863c commit 600477f

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)