Skip to content

[metrics.payload] Allow accepting and rejecting payload lines based on regex - #1003

Merged
manugarg merged 2 commits into
mainfrom
payload_line_regex
Feb 13, 2025
Merged

manugarg merged 2 commits into
mainfrom
payload_line_regex

Conversation

@manugarg

@manugarg manugarg commented Feb 13, 2025 •

Copy link
Copy Markdown
Contributor
  • This will help to avoid cases where there is a spurious output on external probe process failure and we still try to parse it for metrics. For example, this was happening for the browser probe failures -- on failure playwright prompts user to open the report.
  • This could in general be a useful feature though.
  • probes.browser: Use the new feature to only process metrics lines from the reporter.

@manugarg manugarg added this to the v0.14.0 milestone Feb 13, 2025
@manugarg
manugarg merged commit 12aff72 into main Feb 13, 2025
@manugarg
manugarg deleted the payload_line_regex branch February 13, 2025 19:32
@ericmustin

Copy link
Copy Markdown

Thank you for addressing this @manugarg , I bumped into it. Is there a general release cadence or timeline I can follow? I see v0.14.0 mileston is unreleased, I've been extending the published cloudprober:latest-pw image (which picks up v0.13 currently if i understand correctly) and, while I can point at the cloudprober:main-pw image for now, i'd prefer to use a stable tag.

@manugarg

Copy link
Copy Markdown
Contributor Author

Thank you for addressing this @manugarg , I bumped into it. Is there a general release cadence or timeline I can follow? I see v0.14.0 mileston is unreleased, I've been extending the published cloudprober:latest-pw image (which picks up v0.13 currently if i understand correctly) and, while I can point at the cloudprober:main-pw image for now, i'd prefer to use a stable tag.

@ericmustin
We don't have a published cadence for releases. If there is a critical/wide-impact bug or security issue that impacts Cloudprober, I try to release a fix as early as possible. Other than that, I mostly cut a new release when there are significant changes and they are looking stable -- looking at the past few releases that seems to happen at around 3-4 months mark.

I'll try cut a new release early next week.

By the way, it's cool that you're already using the browser probe type 😄. I was planning to announce it more broadly once its config API was more stable and there was some documentation. Good news is it's getting there, but there have been some config changes (mostly in artifacts_options) since the last release, not sure if you've caught them already.

@manugarg

Copy link
Copy Markdown
Contributor Author

@ericmustin Just cut a new release: https://github.com/cloudprober/cloudprober/releases/tag/v0.14.0

@ericmustin

Copy link
Copy Markdown

@manugarg fantastic, thank you kindly sir, i'll check it out. Fwiw i've noticed one or two oddities that playwright seems to have around navigation timeouts causing the test to fail and playwright process to be killed before metrics can be collected from the reporter for the probe, i'll try to file an issue when i have a bit of time to document. as a workaround, prepending tests with a page.setDefaultTimeout seems to allow the test to fail more gracefully and metrics to be emitted / surfaced appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants