Skip to content

Self-hosted Grafana integration with Edge Analytics

Requirements for manual setup

  • Grafana OSS 9.x.x
  • Docker 20.10+ (linux)

Getting Grafana up and running (Linux only)

First install docker if you have not done so, following this.

  1. On a terminal you can simply type:
docker run -d -p 3000:3000 --name=grafana \
   -e "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=system73-3dtopology-panel,system73-3dglobe-panel" \
   -e "GF_INSTALL_PLUGINS=marcusolsson-json-datasource, https://cdn.s73cloud.com/grafana-plugin/system73-3dtopology-panel-1.1.3.zip;system73-3dtopology-panel, \
      https://cdn.s73cloud.com/grafana-plugin/system73-3dglobe-panel-1.1.3.zip;system73-3dglobe-panel" \
   grafana/grafana-oss:9.4.7
  1. Go to the browser and open the page http://localhost:3000. On the login page enter the default admin credentials User: admin, Password: admin
  2. For increased security Grafana prompts for setting a new admin password, please do so or skip it.

Configuring the required datasource

To integrate with the Edge Analytics API Grafana needs a plugin that is able to consume JSON APIs. There are many plugins available to do so but the plugin JSON API Data Source for Grafana is officially maintained by Grafana Labs and it perfectly covers our needs.

The plugin was already installed with the docker command.

  1. Navigate to the Configuration > Plugins section. Configuration > Plugins
  2. Search for the term “JSON API”, you should select the plugin developed by Marcus Olsson. JSON API Plugin
  3. Click on the Create a JSON API data source button. Create datasource
  4. Configure the data source with the following values:

Datasource setup 5. Click on the Save & test button (ignore the warning message) and click on the Back button.

Importing Edge Analytics dashboards

You can import the Edge Analytics dashboards that we have made available on https://github.com/System73/edge-analytics-grafana-setup:

Note

To get the benefits from the Advanced Dashboard you need to have an Edge Analytics account with the Advanced Tier enabled.

To import a dashboard:

  1. Click on the sidebar’s Dashboards > Import Dashboards > Import
  2. You can either upload the dashboard file or simply copy & paste the file context. Since we are using a container without specific host-mounted volumes it is better to simply copy its content. Import via JSON
  3. Click on the Load button
  4. You can choose the dashboard uid, tittle, folder as you want but make sure to select the System73 Analytics as the dashboard datasource in the drop-down menu. System73 Analytics datasource

  5. Click on the Import button

  6. After that you just need to select the correct region and the Edge Intelligence Id that you have been assigned. Edge Analytics customer id
  7. Success! Edge Analytics dashboard

Feedback

If you have any feedback or suggestions, we welcome your input!

Please open an issue using the GitHub Issues feature to share your thoughts and help us enhance the user experience.


This section was last updated 2024-02-01