Sign inSign up

beetaone/influxdb

By beetaone

Updated almost 2 years ago

Image
0

164

beetaone/influxdb repository overview

InfluxDB

NameInfluxDB
Versionv2.0.1
DockerHubbeetaone/influxdb
AuthorsJakub Grzelak

Description

Write data to a selected InfluxDB bucket.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on beetaone platform:

NameEnvironment VariablestypeDescription
URLURLstringURL of your InfluxDB instance.
OrganizationORGANIZATIONstringOrganization name. Used to uniquely identify the bucket.
BucketBUCKETstringBucket name to write data to.
API TokenAPI_TOKENstringAPI token with Write permissions to the selected bucket.
Write PrecisionWRITE_PRECISIONstringSets the precision for the supplied time values (options: S, MS, US, NS).
Field KeysFIELD_KEYSstringList of comma (,) separated JSON keys, corresponding to the measurement data values. The same keys will be used as field names in InfluxDB.
Timestamp KeyTIMESTAMP_KEYstringJSON key of the timestamp. If not specified (left empty), then InfluxDB will generate timestamp for data.
Tag KeysTAG_KEYSstringList of comma (,) separated JSON keys, corresponding to the tag values. The same keys will be used as tag names in InfluxDB. Can be left empty if you don't have tags in the incoming data.
Measurement KeyMEASUREMENT_NAMEstringA static name to group the measured data by. If left empty, it will be generated automatically by concatenating the field names, using '_' as separator.
Example

If your incoming data looks like this

{
    "location": "warehouse_125",
    "version": "2021.06.05.5874",
    "pressure": 125,
    "temperature": 10,
    "created": 1632208639,
}

you might want to set the parameters to

FIELD_KEYS=pressure,temperature
TIMESTAMP_KEY=created
TAG_KEYS=location,version
MEASUREMENT_NAME=roomConditions
Set by the beetaone Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.

Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
INGRESS_HOSTstringHost to which data will be received
INGRESS_PORTstringPort to which data will be received

Dependencies

bottle==0.12.21
influxdb-client==1.35.0

Input

Input to this module is:

  • JSON body single object, example:
{
    "label-1": 12,
    "label-2": "speed"
}
  • array of JSON body objects, example:
[
    {
        "label-1": 12,
        "label-2": "speed"
    },
    {
        "label-1": 15,
        "label-2": "volume"
    }
]

Output

Output of this module is input data written to the InfluxDB bucket.

Tag summary

Content type

Image

Digest

sha256:6c0c79e12

Size

51 MB

Last updated

almost 2 years ago

docker pull beetaone/influxdb:v2.0.1