Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send interrupted iteartions' duration to the cloud ingest API #795

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

na--
Copy link
Member

@na-- na-- commented Oct 3, 2018

Previously in #710 I fixed a bug in k6 so that some metrics aren't emitted when an iteration is canceled, a bug that was introduced by the real-time metrics refactoring (which was itself needed for the in-k6 data aggregation). In the case of the metrics emitted at the end of an iteration, I made it so that the data_sent and data_received metrics are always emitted, but the iteration_duration metric would only be emitted for complete iterations.

The trouble comes from the fact that I forgot that we bundle iteration metrics in a iter_li_all metric for the cloud collector. So the iteration_duration was sent there even if the iteration was incomplete, so this PR makes the cloud collector behave like the rest.

Copy link
Member

@robingustafsson robingustafsson left a comment

Choose a reason for hiding this comment

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

LGTM

@na-- na-- merged commit f4aec40 into master Oct 5, 2018
@na-- na-- deleted the cloud-interupted-iter-duration-fix branch October 5, 2018 06:20
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