Grafana
Grafana is well-known open platform for beautiful analytics and monitoring.
Data
- It’s recommended to exchange data with Grafana either via InfluxDB or via Prometheus.
- After database notifier creation, EVA ICS immediately starts sending metrics to the specified database.
- Create data source in Grafana.
- EVA ICS item metrics automatically appear in Grafana and ready to be selected.
- To put current item state on Grafana dashboard (e.g. to gauge), use last value, e.g. for InfluxDB:
SELECT last("value") FROM "sensor:env/temp1"
Controls
Custom UI
You can develop any custom EVA ICS UI and then put it into iframe on Grafana dashboard via Grafana AJAX Plugin.
- Install EVA JS Framework
- Develop custom web UI and put it into /opt/eva/ui folder
- Install AJAX plugin:
grafana-cli plugins install ryantxu-ajax-panel
systemctl restart grafana-server
- Create new visualization in Grafana and embed your custom web UI via iframe.
HMI Block UI
- Install EVA HMI Block UI:
cd /opt/eva/ui
mkdir -p apps
cd apps
git clone https://github.com/alttch/eva-hmi-block_ui.git
- Follow HMI Block UI documentation and configure it / create interface pages.
- Install AJAX plugin:
grafana-cli plugins install ryantxu-ajax-panel
systemctl restart grafana-server
- Create new visualization in Grafana and embed your custom web UI via iframe. Look HMI Block UI embedding documentation section for example.
Custom resources
To put custom resource on dashboard (e.g. chart from private local network or camera image), use AJAX plugin together with SFA PVT.