Skip to content

Telegraf SCADA input

Bring a plant PC in with Telegraf.

Telegraf agents push their measurements to the gateway, and each series you choose becomes a tag. It is an add-on, quoted on top of the core.

How you connect it

From a Telegraf agent to live values.

  1. Add the agent

    Under Connections, add a Telegraf agent and give it a name. Nothing is dialled: the agent connects to the gateway. Set how long it may stay silent before its tags read bad (60 seconds unless you change it).

  2. Make an operator key

    The agent signs in with an API key that has the operator role, which lets it write values and nothing else. It cannot make or change connections or tags.

  3. Paste the configuration

    The connection's Set up the agent tab shows a telegraf.conf with the gateway's address in it. Telegraf's own influxdb_v2 or http output points at the gateway. Its inputs do not change.

  4. Choose the series

    Browse lists the measurements the agent sends. Each series you choose becomes a tag, with alarms, screens and history like any other.

What it does

What the Telegraf driver does for you.

Nothing to install on the agent

Telegraf's own influxdb_v2 or http output points at the gateway. Its inputs, such as host metrics, SNMP, Docker or MQTT, become tags.

Line protocol or JSON

The body may be InfluxDB line protocol or Telegraf's JSON, plain or compressed with gzip or deflate. The module reads both itself and has no third-party dependency.

A silent agent shows

When an agent stops sending, its tags turn bad after the stale limit and good again when it comes back.

A key that can only write values

The operator role cannot make or change connections or tags, and revoking the key stops the agent at once.

The other direction needs no module

Telegraf can read the gateway's values from the MQTT broker or from an event stream and pass them on to its own outputs.

Settings

What you set, and what it starts as.

The settings of a Telegraf connection
SettingWhat it doesDefault
NameUp to 80 characters, unique among the module's connections.None
EnabledA switched-off connection takes nothing.On
Stale after (seconds)How long the connection may go without any data before its tags read bad. 0 never, at most 86,400.60

What has been tried

As far as it has been tested, and no further.

Telegraf

The module has run against one real Telegraf, version 1.34, on the development machine. Other versions, other inputs, other writers of line protocol, an agent over https and many agents at once have not been tried. No plant has used it yet.

This is an add-on, quoted on top of the core.

Questions

Questions people ask.

Which Telegraf versions does it work with?

It has run against Telegraf 1.34. Other versions have not been tried.

Do I install anything on the plant PC?

No. Telegraf's own output points at the gateway, so the PC needs only Telegraf and a key.

Can anything else write to it?

Anything that writes InfluxDB line protocol could, but only Telegraf has been tried.

What happens when the agent stops?

After the stale limit, 60 seconds unless you change it, the tags it fed read bad, and they read good again when it sends.

Other ways in

Connect more than one kind of equipment.

Interested in learning more?

Tell us about your plant and what you run today, or what you want to build on it. We answer in plain language.