Граф коммитов

80 Коммитов

Автор SHA1 Сообщение Дата
Daniel Schauenberg 9ece81e85b add a unit test for counters as floats
this is just to clarify that counters can be floats. This might not make sense
in the general case, but we are liberal in what we accept. And even if this
ends up being a problem, we at least have a unit test to document it.
2015-07-22 12:52:26 -04:00
Dan McKinley 13a78b6844 tcp repeater working. much improved, nonpolling, nonspawning tests 2015-06-19 14:39:06 -07:00
Dan McKinley 979c13479f refactoring tests 2015-06-19 11:20:45 -07:00
Dan McKinley ef8560baed cleaner config for test repeater server 2015-06-18 20:54:23 -07:00
Dan McKinley 7435d2cb5d removing superfluous test of fake statsd backend 2015-06-18 17:15:38 -07:00
Dan McKinley 4476744905 basic end-to-end test of repeater 2015-06-18 15:26:42 -07:00
Steve Mardenfeld e2aec69a89 add size to set 2015-05-12 10:51:30 -07:00
Patrick Koch 0c80706a6e Merge pull request #470 from shaylang/pr_155_take2 2015-02-06 18:59:49 +00:00
Adam Dubiel 8ddd61b34d Validate negative sampling 2014-10-27 14:35:11 +01:00
Ben Burry 6bfa42c9cd Merge pull request #461 from benburry/metric_count
Add metrics_received counter
2014-10-13 18:33:29 +01:00
Ben Burry e3c237f217 Add metrics_received counter
Similar to packets_received, but counts individual (good or bad) metrics lines
received
2014-10-13 17:18:16 +00:00
Ben Burry 41cd6b32eb Add crude test for input buffering on tcp server 2014-10-13 11:34:49 +00:00
shaylang 55be359068 merge from PR155 2014-09-22 17:34:37 +03:00
Mike Heffner c7e6421d1e Stat key name sanitization is now configurable at the top-level.
Setting keyNameSanitize to false pushes the requirement of sanitizing
key names to the backends. This permits backends that have less strict
character set requirements to take advantage of an expanded stat name
character set. The default behavior remains the same as collisions in
key name space are not handled if two different stat names map to the
same sanitized key name.
2014-09-22 17:34:37 +03:00
Ben Burry 6f7f566751 Add basic test for each of udp and tcp server module 2014-09-22 17:34:37 +03:00
Ben Burry 8e85af7b87 Add basic test for each of udp and tcp server module 2014-09-16 00:27:54 +00:00
genus 0ed6e39696 Don't allow histogram bins contain dots 2014-04-18 12:17:18 +04:00
Daniel Schauenberg 61c9607eee Merge pull request #376 from mheffner/feature/more_counter_stats
Add counter and sum of squares to timer stats
2014-04-15 11:52:30 -04:00
Alexey Ivanov 5acff30b1a tests: improved tests for lib/helpers 2014-02-22 22:54:32 -08:00
Alexey Ivanov 63fb16ceea lib/helpers: fixed is_valid_packet()
This commit introduces following changes:
 * Be liberal in what you recieve - do not rely on regexps for packet
   parsing but instead accept anything that can be parsed by JavaScript
   as a number e.g: +1e-17, -0511, 0xDEADbeef, etc
 * Accept both positive and negative counters with explicit / implicit
   sign
 * Provides more strict error checking then regexp, for example
   following strings match previously used '([\-\+\d\.]+' regexp:
   .
   .123.
   .\-+\0\+-.1-

Also while here added more tests.

Closes: #350 #357

Signed-off-by: Alexey Ivanov <SaveTheRbtz@GMail.com>
2013-12-31 02:29:53 -08:00
Mike Heffner 4223db8a19 Add "sum of squares" to the pre-calculated timer metrics.
Sum of squares (along with count and sum) can be used to do rapid
calculation of standard deviation/variance over an arbitrary number
of consecutive intervals [1].

