-
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.
[libbeat] Register uid/gid monitoring metrics asychronously (#31835)
This refactors the Beat initialization code to consolidate the metric registration into a helper method and changes the call to lookup user info (`user.Current()`) to be asynchronous from the main initialization goroutine. This prevents the lookup from blocking the process initialization and delaying the `StartServiceCtrlDispatcher` call that is required by Windows services within a particular time period. The user.Current() call can take up to 60 sec in some cases which causes Windows to timeout the service and kill the process. Relates #31810
- Loading branch information
1 parent
1a11e14
commit 97768b9
Showing
2 changed files
with
50 additions
and
46 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