Display error message if prometheus output fails to listen (#2984)
This commit is contained in:
parent
135ce41a59
commit
89c5fab917
|
@ -78,7 +78,12 @@ func (p *PrometheusClient) Start() error {
|
||||||
Handler: mux,
|
Handler: mux,
|
||||||
}
|
}
|
||||||
|
|
||||||
go p.server.ListenAndServe()
|
go func() {
|
||||||
|
if err := p.server.ListenAndServe(); err != nil {
|
||||||
|
log.Printf("E! Error creating prometheus metric endpoint, err: %s\n",
|
||||||
|
err.Error())
|
||||||
|
}
|
||||||
|
}()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue