Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic merge from submit-queue. fix self-monitoring The current self-monitoring is broken, nothing can be fetched for /metrics nor /version. This is because ListenAndServe() *creates* a new net.Listener and then serve, while current monitoring.go also creates a net.Listener instance beforehand, so ListenAndServe() always fails with "address already in-use" error. When a net.Listener is given, use "Serve" instead. Also "Close" can close the listener, the `monitor` does not have to keep the listener at all. That's all taken care of already. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note none ```
- Loading branch information