Skip to content

Instantly share code, notes, and snippets.

@shantanoo-desai
Last active July 21, 2019 11:35
Show Gist options
  • Save shantanoo-desai/550b549e0ae31e6cc487b1c986e00a07 to your computer and use it in GitHub Desktop.
Save shantanoo-desai/550b549e0ae31e6cc487b1c986e00a07 to your computer and use it in GitHub Desktop.
Batch Uploader InfluxDB Configuration File
[local]
# Local Instance of InfluxDB
host = 'localhost'
port = 8086
database = 'CISS'
[cloud]
# Cloud Instance of InfluxDB
# NOTE: doesn't have to InfluxDB it could be
# any technology stack that you wish to upload
# data from the local instance
endpoint = 'your.influxdb.cloud.instance'
port = 8086
secure = false # true if you use HTTPS
username = 'username'
password = 'password'
database = 'cissCloud' # database name for the cloud instance
[CISS]
# break down your InfluxDB Query as configuration for the
# respective sensors/ sources
# QUERY: SELECT <fields of interest> FROM <measurement_name> WHERE <flag_field>=0 and <tag> LIMIT <number>
fields = ['accX', 'accY', 'accZ', 'magX', 'magY', 'magZ', 'gyroX', 'gyroY', 'gyroZ']
measurement = 'ciss'
limit = 10
[CISS.tags]
node = 'CISS1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment