-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
docs: e2e_processing_latency_percentiles settings #899
Comments
Both are correct. If you set this in the config file, you use an array. If you set this with a command-line flag, you use commas. https://github.com/nsqio/nsq/blob/master/nsqd/options.go#L64 |
@ploxiln I think the question here is are the values in the range |
Ah, that is a good question. I had to hunt all the way into https://github.com/bmizerany/perks/ to be sure. Each value needs to be in the range I'm also not sure if the command-line flag actually works, it doesn't look like it copies the percentiles option to // End to end percentile flags
e2eProcessingLatencyPercentiles := app.FloatArray{}
flagSet.Var(&e2eProcessingLatencyPercentiles, "e2e-processing-latency-percentile", "message processing time percentiles (as float (0, 1.0]) to track (can be specified multiple times or comma separated '1.0,0.99,0.95', default none)")
flagSet.Duration("e2e-processing-latency-window-time", opts.E2EProcessingLatencyWindowTime, "calculate end to end latency quantiles for this duration of time (ie: 60s would only show quantile calculations from the past 60 seconds)") |
I take back that bit about not being sure the command-line flag works, go-options gets the reference from the flagSet Var. Anyway, a documentation/examples update should be sufficient to resolve this issue. |
fixed in #988 |
From the github, I found the "ndsq.cfg.example", it wrote like this:
message processing time percentiles to keep track of (float)
e2e_processing_latency_percentiles = [
100.0,
99.0,
95.0
]
But, on the official document, Command Line Options describe:
-e2e-processing-latency-percentile value
message processing time percentiles (as float (0, 1.0]) to track (can be specified multiple times or comma separated '1.0,0.99,0.95', default none)
Which is right? Tks
The text was updated successfully, but these errors were encountered: