Api token:


Use the grafana-cli tool to install Mapgl app from the commandline:

grafana cli --pluginUrl <copy .zip file link address here> plugins install vaduga-mapgl-app

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.

After installing the plugin, set your Api Token and Port (by default: 8089) in Grafana Mapgl app plugin settings to run built-in webrtc signaling server for coords data replication.

For metric updates with Grafana Live and for data replication, you'd need to run Grafana behind a reverse proxy.

In your NGINX configuration file inside http section, add the following:

# this is required to proxy Grafana Live and Mapgl-app signaling server WebSocket connections.
map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}

upstream grafana {
  server localhost:3000;
}

server {
  listen 80;
  root /usr/share/nginx/html;
  index index.html index.htm;

  location / {
    proxy_set_header Host $http_host;
    proxy_pass http://grafana;
  }

# Proxy Grafana Live WebSocket connections.
  location /api/live/ {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $http_host;
    proxy_pass http://grafana;
  }

  location /ws {
      proxy_pass http://localhost:8089; #### <--- Api port from Mapgl-app settings
      proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
}
}