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
Fix code comment #2785
Fix code comment #2785
Conversation
b476d43
to
17415ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm 🤔 if I am reading this correctly:
Lines 191 to 200 in 616e5e2
if flags.Changed("summary-trend-stats") { | |
trendStats, errSts := flags.GetStringSlice("summary-trend-stats") | |
if errSts != nil { | |
return opts, errSts | |
} | |
if _, errSts = metrics.GetResolversForTrendColumns(trendStats); err != nil { | |
return opts, errSts | |
} | |
opts.SummaryTrendStats = trendStats | |
} |
Then changing this function will also allow users to specify k6 run --summary-trend-stats min,med,max,sum
, which is not something we want, right? 🤔
Why do you need this change?
@na-- I thought we were fine adding it, it isn't included in the default values but it allows users to generate that stat if needed.
The Prometheus Output has the option for exporting the |
I am not sure how the sum of a Also, the So, given the dubious value to users and the potential complication for HDR histograms, I think copying some code to the extension (with a |
Ok, then I think I can do something hacky for excluding the |
The fix to the |
Co-authored-by: na-- <n@andreev.sh>
b39546f
to
a55b6ee
Compare
Add the Sum stat into the resolvers map. It is helpful for reusing the same function from the Remote Write output. grafana/xk6-output-prometheus-remote#64Just fix a comment