Integrate Ignition with Tiger Cloud
Connect Ignition SCADA to Tiger Cloud and store tag history
Ignition is a SCADA system used to connect data, design industrial systems, and monitor automated processes in real time.
This page shows you how to connect Ignition to your Tiger Cloud service to stream industrial data into Tiger Cloud.
Prerequisites for this integration guide
To follow these steps, you'll need:
-
These steps use Tiger Cloud, but the same approach applies to a self-hosted TimescaleDB instance.
- Your connection details.
- An Ignition instance with admin access
Create a Tiger Cloud service connection in Ignition
Section titled “Create a Tiger Cloud service connection in Ignition”- Sign in to the Ignition Gateway
Navigate your browser to the Ignition Gateway screen and sign in with an admin account. Open
Connections>Database Connectionsand selectCreate Database Connection +. - Select the PostgreSQL driver
Select
PostgreSQLas the driver (included in every standard Ignition install). - Configure the database connection
- Give the database connection a name.
- Add the
username,password, andconnection urlusing your Tiger Cloud service connection details. - Select
Create Database Connection.
- Verify the connection
Verify that the database connection was created and status is valid. If any errors appear, consult the Ignition manual.
Set up your Tiger Cloud service as a historian
Section titled “Set up your Tiger Cloud service as a historian”- Create a historian
On the Ignition Gateway, select
Services>HistoriansandCreate Historian +. - Select SQL Historian
Select
SQL Historian. - Name the historian and disable partitioning
Add a name for the historian, and select the Tiger Cloud service database connected in section 1 as the Data Source. Disable Partitioning.
- Verify the historian is running
Verify the new historian is enabled and running.
- Start data flowing into the historian
Before proceeding to the next section, make sure there is data flowing into the historian. This can be done by creating any tag and setting
History EnabledtoTrue. That will guarantee that the historian table is created.
Ignition will automatically create the table in Tiger Cloud service, but will not set it up as a hypertable. The following instructions can be performed within Ignition’s SQL Editor, the Tiger Console, or any other SQL editor.
Optimize for Ignition workloads
Section titled “Optimize for Ignition workloads”- Convert the auto-created historian table to a hypertableSELECT create_hypertable('sqlth_1_data','t_stamp',migrate_data => 'true',chunk_time_interval => 86400000);
- Optional: enable the columnstore and add a policyALTER TABLE sqlth_1_data SET (timescaledb.enable_columnstore = true,timescaledb.segmentby = 'tagid',timescaledb.orderby = 't_stamp DESC');SELECT add_columnstore_policy('sqlth_1_data', after => INTERVAL '7 days');
- Optional: add retention policySELECT add_retention_policy('tag_table', INTERVAL '1 year');
You have successfully integrated Ignition with Tiger Cloud.