Historian / Data Storage
The Historian / Data Storage feature in the United Manufacturing Hub provides reliable data storage and analysis for your manufacturing data. Essentially, a Historian is just another term for a data storage system, designed specifically for time-series data in manufacturing.
When should I use it?
If you want to reliably store data from your shop floor that is not designed to fulfill any legal purposes, such as GxP, we recommend you to use the United Manufacturing Hub’s Historian feature. In our opinion, open-source databases such as TimescaleDB are superior to traditional historians in terms of reliability, scalability and maintainability, but can be challenging to use for the OT engineer. The United Manufacturing Hub fills this usability gap, allowing OT engineers to easily ingest, process, and store data permanently in an open-source database.
What can I do with it?
The Historian / Data Storage feature of the United Manufacturing Hub allows you to:
Store and analyze data
- Store data in TimescaleDB by using either the
_analytics_schemas in the topics within the Unified Namespace.
- Data can be sent to the Unified Namespace from various sources, allowing you to store tags from your PLC and production lines reliably. Optionally, you can use tag groups to manage a large number of tags and reduce the system load. Our Data Model page assists you in learning data modeling in the Unified Namespace.
- Conduct basic data analysis, including automatic downsampling, gap filling, and statistical functions such as Min, Max, and Avg.
Query and visualize data
- Query data in an ISA95 compliant model, from enterprise to site, area, production line, and work cell.
- Visualize your data in Grafana to easily monitor and troubleshoot your production processes.
More information about the exact analytics functionalities can be found in the umh-datasource-v2 documentation.
Efficiently manage data
- Compress and retain data to reduce database size using various techniques.
How can I use it?
To store your data in TimescaleDB, simply use the
_schemas in your Data Model v1
compliant topic. This can be directly done in the OPC UA data source
when the data is first inserted into the stack. Alternatively, it can be handled
in Node-RED, which is useful if you’re still utilizing the old data model,
or if you’re gathering data from non-OPC UA sources via Node-RED or
Data sent with a different
_schema will not be stored in
Data stored in TimescaleDB can be viewed in Grafana. An example can be found in the Get Started guide.
In Grafana you can select tags by using SQL queries. Here, you see an example:
SELECT name, value, timestamp
WHERE asset_id = get_asset_id(
get_asset_id is a custom plpgsql function that we provide to simplify the
process of querying tag data from a specific
asset. To learn more about our
database, visit this page.
For more information about what exactly is behind the Historian feature, check out our our architecture page.
What are the limitations?
- In order to store messages, you should transform data and use our topic
structure. The payload must be in JSON using
a specific format,
and the message must be tagged with
- After storing a couple of millions messages, you should consider compressing the messages or establishing retention policies.
Apart from these limitations, the United Manufacturing Hub’s Historian feature is highly performant compared to legacy Historians.
Where to get more information?
- Learn more about the benefits of using open-source databases in our blog article, Historians vs Open-Source databases - which is better?
- Check out the Getting Started guide to start using the Historian feature.
- Learn more about the United Manufacturing Hub’s architecture by visiting our architecture page.
- Learn more about our Data Model by visiting this page.
- Learn more about our database for
_historianschema by visiting our documentation.