2 minute read
The new umh-datasource-v2 plugin for Grafana mimics an ISA95-compliant data model, but still using our old database model. This tutorial will guide you through configuring and using the plugin.
In Grafana, navigate to the Data sources configuration panel.
Scroll to the bottom of the list and select datasource-v2
. Don’t worry about the Unsigned
error message, as long as you have followed our tutorials to setup the united manufacturing hub.
Insert all the correct configuration:
http://united-manufacturing-hub-factoryinsight-service/
.factoryinsight
.Basic xxxxxxxx
.Press Save & test
.
When creating a new panel, select datasource-v2
from the Data source drop-down menu. It will then fetch the resources from the database. The loading time may depend on your internet speed.
Select the resources in the cascade menu to build your query. DefaultArea
and DefaultProductionLine
are placeholders for the future implementation of the new data model.
Only the available values for the specified work cell will be fetched from the database. You can then select which data value you want to query.
Next you can specify how to transform the data, depending on what value you selected.
For example, all the custom tags will have the aggregation options available:
Select the right visualization type in the upper right corner and hit Apply to save you new panel.
Now you have set up our new datasource plugin and are able to query data from the old database model in a more ISA95-compliant way. Note that this is just a preview of what the future implementation of the Historian functionalities and ISA95 data models (more on that in the blog article) will be.
Keep in mind that this plugin is still in development, and could have some bugs. If you encounter any problem, please feel free to open an issue on our GitHub repository or ask for help in our Discord server