Fix metrics server to use httpEndpoint when provided
Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
This commit is contained in:
@@ -154,7 +154,7 @@ func main() {
|
|||||||
metricsManager.SetDriverName(driverName)
|
metricsManager.SetDriverName(driverName)
|
||||||
go func() {
|
go func() {
|
||||||
klog.Infof("ServeMux listening at %q", addr)
|
klog.Infof("ServeMux listening at %q", addr)
|
||||||
err := http.ListenAndServe(*metricsAddress, mux)
|
err := http.ListenAndServe(addr, mux)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Fatalf("Failed to start HTTP server at specified address (%q) and metrics path (%q): %s", addr, *metricsPath, err)
|
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