Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
curl plugin doesn't reset values_num #663
Using curl plugin with GaugeAverage seemed to work, but showed strange values on the long run.
Looking at the tail plugin, I find that the purpose of GaugeAverage obviously is to calculate the average of all (new) matches found between to invocations. This works, because in utils_tail_match:96 (i.e. when submitting the value) values_num is reset to 0.
The curl plugin lacks such a reset. So it doesn't calculate the average value of all matches found on the page. Rather, it calculates (and submits) the average of all values found since startup.