4. Data Visualization
2 minute read
The next step is to visualize the data. This chapter is about the creation of a Grafana dashboard which is based on the Node-RED flow from the previous chapter. The dashboard will display the temperature readings and temperature warnings.
Creating a Grafana dashboard
Open Grafana by opening the Grafana popup and clicking on the open button and enter the secrets found in the popup.
Once you are in Grafana hover over the fourth icon in the left menu, dashboards, and click on + New dashboard.
Next we will configure the datasource-v2, to retrieve the data we earlier transformed in Node-RED. Click on umh-datasource and switch to umh-v2-datasource.
Go to Work cell to query and select under Select new work cell:
factoryinsight->Aachen->DefaultArea->DefaultProductionLine->testing
One can notice, that this is not the exact topic, set in the Node-RED flow
before. This due to our not yet finalized data model and not every part of
it is fully utilized yet. In the future, DefaultArea
and
DefaultProductionLine
will be replaced by actual values.
To select the temperature value, go to Value to query and select under Select new value:
tags->custom->temperature
.Click on Refresh Dashboard at the top right-hand corner, the graph will refresh and display the temperature data.
Next, you can customise your dashboard. On the right side are several options, such as specifying a unit or setting thresholds, etc. Just play around until it suits your needs.
Once finished making adjustments, click on the blue Apply button in the top right-hand corner to save the panel and return to the overview.
The next step is to display the temperature warnings. Click Add Panel at the top right to create an additional panel.
Repeat the steps discussed earlier, but this time, select TemperatureWarning instead of temperature under Value to query.
Instead of a time series chart to display the temperature warnings, select Stat on the right side.
Now you can again customize your panel and when you are done click on Apply.
Congratulations, you have created your first Grafana dashboard, and it should look something like the one below.
What’s next?
The next topic is Moving to Production where we will explain what it means to move the umh to a manufacturing environment. Click here to proceed.