address comment
This commit is contained in:
parent
7e4883db8e
commit
194abc817d
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ func InitPrometheus(prometheusHost, prometheusPort, prometheusEntry string) {
|
|||
if strings.HasPrefix(prometheusHost, "unix:") {
|
||||
socketPath := prometheusHost[5:]
|
||||
glog.Infof("Starting Prometheus on Unix socket %v, entry point is /%v", socketPath, prometheusEntry)
|
||||
os.Remove(socketPath) // allow failure
|
||||
_ := os.Remove(socketPath) // allow failure
|
||||
unixListener, err := net.Listen("unix", socketPath)
|
||||
if err != nil {
|
||||
glog.Errorf("Error starting Prometheus on socket %v: %v", socketPath, err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue