InfluxDB Sources
Novant can read data that other tools, such as Telegraf, have written
into an InfluxDB server on the building network. Each device in InfluxDB
becomes a source, and each of its fields becomes a point. InfluxDB
sources are polled by an edge node (version 0.61.12 or
later) and are read-only.
Only InfluxDB v2 is supported at this time.
Credentials
InfluxDB sources require a Token credential holding an InfluxDB API token with read access to the bucket. The token must be stored in the project’s credentials settings before it can be used by a source.
Sources
Each source is one device, identified by the value of the
name tag that Telegraf sets for each device. The address
format for InfluxDB sources is:
<ip>:<port>/[<org>/]<bucket>/<device>
Examples:
10.0.0.5:8086/ACME/Telegraf/AHU-1
10.0.0.5:8086/ACME/Telegraf/VAV-101
10.0.0.5:8086/plant_db/AHU-1
The org is the InfluxDB organization name, and is
required for InfluxDB 2.x since bucket names are only unique within an
organization. An address with only a bucket and device has no
organization.
The server must be addressed by IP address; hostnames are not supported.
Points
The address format for InfluxDB points is:
<kind>.<field>
Examples:
ai.Supply_Air_Temp
bi.Fan_Status
Where kind is ai for numeric fields and
bi for bool fields. String fields are not supported.
Escaping
Device names and field keys are free text in InfluxDB, so they are escaped in source and point addresses to keep them readable with no whitespace:
| Character | Escaped as |
|---|---|
A-Z a-z 0-9 - . |
As-is |
| space | _ |
_ |
~_ |
~ |
~~ |
| anything else | ~HH per UTF-8 byte (uppercase hex) |
For example, supply_temp becomes
supply~_temp and Temp °C becomes
Temp_~C2~B0C.
Polling
InfluxDB sources poll every 1min by default, and can be
set to 1min, 5min, or 15min. Each
poll reads the latest value of every field, so the poll frequency should
be no faster than the rate data is written to InfluxDB.
Discovery
InfluxDB sources support full discovery in Explorer. Scan an InfluxDB server by its IP address and a token, and Explorer discovers every device on the server as a source, across all buckets or a single bucket if specified. The organization is read from each bucket; if the token cannot read organizations, enter the organization name when scanning. Learn then discovers the points available from each device’s fields, with their type and current value.
Unlike BACnet, there is no network-wide scan: discovery starts from a known server address.