Commit graph

27 commits

Author SHA1 Message Date
Gavin M. Roy
f671b7029c Change batch submission logic
- Submit batches serially while the count of buffered measurements exceed a configurable threshold (minimum triggered batch size). Batches can be larger than this value (maximum batch size)
- If the there are measurements in the buffer but the threshold is not met after N seconds (60 by default), submit a batch that is less than minimum triggered batch size.
- rename sprockets_influxdb.set_submission_interval to sprockets_influxdb.set_timeout
- Add new sprockets_influxdb.set_trigger_size
- Move from a single periodic callback object to adding a timeout to the ioloop
- Update tests to work with the new structure
- Add more detailed dubugging information
2016-11-09 15:50:27 -05:00
Gavin M. Roy
7405312a5e Make tagging the hostname optional 2016-10-13 21:13:49 -04:00
Gavin M. Roy
f6a9b2071a Actually drop the metric when not enabled 2016-10-13 19:42:51 -04:00
Gavin M. Roy
b7ada3911c Change logging level when not enabled 2016-10-13 19:24:34 -04:00
Gavin M. Roy
ac7d886f11 Add some controls for operational tuning
- Add a flag to disable submission
- Add more environment variables for configuration
- Add a maximum buffer size that discards metrics when there are too many
- Remove correlation-id fields
2016-10-13 18:52:17 -04:00
Gavin M. Roy
3eea44dfef Allow a measurement timestamp to be externally set 2016-09-26 14:46:53 -04:00
Gavin M. Roy
4548295995 Python 2.7 compatibility 2016-09-23 11:40:23 -04:00
Gavin M. Roy
ead27c3942 Submit measurements one at a time for a rejected batch
Better edge case exception handling
2016-09-23 11:32:28 -04:00
Gavin M. Roy
1affb16eb6 Have a default content-length for responses without one 2016-09-14 12:18:45 -04:00
Gavin M. Roy
98781c101d Move to millisecond precision 2016-09-14 01:27:55 -04:00
Gavin M. Roy
f4245531b7 Remove the import for ietfparse 2016-09-14 00:48:29 -04:00
Gavin M. Roy
815949458b Remove content_type tag for now 2016-09-14 00:44:49 -04:00
Gavin M. Roy
821b80291b python2/3 compatibility fix 2016-09-14 00:32:16 -04:00
Gavin M. Roy
b73679c57a Rework line protocol marshalling and more
- Rework how the line protocol is marshalled and support the various data types.
- Remove the accept tag
- Strip down content_type to the ``type/subtype`` format only
- Make ``correlation_id`` a field value and not tag
- Change the precision to second precision, per the InfluxDB docs (use the most
    coarse precision for better compression)
2016-09-14 00:27:05 -04:00
Gavin M. Roy
7fee1a1c83 Bump the version 2016-09-13 22:02:49 -04:00
Gavin M. Roy
9ba7a5e82c Add some exception handling just in case 2016-09-13 22:02:21 -04:00
Gavin M. Roy
a22c66fda5 Fix response header parsing in python3 2016-09-13 22:00:12 -04:00
Gavin M. Roy
080a480ff7 Add content_length, content_type, and accept values 2016-09-13 21:49:58 -04:00
Gavin M. Roy
db3aa34cec Match on host as well 2016-09-13 20:56:17 -04:00
Gavin M. Roy
6c2bbb93c0 urllib not required 2016-09-13 20:55:15 -04:00
Gavin M. Roy
a9e5c99599 Dont use reverse_url to get the endpoint pattern in the mixin 2016-09-13 20:54:39 -04:00
Gavin M. Roy
4223b155a6 Pass in the request arguments 2016-09-13 20:10:36 -04:00
Gavin M. Roy
b46e1ceb4a Swallow assertion errors from tornado.web.RequestHandler.reverse_url 2016-09-13 20:03:36 -04:00
Gavin M. Roy
f8cc9c7c28 Bugfix for the Periodic callback 2016-09-13 18:12:37 -04:00
Gavin M. Roy
dc32d0089e Fix the broken tests (INFLUX_ -> INFLUXDB_) 2016-09-13 16:15:52 -04:00
Gavin M. Roy
87c52debfc Remove the CURL option 2016-09-13 16:10:19 -04:00
Gavin M. Roy
8a766aee8b Move to a stand-alone module 2016-09-13 11:26:37 -04:00
Renamed from sprockets/clients/influxdb/__init__.py (Browse further)