IMD SolutionComputing LibraryShop main store

Comparison

Ignition to InfluxDB: REST, module or historian with SQL

Edge computing and IIoT Published 6 min read

Short answer

Ignition's Tag Historian and transaction groups write through JDBC connections, and InfluxDB offers only an HTTP write endpoint, so there is no standard history path between them. Choose gateway-side REST writes, a dedicated third-party InfluxDB module, or keep the historian on a supported relational database such as PostgreSQL or MySQL. A working live display proves tag acquisition, not a stored sample.

On this page
  1. Why the historian cannot open InfluxDB directly
  2. The working routes compared
  3. What a working live display proves
  4. Qualify the path before you build it
  5. Worked example: sample volume picks the route
  6. The decision for each case
  7. Questions asked

Ignition has no standard history path into InfluxDB. The Tag Historian and transaction groups both store through JDBC database connections, while InfluxDB's documented write interface is an HTTP endpoint that takes line protocol, so neither feature can open it as a database. Three routes work: gateway-side REST writes, a dedicated third-party InfluxDB module, or keeping the Tag Historian on a supported relational database such as PostgreSQL or MySQL, with an MQTT-plus-Telegraf variant of the first. This comparison shows what each route makes you own, runs the sample-volume arithmetic that chooses between them, and separates tag acquisition from storage, because a working live display proves the first and never the second.

Why the historian cannot open InfluxDB directly #

The Tag Historian module turns a SQL database into a time-series tag historian, and its documented database support covers Microsoft SQL Server, Oracle, MySQL, MariaDB and PostgreSQL, plus any database with a JDBC driver. Transaction groups connect the same way; what separates the two features is what they store, not how they reach the store, which the Ignition tag historian versus transaction groups comparison covers in detail. InfluxDB sits outside this model: its write endpoint receives line protocol over HTTP, with options passed as query parameters and authentication carried in standard HTTP headers, and no JDBC driver stands in front of it. A gateway database connection therefore cannot be created, and without a connection there is nothing for a history provider or a transaction group to target.

A JDBC driver alone would still not settle it. The documentation for the IoTDB time-series database, for instance, limits its JDBC driver to the Transaction Groups module and states it is not applicable to the Tag Historian module, because the historian must create, partition and query its own schema through the connection. Read the documentation's any-database-with-a-JDBC-driver line as permission to test, not as a compatibility result.

The working routes compared #

Route What runs where What you own Choose it when
Tag Historian on SQL A history provider writing through a JDBC connection to PostgreSQL, MySQL, MariaDB, SQL Server or Oracle Database sizing, partitioning, backups History is used inside Ignition and InfluxDB is not mandated
Gateway REST writer Gateway code calling the HTTP write endpoint with line protocol Payloads, batching, outage buffering, retries, any read-back InfluxDB is mandated and only some tags must reach it
MQTT publish plus Telegraf The gateway publishes to a broker and Telegraf's MQTT consumer writes InfluxDB Topics, payload schema, broker and Telegraf operation A broker and Telegraf already run in the plant
Third-party InfluxDB module An installed gateway module with its own connection settings Version qualification, licensing, verification of writes, queries and buffering You want a supported product instead of custom code

Only the module route can feed Ignition's own trend charts from InfluxDB, and only if it registers an Ignition history provider rather than just writing, so make that your first evaluation question. The REST and MQTT routes are one-way: history inside Ignition keeps coming from a SQL provider while InfluxDB serves Grafana and other HTTP clients.

What a working live display proves #

A live component reads a tag, and the tag gets its value from the device connection or another tag source. Storage is a second path — the tag feeds history collection, which writes through the database connection or your REST writer — and the two fail independently, in both directions. Use this table before changing any database setting:

Observation Check first Fault boundary
Live value stale or bad quality Tag browser and the device connection Tag acquisition
Live value changes, no new rows or points Provider status, writer log, database response Collection or write path
Data exists, the trend is empty History binding, time range, tag path Query or display binding
Values land at the wrong time Source timestamp, payload precision, time zone handling Timestamp interpretation

One provider failure mode catches almost everyone once: tag history can disable itself after a gateway disconnect and stay disabled, so a recovered gateway does not mean recovered history — see why tag history disables after a gateway disconnect.

Qualify the path before you build it #

Before committing, in this order:

  • Record the Ignition version, the database or InfluxDB version, and the module version where one is involved; every compatibility statement holds only for the pair you actually run.
  • SQL route: create the gateway database connection, let the historian build its schema, then confirm one known tag, one value and one timestamp in the store itself. A passed connection test proves a connection, not a stored sample.
  • Module route: verify writes and history queries separately, establish what happens to samples during a database outage — buffered, resent or dropped — and confirm the license covers continuous deployment on the production gateway. A demo activation proves the integration, not production rights.
  • REST route: take the write endpoint, authentication method, timestamp precision and error responses from the documentation for the installed InfluxDB version, because the OSS 2.x and 3.x lines document different endpoints and headers.
  • MQTT route: fix the topic and payload schema, then test a broker outage deliberately; the queue behavior sets your real loss window.

