Repository navigation
Add aws support - #1075
Closed
conallob wants to merge 1364 commits into
Closed
Add aws support#1075conallob wants to merge 1364 commits into
conallob wants to merge 1364 commits into
Conversation
) * [probes.external] Test: Kill all started processes before exiting. - This is important for Windows tests where deleting the test binary fails if it's still executing (for testing external probe process). - We use a temp pids file to collect the pids of the started processes and kill those pids before exiting the test.
…). (#722) Also, don't log pipe closed errors for stdout and stderr reading.
Note: this only changes default number of connections for HEALTH_CHECK and GENERIC methods. For backward compatibility, we are keeping default as 2 for methods that were added a long time ago: ECHO, READ and WRITE.
…g. (#732) - Add a new flag `--prometheus_metrics_prefix` to set metrics prefix for the prometheus surfacer. - In a typical multi-tenant deployment, one would want to set metrics prefix for all tenants. Since configs are usually tenant specific, configs are not a good place for that, while binary flags are usually controlled by the operator, making them a good place for such settings.
For releases, current PYVERSION ends up having a tailing dash, get rid of it.
- Also, update result during connection success too.
* [probes.external] Fix sporadic pipe read error logs. = While reading external process's stdout and stderr, don't log the error if it's caused by pipe closing.
Signed-off-by: Conall O'Brien <[email protected]>
* This applies to all kinds of file resources: - File based targets - TLS certificate files - OAuth token files - Cloudprober config itself.
* Old driver is in the maintenance mode and has not been seeing updates. * pgx has some performance improvements as well.
Add a public validators package to provide extension probes an easy way to run validators.
We should not be writing to buffered stdout and stderr. This change was introduced recently in v0.13.4: github.com//pull/695
If refresh from backend fails, we should attempt to refresh on each resolve call. Also, use read-write mutex instead of default mutex wherever possible. It won't have much impact on performance as we never lock for long, but it is still a good practice.
We moved tlsconfig from internal/tlsconfig to common/tlsconfig in #592, but users need access to tlsconfig protos to programmatically generate Cloudprober configs.
We moved oauth from internal/oauth to common/oauth in #592, but users need access to oauth protos to programmatically generate Cloudprober configs.
- This is in preparation to implement global artifacts options.
Most teams/users would want to configure same artifacts options for all probes. Now they can, with global_artifacts_options at the prober level. - If global_artifacts_options is provided, use these options at the probe level if probe level artifacts_options is not given. - Modify probe options (options.Options) to store prober config (pointer) at the prober initialization time and probe name. We're adding prober config to options so that we can access global_artifacts_options from probes. - If web serving is enabled in global_artifacts_options, initialize it just once. If not web root is provided, use first local storage directory as root. - Move storage path from storage type specific config to storage config, and append probe name to the provided path, if using global artifacts options.
- Fix cloudprober.css link while serving on non-standard path. - Also fix a small bug in javascript.
See screenshot attached to the PR for settings used to generate these faveicons.
- In the top left corner, show Cloudprober's description instead of just saying 'Cloudprober'.
While writing documentation for OAuth I realized OAuth config doesn't flow nicely -- more specifically, bearer_token abstraction feels unnecessary.
This PR changes that. It's moving bearer_token fields outside, under oauth_config directly. We'll still continue to support bearer_token. It's not much burden as bearer_token implementation now uses the new implementation.
Old config:
oauth_config {
bearer_token {
file: ..
}
}
New config (note: old config will still work):
oauth_config {
file: ..
}
* Merge some of the http_token logic into tokensource.go to make it more consistent with other types and reduce some duplication. * This change also allows http_token to be refreshed at interval if refresh_interval_sec is explicitly given.
The way we spread probes is like this: We arrange probes into interval buckets. Then: - In each interval bucket, we spread the probes equally, i.e. we sleep for a fixed duration before starting the next probe. This gap between the probes (interProbeGap) was capped at 2s, this PR raises the cap to 1min. - Each interval bucket is randomly spaced out from each other, but that space is capped at minimum of interval and 10s (this is also changing to 1m). This behavior was initially introduced for high frequency native probes (<2s interval) that's why we capped inter-probe gap at 2s and interval bucket start delay at 10s. Idea was that 2s gap should be good enough for native probe types (e.g. HTTP) from performance impact point of view. Now, with the introduction of browser probe types, this doesn't hold true. Browser probes require a ton of memory and CPU, and they usually have a higher interval, say 2-15min. If we have 6 browser probes as 10 min interval, we don't want them to start at 2s gap. This PR raise the max gap from 2s to 1min. We don't want this gap to be too high as the last probe in the interval bucket will start after (n-1)*gapDuration, moreover we may not benefit from a gap greater than 1m.
- Playwright report is always saved in a subdirectory under the output directory, e.g. date1/ts1/pw-report where date1/ts1 is the output directory for a specific run. Date and timestamp are useful, but 'pw-report' here adds an unnecessary step while accessing the report. - This change removes this subdirectory while saving the artifacts, making report access quicker. For example, report will now be at this path: http://localhost:9313/artifacts/test_browser_probe/2025-04-28/1745861849606/ instead of http://localhost:9313/artifacts/test_browser_probe/2025-04-28/1745861849606/report
Signed-off-by: Conall O'Brien <[email protected]>
Signed-off-by: Conall O'Brien <[email protected]>
Contributor
Author
|
Nuking repo, will recreate with the help of Claude Code |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clone of #640 , after forking the underlying git repo and rebasing against
mainof https://github.com/cloudprober/cloudprober/