-
Notifications
You must be signed in to change notification settings - Fork 31
Add InfluxDB Line Protocol Support, and Add endpoint for JSON #18
base: master
Are you sure you want to change the base?
Changes from all commits
4988652
8dd8122
8256267
c12964e
fe2d812
fde87e8
d9024e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,17 @@ | ||
| server: | ||
| port: 5999 | ||
| appRoot: "/bucky" | ||
| # If https options are set then bucky will also listen on https | ||
| # https: | ||
| # port: 5599 | ||
| # See full list of options at: https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener | ||
| # options: | ||
| # key: | ||
| # filePath: "ssl/key.pem" | ||
| # cert: | ||
| # filePath: "ssl/cert.pem" | ||
| # If the following is set to true then bucky server will not run in http mode | ||
| # httpsOnly: true | ||
|
|
||
| statsd: | ||
| host: 'localhost' | ||
|
|
@@ -18,7 +29,7 @@ influxdb: | |
| password: 'root' | ||
| use_udp: false | ||
| retentionPolicy: 'default' | ||
| # Acceptable version are: '0.8' and '0.9' | ||
| # All version other than '0.9' will default to '0.8' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is kind of odd. It should probably error if you try to enter a value other than '0.8' or '0.9'
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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. |
||
| version: '0.9' | ||
|
|
||
|
|
||
|
|
@@ -32,7 +43,7 @@ modules: | |
|
|
||
| collectors: | ||
| # Uncomment the modules that you'd like to use | ||
| # - ./modules/collectionLogger | ||
| - ./modules/collectionLogger | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason for turning this on by default?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the last PR I sent you I commented out all of the collectors because the log showed errors when trying to connect to databases that weren't set up. I'd have to double check but I believe I also received errors when no collectors were available. I thought it would be best to have the logger for the initial setup so that end-users won't receive errors, and they'll also be able to verify that the endpoint is being reached before adding database config. I can comment this out again if you'd like. |
||
| # - ./modules/statsd | ||
| # - ./modules/openTSDB | ||
| # - ./modules/influxdb | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.