-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure pprof endpoint is listening on startup (#17028)
pprof HTTP endpoint was being initialized asynchronously. In tests we have found that sometimes after Metricbeat has started, it fails to connect to the pprof endpoint. This can happen if the server is not listening before the rest of the beat is initialized. This change ensures that the listener for this endpoint is started before continuing with the rest of the initialization. Some comments and error messages have been polished.
- Loading branch information
Showing
2 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters