Add InfluxDB Line Protocol Support, and Add endpoint for JSON#18
Add InfluxDB Line Protocol Support, and Add endpoint for JSON#18JSMike wants to merge 7 commits intoHubSpot:masterfrom
Conversation
Update influx module to use line protocol for 0.9 Add warning logging to influx module when receiving a response from the DB Update syntax for server.coffee, remove parenthesis where not required Update version to 0.6
Update documentation
|
Added tag for v0.6.0 |
There was a problem hiding this comment.
This is kind of odd. It should probably error if you try to enter a value other than '0.8' or '0.9'
There was a problem hiding this comment.
This is for backwards compatibility. If a user updates (or re-downloads) BuckyServer and tries to use an old default.yaml the current defaulting will handle it gracefully, and BuckyServer will act as it did before the version option was added. If this is changed to throw an error then older default.yaml configurations for InfluxDB will become invalid. Unless we add logic to only allow passed values to be '0.8', '0.9', and default undefined to '0.8'. I'll work on that last option.
|
Hi @JSMike, thanks for the PR, please see the inline comments. |
|
Sure, I'm about to leave the office for the day, I'll look into these tomorrow. Thanks for the feedback. |
|
I've made the requested updates. The only item I didn't make changes towards is the collectionLogger being uncommented by default. |
Add filePath to https options in default.yaml Replace double quotes with single quotes in influxdb.coffee Update logic for loading https config, only load from file when filePath property exists
2ef3143 to
0d606d4
Compare
Update package.json to match tag Add version check for influxdb
|
Updated version to v0.6.2 |
|
@zackbloom Let me know how this looks. Thank you for your feedback. |
| Use to define the options for https. | ||
| key and cert are mandatory options, here is a full [list of all available options](https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener). | ||
| For all options that accept a buffer you can use the path to the file containing the option's data. | ||
| - `key:` {Object|String|Buffer} |
There was a problem hiding this comment.
in the example config below key is a sub-object of server.https.options. Here it is directly under server.https. Which is the right place in the hierarchy for it? Same question goes for cert.
There was a problem hiding this comment.
@edlerd key and cert are properties of options:
https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
options is the object passed into https.
|
This PR allows bucky-server to work fine on modern InfluxDB's (1.2.2 at least) as JSON protocol was dropped on 1.0 (https://docs.influxdata.com/influxdb/v0.9/write_protocols/json/) |
No description provided.