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

79 Коммитов

Автор SHA1 Сообщение Дата
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
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
Daniel Schauenberg d2bfdf9552 Merge branch 'master' of https://github.com/draco2003/statsd into extracted-metrics-processing 2012-11-03 18:23:54 -04:00
Daniel Schauenberg e37c952619 making the repeater backend ipv4 only again
some people reported problems with it, so we have to look into a better
configurable solution for this.
2012-11-03 16:50:11 -04:00
Dan Rowe 953063a2c6 Merge remote branch 'upstream/master'
Conflicts:
	backends/graphite.js
Merge with etsy/master
2012-10-31 17:58:48 -04:00
Daniel Schauenberg 3edcf083e8 Merge pull request #177 from draco2003/simplify-thresholds
Simplify threshold calculation
2012-10-26 20:52:05 -07:00
Thomas Merkel 86bbcba5e9 Fix ipv6 typo ... 2012-10-19 18:03:24 +03:00
Thomas Merkel ac0d55872d enable ipv6 support 2012-10-19 17:51:26 +03:00
Dan Rowe 922e9e58c5 Simplify threshold calculation 2012-10-18 21:06:05 -04:00
Dan Rowe 1cacf7b2a3 counter to counters for consistency 2012-10-15 00:21:52 -04:00