Whatever route you pick, the recorder runs on the gateway, never in an operator session — a closed screen must not stop process history, and the write credential belongs in gateway configuration, out of any project script a designer can open.

Worked example: sample volume picks the route #

These are example inputs, chosen to show the method; rerun them with your own tag list. Take 250 fast tags stored every second and 750 slower tags every 10 seconds, all as timed samples:

  • fast group: 250 × 86,400 = 21,600,000 samples per day
  • slow group: 750 × 8,640 = 6,480,000 samples per day
  • total: 28,080,000 samples per day, or 28,080,000 ÷ 86,400 = 325 samples per second on average

One HTTP request per sample would mean 325 requests per second sustained, which is not a design, so batch instead: flushing every 5 seconds sends 325 × 5 = 1,625 lines per request, one request every 5 seconds, which the endpoint handles easily — but the script now holds a 5-second in-memory buffer, and a gateway restart costs those samples unless the buffer is persisted to disk. The same 325 samples per second is routine work for the Tag Historian writing partitioned SQL tables. Halving any group's sampling period doubles that group's volume, so the arithmetic scales linearly from your real counts.

The decision for each case #

InfluxDB is not mandated. Run the Tag Historian on a supported SQL database: PostgreSQL for a new store, MySQL or MariaDB kept where they already run. A slow store is a collection and sizing problem before it is an engine problem, so fix sampling periods and change thresholds first, give the database its own properly sized instance, and swap engines only when measurements still blame the engine. If Grafana dashboards were the real reason for wanting InfluxDB, Grafana queries a PostgreSQL historian directly, as this integration of Rapid SCADA 6 with Grafana via PostgreSQL shows.

InfluxDB is mandated. Qualify the dedicated module first — writes, history queries, outage buffering, license, version support. If it fails, write REST with batching for the tags that must be there, or publish MQTT and let Telegraf write when that stack already exists, and read how Telegraf's MQTT consumer can connect yet write no data to InfluxDB before trusting a connected consumer.

History is needed in both Ignition and Grafana. Keep the SQL historian for Ignition and add a gateway-side REST or MQTT feed of the same tags into InfluxDB: two recorders, one tag source, both on the gateway.

Live values move but history is missing. The tags are fine; work the write path — provider status, its database binding, the writer log, the database's own response — and check the store directly before touching the screen.

Questions asked

How do I keep REST retries from creating duplicate points in InfluxDB?

InfluxDB identifies a point by its measurement, tag set and timestamp, so resending an identical point replaces the stored one instead of adding a second row. Freeze the timestamp when the sample enters your queue and resend the identical line on retry; regenerating the timestamp at send time is what turns one network outage into shifted or doubled history.

Where does the Tag Historian record which database it writes to?

In its own schema: a driver table named sqlth_drv maps each history provider to a gateway database connection by name. Rename or delete that connection and the provider errors with a no-database fault even though the tags are fine, so check the driver table and the connection name before reinstalling anything.

Does the MQTT route need the Tag Historian module at all?

No. The transmission path reads live tags and publishes them to a broker, and storage, outage buffering and retention then belong to the broker, Telegraf and InfluxDB. That moves the failure surface: a full broker queue or a stopped Telegraf service loses history exactly as a broken JDBC connection would, so those components become the recorder you monitor.

Why does the historian store fewer points than the tag produces?

Because each tag's history setting chooses between timed sampling and change-driven storage with a deadband. A tag the controller updates many times a second can still contribute only occasional stored points while it sits steady, and floods points only when it actually moves. Size storage from stored points, not controller updates; the worked-example figures assume pure timed sampling.

Keep reading

  • Comparison

    Ignition tag historian versus transaction groups

    Use the Ignition tag historian for trends: it logs by exception against a deadband, compresses what it stores (around 54% average compression observed in the field), and partitions data into monthly tables. Keep transaction groups wherever an outside SQL consumer such as a PHP report reads a table you designed. Run both, and give each tag one home based on who consumes it.

    Edge computing and IIoT

  • Explainer

    Tag Historian vs SQL Bridge storage for a short-term trend database

    Use Tag Historian for plant-wide short-term trending because it stores narrow, on-change rows; keep SQL Bridge for PLC-to-database handshakes that need one wide row per group execution. Copy closed time partitions and the tag-mapping tables to the downstream historian, and prune only after the copy is confirmed.

    Edge computing and IIoT

  • Troubleshooting

    Why an Easy Chart pen shows no historian data

    A live tag with an empty Easy Chart pen is a historian write-path fault, not a tag fault. Clear the SQL Server no count option first; if it is already off, remove the trigger or procedure statement that makes the update return a result set, then let the store-and-forward cache drain.

    Edge computing and IIoT