This repo contains the following Enapter Grafana plugins:
- Enapter API Datasource — Visualize and analyze devices data from Enapter Cloud and Enapter Gateway.
- Enapter Commands Panel — Send commands to devices integrated into Enapter EMS.
This setup used when your local grafana setup connects to Enapter Cloud for Data visualization and commands.
- Proceed to the token settings page in Enapter Cloud to issue a new API token if you do not have one.
- Use your Enapter API token to run the Grafana Docker image with plugins already installed:
docker run \
--env ENAPTER_API_TOKEN=<YOUR_ENAPTER_API_TOKEN> \
--rm \
--interactive \
--tty \
--publish 3000:3000 \
enapter/grafana-plugins
- Proceed to
http://127.0.0.1:3000
.
In case you are running Enapter Gateway 3.0, you can enable Grafana for creating custom dashboards which can be shown on external screens, for example TV, operator PC, etc.
To run grafana
- Connect over SSH to your gateway under
enapter
user
- Edit
docker-compose.yaml
file
sudo nano /user/etc/docker-compose/docker-compose.yml
- Uncomment lines so config looks like this
services:
grafana:
user: root
ports:
- '0.0.0.0:3000:3000'
env_file: /user/etc/enapter/enapter-token.env
environment:
- 'ENAPTER_API_URL=http://10.88.0.1/api'
# NOTE: Making Commands Plugin support Platform V3 is on the way.
- 'DISABLE_ENAPTER_COMMANDS_PANEL_PLUGIN=1'
volumes:
- /user/grafana-data:/var/lib/grafana
image: enapter/grafana-plugins
- Save changes and exit with CTRL+X shortcut
- Restart
docker-compose
sudo systemctl restart enapter-docker-compose
- Open web browser and navigate to http://gateway_ip:3000 or [http://enapter-gateway.local:3000]
- Use default login
admin
and passwordadmin
to log in to Grafana.
To use the Enapter Grafana plugins in your existing Grafana installation you need to extract the packaged plugins into the Grafana plugins directory.
The path to the plugin directory is defined in the Grafana configuration file.
Let us assume that the path is /var/lib/grafana/plugins
(the default on
Linux). Then to install plugins:
- Go to the Releases web page.
- Download the packaged plugins (
enapter-grafana-plugins.tar.gz
). - Unarchive and extract all the directories from the downloaded file.
- Move all the extracted directories into
/var/lib/grafana/plugins
. - Make sure the files are owned by
grafana
user.
You will need the following tools to develop plugins:
docker
make
To start a local Grafana instance with plugins installed run:
make grafana-build grafana-run