Installation¶
This guide covers installing the Micromegas Grafana datasource plugin.
Prerequisites¶
- Grafana: Version 9.0 or later
- Micromegas Analytics Server: flight-sql-srv running and accessible
- Authentication Credentials: API key or OAuth 2.0 client credentials
Installation Methods¶
Option 1: From Release (Recommended)¶
-
Download the latest plugin release from GitHub:
-
Extract to your Grafana plugins directory:
-
Set proper permissions:
-
Restart Grafana:
-
Verify installation:
- Navigate to Configuration → Plugins in Grafana
- Search for "Micromegas"
- Plugin should appear in the list
Option 2: Build from Source¶
Development Setup
This method is recommended for development or if you need to customize the plugin.
-
Clone the repository:
-
Install dependencies:
-
Build the plugin:
-
Build backend binaries (Go):
-
Link plugin to Grafana:
-
Restart Grafana (see commands above)
For detailed development instructions, see DEVELOPMENT.md.
Option 3: Docker with Plugin¶
If running Grafana in Docker, mount the plugin directory:
# docker-compose.yml
version: '3'
services:
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- ./micromegas-micromegas-datasource:/var/lib/grafana/plugins/micromegas-micromegas-datasource
environment:
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=micromegas-micromegas-datasource
Unsigned Plugin
During development, you may need to allow unsigned plugins with:
Verify Installation¶
- Open Grafana (default: http://localhost:3000)
- Navigate to Configuration → Plugins
- Search for "Micromegas"
- Plugin should be listed as installed
Next Steps¶
Once installed: