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
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
david raistrick
1a755c4bfd
add config (deleteIdleStats) to delete idle sets, gauges, timers - and a overall flag to set them all but allow individual overrides
...
update delete_counters unit test to test deleteIdleStats which covers all stat types
2013-01-04 18:24:51 -05:00
david raistrick
3f1a116cff
fix the deleteCounters bug where packets_received and bad_lines_seen are deleted - cannot ++ an undefined value..
...
adjust how we check for the stats counters to support the prefixStats patch - should apply safe with and without the patch
correct delete_counters unit test to not look for bad_lines_seen of NaN instead look for it set to 1
2013-01-04 16:48:00 -05:00
david raistrick
6ec854c63a
rework statsd's internal statistics to have a configurable prefix for each running copy of statsd - to prevent conflicts when multiple statsd send data to the same graphite - see https://github.com/etsy/statsd/issues/216
2013-01-02 12:18:35 -05:00
Dieter Plaetinck
7a9d9f3644
put all histogram bins in a "histogram" sub-hierarchy
2012-12-09 16:59:00 -05:00
Dieter Plaetinck
3fe3d43ae9
add tests for histograms
2012-12-09 15:28:18 -05:00
Daniel Schauenberg
32f1e4a481
Merge branch 'null_counters' of https://github.com/ReturnPath/statsd into nullcounters
2012-11-28 22:42:39 -05:00
Patrick McCoy
d0901b8ed0
Fixed the tests
...
Fixed the tests that were broken when changing to delete
2012-11-26 13:08:18 -07:00
Daniel Schauenberg
7f380848ff
Merge branch 'master' into nullcounters
2012-11-25 15:27:25 -05:00
Daniel Schauenberg
301764a799
Merge branch 'master' into configurable-metric-namespace
...
Conflicts:
backends/graphite.js
2012-11-24 22:33:24 -05:00
Patrick McCoy
1e66b4e95f
Tests for Delete Counters Config
...
Added tests for the delete counters config change.
2012-11-13 09:59:37 -07:00
Daniel Schauenberg
4cf1e6d206
add test for statsd_metrics
2012-11-11 17:51:24 -05:00