[1]: http://en.wikipedia.org/wiki/Standard_deviation#Rapid_calculation_methods
2013-12-10 19:09:58 -05:00
Mike Heffner cd47d32c53 Add tests to verify percentile counts. 2013-12-10 18:21:58 -05:00
Daniel Schauenberg 450b868782 fixing tests 2013-12-03 17:29:18 -05:00
Taylor Lilley 80b9a0f72d Update helpers_tests.js for sets tests 2013-10-01 09:46:30 -07:00
Jos Boumans 030c1f997c * merge conflict 2013-08-21 16:10:26 -07:00
Daniel Schauenberg 53fd384d08 add more tests for metric types 2013-08-09 22:08:28 +02:00
Daniel Schauenberg fc63eec299 extract packet parsing into helper module 2013-08-09 21:33:25 +02:00
Dan Rowe b4c9adfc08 Merge pull request #311 from etsy/process_mgmt
Allow for setting the process title
2013-08-02 11:39:30 -07:00
Jos Boumans ea26e4763d * add tests for a global suffix 2013-07-17 21:19:02 -07:00
Dan Rowe 23aab12cd2 exclude the title test from running on Macs running node less than 10 2013-07-03 17:25:53 -04:00
Dan Rowe 7feafc664f Merge pull request #307 from etsy/fix_tests
cleanup two failing tests
2013-07-03 13:45:26 -07:00
Dan Rowe 87f4858a8b don't change value we are testing for, increase the time we wait to look for it 2013-07-03 16:33:00 -04:00
Dan Rowe 4541e11702 Allow for setting the process wtitle, or opting to let the os do it like previous versions 2013-07-02 14:33:26 -04:00
Dan Rowe 50d8525009 cleanup two failing tests 2013-06-28 17:21:09 -04:00
Daniel Schauenberg 045b1deee4 Merge pull request #200 from zwily/upper_percentiles
Support gathering "top" percentile statistics
2013-03-23 14:54:46 -07:00
Jason Carver 2d9b0de787 delete stats via management console: move to lib/, docs, generalize, tests 2013-03-22 07:26:58 -07:00
David Howell 76c13f03fa Changed test case to ensure sorting
Changed the test data in timers_multiple_times_even so make sure the
metrics are sorted before getting the median value. If the data was not
sorted, the median value would be 300 instead of 250.
2013-03-22 15:58:32 +10:30
David Howell 5c0ce673b6 Added median calculation to timer_data
Added median calculation to timer_data and associated test cases
2013-03-22 15:40:26 +10:30
Zach Wily f369dfade2 Support gathering "top" percentile statistics
Adds support for collecting statistics on top percentiles, instead of
the default bottom percentiles. You specify a top percentile by
using a negative number - so -10 will collect the top 10% of data. It
will emit: mean_top10, lower_top10, and sum_top10.

Using a negative number may seem hacky, but it's convenient and there
is a precedent - referencing an array from the end in some languages
can be done with negative indexes.
2013-03-16 10:58:01 -06:00
draco2003 7aa543bb55 update pr/232 to be merge-able 2013-03-14 02:24:23 +00:00
James Socol c583fc3c87 Remove numStats asserts. 2013-03-01 11:30:52 -05:00
James Socol 3eecd18d3c Add support for gauge deltas.
* Add tests for gauges and new gauge deltas.
* Add support for +/- prefix for gauge values to support modifying
  gauge values in-place.
2013-03-01 11:25:09 -05:00
Daniel Schauenberg 757359ad43 Merge branch 'master' of github.com:etsy/statsd 2013-02-19 23:25:16 -05:00
Daniel Schauenberg b4d597f46f Merge branch 'p/deletecounterstatsfix' of github.com:keen99/statsd into fix-statsd-internal-delete-counters
Conflicts:
	stats.js
2013-02-19 23:21:39 -05:00
Dieter Plaetinck 2d256e279b clarify histogram graphite test: use a bin that actually includes the value 2013-02-19 18:40:10 -05:00
Dieter Plaetinck 2ca3d215f6 implement graphite test for histograms 2013-02-19 18:18:55 -05:00
Daniel Schauenberg 3feedf2a44 Merge branch 'histogram' of github.com:Dieterbe/statsd into histogram-integration
Conflicts:
	backends/graphite.js
	exampleConfig.js
2013-02-12 14:33:59 -05:00
Dieter Plaetinck 7447b55724 bugfix: make sure histogram metric path is correct
also slight optimisation in the metric setting loop for timers
2013-02-11 18:23:32 -05:00
Ian Malpass cc12534e3b Adding support for sampling timers. 2013-02-01 10:43:50 -06:00
Dieter Plaetinck 338fbd5d47 remove metric name sanitisation. this is a task for the backends 2013-01-14 10:46:43 -05:00