Commit graph

10 commits

Author SHA1 Message Date
Ryan Mclean
bf59e1f174 Add install for statsd mixin
* Add `install` usage pattern for using mixin within Tornado app
* Strip down mixin and add collector class to do actual metric recording
* Re-add path prefixes for metric type and hostname
* Add configuration parameters to disable type and hostname prefixes
2016-07-18 15:40:44 -04:00
Dave Shawley
471adf5cb7 InfluxDBMixin: Move call to super.__init__.
`tornado.web.RequestHandler.__init__` calls
`tornado.web.RequestHandler.initialize` to initialize the object.
Sub-classes should be able to call our methods to tag metrics in
their `initialize` implementations.  For this to work we need to
set our internal attributes *BEFORE* we call `super.__init__`.
2016-03-21 11:15:05 -04:00
Gavin M. Roy
b66e059811 Implement collector/periodic callback 2016-03-10 15:45:50 -05:00
Dave Shawley
7339f80408 examples: is_future is in concurrent not gen. 2016-01-29 09:25:50 -05:00
Dave Shawley
81bfee6ec3 Expose set_metric_tag consistently.
Just a no-op on the statsd implementation.
2016-01-27 10:46:23 -05:00
Dave Shawley
64c136f635 InfluxDBMixin: Add test for set_metric_tag. 2016-01-27 10:35:35 -05:00
Dave Shawley
cd61f418a4 Add InfluxDB example. 2016-01-21 14:23:04 -05:00
Dave Shawley
6c903f4f40 Implement counters in StatsdMixin. 2016-01-19 11:01:01 -05:00
Dave Shawley
a125c4ddeb Implement timer metric in StatsdMixin. 2016-01-19 08:34:15 -05:00
Dave Shawley
b1b63644be Add statsd example. 2016-01-19 08:34:11 -05:00