Ben Burry
42d31f504a
Rename server init to 'start' to reflect reality
2014-09-16 00:26:47 +00:00
Ben Burry
747ae669f5
Convert listen server to loadable module, defaulting to udp
2014-09-15 21:33:32 +00:00
Anton Rudeshko
451b0aafe2
Removed unused parameter
2014-07-28 19:47:27 +04:00
Anton Rudeshko
b0bf253971
Fix `prefixStats` global variable leaking
...
`prefixStats` is leaked through stats.js and was in global scope of event emitter without failing graphite backend by pure accident.
Now it is read from config.
2014-07-28 18:58:30 +04:00
till
5ddd89f5a1
Enhancement: inject logger object into backend
...
* allows backends to use/consume the configured logger from statsd
* this is optional, backends who don't use it yet, should continue to work
* related: librato/statsd-librato-backend#17
2013-11-28 18:01:16 +01:00
Daniel Schauenberg
c2cc368753
measure and graph timestamp generation lag
2013-11-02 13:40:07 -04:00
Daniel Schauenberg
fc63eec299
extract packet parsing into helper module
2013-08-09 21:33:25 +02: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
Alex Whitman
182d558339
Set the process title to 'statsd'
...
Makes it easier to see which node processes are statsd when
looking at a process list.
2013-05-20 11:33:40 +01:00
drowe
0e19c41f53
add jshint comment and do a little cleanup
2013-05-15 21:44:22 +00:00
Dan Rowe
da85244556
Merge pull request #246 from carver/delete-group
...
Delete folder of metrics with: delcounters parent.path.*
2013-04-11 14:46:43 -07:00
Dan Rowe
3b1bbac63a
Merge pull request #280 from etsy/health_status
...
Add health status functionality, and handle SIGTERM more gracefully.
2013-04-08 09:27:14 -07:00
draco2003
4cd8167d96
Cleanup shutdown process
2013-04-08 15:43:33 +00:00
Daniel Schauenberg
1c32a6a673
use strict comparison for message length
2013-03-30 20:28:29 -04:00
Daniel Schauenberg
2c6503400f
don't show Bad Line warning for empty strings
2013-03-30 18:45:33 -04:00
Dan Rowe
d6a8a3b8a2
adding SIGTERM handling
2013-03-28 16:13:21 -04:00
Dan Rowe
8dadf9f232
Add health status functionality
2013-03-28 13:41:06 -04:00
Jason Carver
2d9b0de787
delete stats via management console: move to lib/, docs, generalize, tests
2013-03-22 07:26:58 -07:00
Jason Carver
d07b90ed67
delete all metrics in a folder using a command like: delcounters path.to.parent.*
2013-03-22 07:26:58 -07:00
Jason Carver
3852334c07
refactor stat deletion code, no functional changes
2013-03-22 07:26:58 -07:00
draco2003
7aa543bb55
update pr/232 to be merge-able
2013-03-14 02:24:23 +00:00
Alex Williams
d0cf5d21e0
Add configuration option to listen on an IPv6 address
2013-03-10 15:43:07 +00:00
Dan Rowe
6490919186
Merge pull request #259 from etsy/dont_split_all_packets
...
only split the packet if we need to
2013-03-08 12:27:59 -08:00
draco2003
ec0f46888e
Remove debugInterval in favor of console backend
2013-03-07 03:55:30 +00:00
draco2003
eab7dd6e0d
a little cleanup and reduce the trim calls
2013-03-04 22:57:40 +00:00
draco2003
69d4f6af3c
only split the packet if we need to
2013-03-02 04:52:28 +00: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
a99c8bd0d6
fix syntax
2013-02-19 23:24:18 -05:00
Daniel Schauenberg
51e30b6c92
fix indent
2013-02-19 23:22:54 -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
Daniel Schauenberg
817738fd09
Merge pull request #162 from Dieterbe/histogram
...
support histograms
2013-02-19 15:45:21 -08:00
Daniel Schauenberg
b4f4d4e6dd
Merge pull request #233 from keen99/p/debugupdates
...
add a bit more debug output - sets, numStats
2013-02-19 13:50:47 -08:00
Daniel Schauenberg
f0a9361c2d
make histograms work with the graphite backend
2013-02-19 15:22:14 -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
Ian Malpass
cc12534e3b
Adding support for sampling timers.
2013-02-01 10:43:50 -06:00
david raistrick
82bf445627
update debug log to new logger, make all debug prints use consistent DEBUG: prefix by removing the extra arg
2013-01-17 12:32:19 -05:00
david raistrick
4eb4b319f7
Merge branch 'etsymaster' into p/debugupdates
2013-01-17 12:31:52 -05:00
david raistrick
8ef73bc501
remove commented lines
2013-01-14 13:05:06 -05:00
Daniel Schauenberg
53aae0ad2c
Merge branch 'p/statsprefix' of https://github.com/keen99/statsd into fix-statsd-prefix
2013-01-14 14:07:13 +01:00
Daniel Schauenberg
781ef4190b
Merge pull request #212 from NachoSoto/patch-1
...
Fixing global leaks
2013-01-14 04:32:24 -08:00
david raistrick
9fef3161f4
add a bit more debug output - sets, numStats
2013-01-04 19:04:07 -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
1a9b87aa9e
Merge branch 'statsdrename2' into p/statsprefix
2013-01-02 12:20:25 -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
Devdas Bhagat
324267c527
This resolves an issue where a random TCP client goes away before a response
...
is sent from the server. The resulting exception was not handled, and would
cause node.js to crash.
The log file would show this message as a result:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: write ECONNRESET
at errnoException (net.js:642:11)
at Object.afterWrite [as oncomplete] (net.js:480:18)
2013-01-02 14:58:28 +01:00
Nacho Soto
371e3516de
Fixing global leaks
2012-12-15 18:17:44 -08:00
Dieter Plaetinck
93086913c0
merge branch 'master'
2012-12-09 15:19:17 -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