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.
Telegraf SCADA input
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
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).
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.
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.
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
Telegraf's own influxdb_v2 or http output points at the gateway. Its inputs, such as host metrics, SNMP, Docker or MQTT, become tags.
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.
When an agent stops sending, its tags turn bad after the stale limit and good again when it comes back.
The operator role cannot make or change connections or tags, and revoking the key stops the agent at once.
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
| Setting | What it does | Default |
|---|---|---|
| Name | Up to 80 characters, unique among the module's connections. | None |
| Enabled | A 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
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
Other ways in
Tell us about your plant and what you run today, or what you want to build on it. We answer in plain language.