-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[probes.external] Parse stdout as soon as it is available. (#708)
- Generate metrics from external probe's stdout as soon as stdout becomes available. This helps in situations where external probe process runs for a bit but it keeps outputting metrics much more frequently, say 1 min interval with output every 10s (see #691 for one such request but it has been asked earlier as well, at least once more). - With this change stderr will also be read and logged as soon as it's available. Add and improve testing: - Don't rely on timeout for testing. That makes it unreliable on CI. - Reduce external probe process runs for the TestProbeOnceMode test. - Remove wait for the command exit. - Change in #547 appears wrong as it was causing wait to be called on only for non-windows platforms, while issue was on windows. It seems that the issue was temporary and fixed by itself.
- Loading branch information
Showing
9 changed files
with
259 additions
and
110 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
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
Oops, something went wrong.