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

87 Коммитов

Автор SHA1 Сообщение Дата
Dan McKinley 13a78b6844 tcp repeater working. much improved, nonpolling, nonspawning tests 2015-06-19 14:39:06 -07:00
Steve Mardenfeld e2aec69a89 add size to set 2015-05-12 10:51:30 -07:00
Patrick Koch 917a3e4276 Backend key name sanitization can be controlled with config flag
This reverts commit 0eb2517b04.
2015-02-06 19:00:57 +00:00
Patrick Koch 0c80706a6e Merge pull request #470 from shaylang/pr_155_take2 2015-02-06 18:59:49 +00:00
Sam Roberts e74872cb91 Fix prettyprint option for console backend
Pretty was using an invalid invocation of util.inspect(). Perhaps it was
valid pre-v0.10, but inspect now takes an options object.
2014-11-03 21:59:19 -08:00
shaylang 0eb2517b04 Metric name sanitization moved to graphite backend. it is now the responsibility of each backend developer to take care for sanitization 2014-09-23 18:43:08 +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
Anton Rudeshko d47e6d71d1 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-09-22 17:34:37 +03:00
Anton Rudeshko 2006226adf Removed unused variable 2014-09-22 17:34:37 +03: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
Anton Rudeshko be056c5cb2 Removed unused variable 2014-07-28 18:53:17 +04:00
Michal Bryc 74afe104e8 Add missing space to console.log message about flushing stats. 2014-03-25 09:40:24 -07:00
till 429d365ded Enhancement: consume logger in graphite and repeater backends 2013-12-07 00:12:22 +01:00
Jos Boumans fe6632a5ad * whitespace 2013-08-21 16:12:24 -07:00
Jos Boumans 030c1f997c * merge conflict 2013-08-21 16:10:26 -07:00
Aaron Suggs ca3ab5c2ec Merge branch 'master' into optional_counts
Fixed merge conflict for new & legacy namespaces

Conflicts:
	backends/graphite.js
2013-08-02 12:06:13 -04:00
Jos Boumans c87b0a1c3e * support a global suffix for all stats 2013-07-17 21:18:49 -07:00
drowe 0e19c41f53 add jshint comment and do a little cleanup 2013-05-15 21:44:22 +00:00
Brian Hatfield bc6146fc08 Remove statsCached from console backend 2013-04-10 23:48:22 -04:00
draco2003 54ab8a5c43 Logging is for debug mode 2013-03-02 03:51:27 +00:00
draco2003 f968b2347e OCD 2013-03-02 03:45:36 +00:00
draco2003 e36bc53554 Just join once. 2013-03-02 03:44:40 +00:00
draco2003 0466349747 pulled out the wrong set 2013-03-02 00:28:19 +00:00
draco2003 dcf0620da1 remove duplicate code, and fix global leak 2013-03-02 00:19:33 +00:00
draco2003 ec4056e507 Remove extra Object.keys check in the timer_data loop 2013-02-28 20:57:23 +00: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
drowe ef98c5142a update to be able to merge 2013-02-12 02:07:44 +00: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
Yarek T 54086c61c2 Use Logger for repeater and don't scream if debug is off 2013-02-08 23:26:11 +00:00
Yarek T d374de667d Update backends/repeater.js 2013-02-07 23:12:24 +00:00
Yarek T a636fc2383 Catch DNS errors from UDP socket
If repeater is used with hostnames rather than IPs
a DNS resolution error crashes statsd server.
If you have a chain of statsd servers configured
to repeat data down the line this has the potential
to bring down the entire chain.

Attaching an error handler stops dgram socket from
throwing an exception and instead logs to console
2013-02-06 13:40:18 +00: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
Daniel Schauenberg 4379e46a5b use the logger module in the graphite backend 2013-01-17 14:32:08 +01: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
david raistrick 9fef3161f4 add a bit more debug output - sets, numStats 2013-01-04 19:04:07 -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
NachoSoto be15f48a2d Another global leak 2012-12-16 23:37:36 +00:00
Dan Rowe f9e591bcf5 remove last_ prefix to avoid admin 'stats' match 2012-12-12 08:09:25 -05:00
Dan Rowe fa0b5cf086 Line up concats 2012-12-11 22:48:43 -05:00
Dan Rowe 4f7d31346e Add two addtional graphite backend metrics 2012-12-11 22:44:42 -05:00
Dan Rowe d727054d04 Use counter_rates in graphite backent 2012-12-11 22:15:13 -05:00
Tim Bunce a73a459c59 Avoid many redundant string concats in graphite backend 2012-12-11 05:58:11 -06:00
Daniel Schauenberg 301764a799 Merge branch 'master' into configurable-metric-namespace
Conflicts:
	backends/graphite.js
2012-11-24 22:33:24 -05:00
Daniel Schauenberg 2546ee6263 add a statsd metrics hash which is also passed to the backend
this only holds the metrics processing time for now but can be used for other
metrics which are not fit to be added to the preexisting statsd metric values.
2012-11-11 17:44:54 -05:00
Daniel Schauenberg bd03104a3d Merge branch 'master' into extracted-metrics-processing 2012-11-11 16:42:41 -05:00
Eric Saxby f1206e6632 Repeater can be configured for udp4 or udp6 2012-11-03 15:25:41 -07:00