Enapter API datasource plugin helps to visualize and analyze devices data from Enapter Cloud with the help of Enapter HTTP API.
To visualize the device telemetry, you need to declare which data you want using YAML. A basic query looks like this:
telemetry:
- device: YOUR_DEVICE
attribute: YOUR_TELEMETRY
To get more info about the query language check out the Enapter Developers docs.
- Using the config option:
allow_loading_unsigned_plugins = enapter-api
- Using the env var:
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=enapter-api
Once the plugin is installed and allowed to be loaded, a new datasource should be created:
- Use Grafana web UI to create a new
datasource
of type
enapter-api
. - Make sure
Enapter API URL
field value is set tohttps://api.enapter.com
(default). - Set
Enapter API token
field value to the value of your API token. - Save the changes.