Skip to main content

InfluxDB

The influxdb node-type streams simulation data in real-time to a InfluxDB time-series database using an UDP service and a plain text line protocol.

Each signal of a sample is mapped to one field. VILLASnode maps the signal names of the data source to InfluxDB fields.

See also: InfluxDB documentation

Prerequisites

This node-type does not have any special library dependencies.

Implementation

The source code of the node-type is available here: https://github.com/VILLASframework/node/blob/master/lib/nodes/influxdb.cpp

Configuration

server
string

A hostname/port combination of the InfluxDB database server.

key
string

The key is the measurement name and any optional tags separated by commas.

See also: InfluxDB documentation.

object (Input configuration (received by VILLASnode))
vectorize
integer
Default: 1

This setting allows to send multiple samples in a single message to the destination nodes.

The value of this setting determines how many samples will be combined into one packet.

Array of Hook Object (object) or Hook Name (string) (hook_list)
builtin
boolean (Builtin hook functions)
Default: true

By default, each node and paths has a couple of default hooks attached to them. With this setting the attachment of built-in hooks can be disabled.

object (Output configuration (sent out by VILLASnode))
{
  • "server": "string",
  • "key": "string",
  • "in": {
    },
  • "vectorize": 1,
  • "hooks": [
    ],
  • "builtin": true,
  • "out": {
    }
}

Example

node/etc/examples/nodes/influxdb.conf
nodes = {
influxdb_node = {
type = "influxdb"

server = "localhost:8089"
key = "villas"
}
}