-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Adds a time boxed sampling for backend listeners #237
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
Conversation
git-svn-id: https://svn.apache.org/repos/asf/jmeter/tags/v3_1_RC4@1770033 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/jmeter/tags/v3_1@1770529 13f79535-47bb-0310-9956-ffa450edef68
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.
Thanks for the contribution.
Overall it looks good. Maybe you could also describe the use case for this feature compared to the fixed-size one.
|
||
/** | ||
* Metrics are sent into boxes which can be {@link #FIXED a fixed-size sliding window} or {@link #TIMED time boxed}. | ||
* @author Logan Mzz |
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.
We don't use the author doc tag.
stat.clear(); | ||
} | ||
break; | ||
default: throw new UnsupportedOperationException(windowMode.name()); |
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.
Seems like a formatting error
// http://commons.apache.org/proper/commons-math/userguide/stat.html | ||
break; | ||
case TIMED: | ||
for (DescriptiveStatistics stat : windowedStats) { |
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.
JMeter now uses java 8, so we could use the newer syntax :)
|
||
int slidingWindowSize = JMeterUtils.getPropDefault("backend_metrics_window", 100); | ||
// Limit to sliding window of SLIDING_WINDOW_SIZE values | ||
for (DescriptiveStatistics stat : stats) { |
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.
Formatting issue
@@ -917,6 +917,8 @@ summariser.name=summary | |||
# BackendListener - configuration | |||
#--------------------------------------------------------------------------- | |||
# | |||
# Backend metrics window mode (fixed=fixed-size window, timed=time boxed) | |||
#backend_metrics_window_mode=fixed |
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.
Documentation is missing for this new feature. It should be mentioned in the properties section and the users manual.
Hello @max3163, |
When you use the fixed metric window mode, all samples metrics are saved in a sliding array with a fix size, you send each second to your backend a trend of this values |
Hello Team, |
This sounds good if it's what I think it is. Definitely would appreciate a clear description of what it precisely does, though. |
@max3163 , are you using GraphiteBackendListener or something else (I don't fully understand your comment on "I'm thinking to send a PR to share it too". |
@pmouawad |
Hello, Thank you |
Hi, I just sent you a new PR ( #246 ) for the Influxdb backend. |
These tests only work with the apache#237 PR merged and timed mode box
No description provided.