-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Sub-metrics without values are rendered below wrong main metric #2518
Comments
Thanks for the report again 🙇 I can reproduce this 😞 I am not sure if this alone is worth releasing a v0.38.2 release, but I'll tag it as such for now, we might have other issues as well. |
@na-- IMHO this is too low prio to justify a 0.38.2 release. It only affects the output, not the actual execution of the test nor the metric collection. The output will be a bit confusing if there are metrics without values, but sub-metrics of those metrics are defined as threshold. Confusing, but nothing to worry too much about. For |
This is a weird issue, because the last code line here should have prevented it 😕 Lines 121 to 127 in 44cc995
See the comment, this case was exactly why it exists, so I think metric.Sub might not be properly getting initialized @oleiade ? |
Thanks again for the report @efdknittlfrank, looking into it, and will update you as soon as I have news 🙇🏻 |
Ah, I think I found the problem 🤦♂️ The above code is |
Should be fixed by #2519 While this bug is probably not sufficient to release v0.38.2 by itself (after all, before v0.38.0 and the fix of #1346, you would not see anything for either the @efdknittlfrank, thank you for an excellent bug report again! If you have any more bugs to report, I wouldn't say we would be happy, precisely, but we'd appreciate them very much! 😅 |
Hi @efdknittlfrank, Heads up that the newly released v0.38.2 https://github.com/grafana/k6/releases/tag/v0.38.2 contains the fix for this issue 🤝 |
@oleiade wonderful! Thanks a bunch |
Brief summary
This one is only a minor bug/annoyance (and another question is: should you have metrics without values? it can happen …)
Now that #2512 is fixed (thank you very much!), metrics and thresholds now work a bit differently in 0.38.1.
One small problem is that thresholds for sub-metrics without any values ever recorded on the main-metric are rendered below a different main-metric.
k6 version
0.38.1
OS
Windows and Docker
Docker version and image (if applicable)
0.38.1
Steps to reproduce the problem
A simple script to reproduce the bug:
Expected behaviour
Two possible implementations come to mind:
1. render (main-)metrics, even without recorded values
2. Hide metrics including their sub-metrics if no value was ever recorded
I think option 1 would be preferable, because it doesn't surprise users with "why is my metric gone?".
Actual behaviour
As you can see,
{tag:xyz}
is a submetric ofone
, but it is rendered belowiterations
. Metricone
is not rendered at all (which is somewhat plausible and understandable). Sub-metrics without values on their main metric seem to be rendered below the "alphabetically" preceeding main-metric, e.g.foobar{tag:xyz}
without any values would be rendered belowdata_sent
.The text was updated successfully, but these errors were encountered: