Skip to content

Conversation

@nadiamoe
Copy link
Member

@nadiamoe nadiamoe commented Nov 6, 2025

For the vast majority of check types, probe_duration_seconds is reported as the wall time that took to run the prober. This is accurate for the vast majority of cases, but there's one in particular where it is not: k6-backed checks that use external runners.

External runners can take a certain time to process a request, which prior to this commit was counted as part of probe_duration_seconds while in fact it was not. This commit adds code that parses the probe_script_duration_seconds metric returned by k6 runners, and uses that as the duration of the check for both logs and probe_duration_seconds.

Fixes #1508

@nadiamoe nadiamoe force-pushed the k6-version-report branch 2 times, most recently from 11eb79b to 1654602 Compare November 6, 2025 10:40
@nadiamoe nadiamoe marked this pull request as ready for review November 6, 2025 11:42
@nadiamoe nadiamoe requested a review from a team as a code owner November 6, 2025 11:42
@nadiamoe nadiamoe requested review from The-9880 and mem November 6, 2025 11:42
The-9880
The-9880 previously approved these changes Nov 7, 2025
Copy link
Contributor

@The-9880 The-9880 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - also closes #1568.

…nds`

For the vast majority of check types, `probe_duration_seconds` is
reported as the wall time that took to run the prober. This is accurate
for the vast majority of cases, but there's one in particular where it
is not: k6-backed checks that use external runners.

External runners can take a certain time to process a request, which
prior to this commit was counted as part of `probe_duration_seconds`
while in fact it was not. This commit adds code that parses the
`probe_script_duration_seconds` metric returned by k6 runners, and uses
that as the duration of the check for both logs and
`probe_duration_seconds`.
@nadiamoe
Copy link
Member Author

nadiamoe commented Nov 7, 2025

I'll hold this one for the weekend and merge it early next week after the release, so we have time to test it.

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.

Log duration_seconds and metric probe_duration_seconds show different values

2 participants