This section describes how to configure connections to OPC UA Servers and selection of OPC UA variables to be accessible from Grafana and/or to log into the database.
To access cocnfiguration web GUI, open web browser, and navigate to the address http://localhost:4880
Here and further below
localhost is host name or IP address of the machine where ogamma Visual Logger is running.
Web GUI of the ogamma Visual Logger is optimized and tested for screen resolution 1920x1080 in full size mode, in Google Chrome and Microsoft Edge. GUI layout might be disrupted in other combinations of browse and screen resolution. If this becomes blocking issue for you, please report it at https://github.com/onewayautomation/ogamma-logger/issues.
Connections to OPC UA Servers.¶
To add new connection, in the left side panel, click on
In the opened dialog window edit connection details as required and click
Timeout is connection timeout in milliseconds. Checkbox
Active allows to turn on and off logging of variable values for this server to the database.
OPC UA Servers should be accessible from the host (or Docker container) where ogamma Visual Logger is running. In case when it runs in Docker container, you might need to add option
extra_hosts in file
docker-compose.yml to resolve host name of the OPC UA Server to IP address.
Default value in the
Endpoint URL field (
opc.tcp://opcuaserver.com:48010) points to the Demo OPC UA Server, which runs in the host avaiable from the Internet, but it is protected by firewall and allowed for connections only from IP addresses included into whilelist. If you want try to connect to it, please contact Support with IP address of your client (not local address like 192.168.x.x.m but the address how it is seen from the Internet, which you can determine by using sites like https://ipstack.com/)
To connect to the OPC-PLC UA Server installed and running in the docker container (Endpoint URL
opc.tcp://opcplc:50000), please turn on check-box
Secure mode, because it is configured to allow only secured connections.
Currently web page is refreshed in order to refresh the
Address Space tree after adding/editing/deleting of an entry for OPC UA Server connection.
Browsing OPC UA Server address space and selecting variables to log.¶
To browse OPC UA Server’s address space, expand server node. Then select one or more OPC UA Variable nodes which has numeric data type (those, for which value can be converted into
float data type, for example, Byte, Int16, Int32, float, double. Complex type values can be logged too, but they are not decoded, instead length of their body in bytes is used as a value.).
Once one or more OPC UA Variables are selected, the button
Log will be enabled. If you click on it, selected nodes will be used to create new records in the right side grid table.
If a record has field
Active checked and the field
Log to TSDB is checked, then its value will be monitored by ogamma Visual Logger, and written (logged) into the time-series database (PostgreSQL).
Read History from defines where data values should be read from when SimpleJson requests from Grafana are processed:
DB (database) or
UA (OPC UA server).
If data values should be read from OPC UA Server, then how it is read depends on value of the column
R means call Read service, and
H means call HistoryRead service.
Display Name is displayed on Grafana when variable is selected as a metric for SimpleJson data source:
Records in the
Logged Variables table can be edited and deleted, as well added manually.
The following below screenshot illustrates typical GUI with brief comments on available controls:
If you want to log data for hundreds or thousands of nodes, it might be time consuming to configure variables using the GUI. For those cases, you can prepare your data in Excel spreadsheet or other tools in CSV format, and then import into ogamma Visual Logger configuration database, table