Skip to content

Instantly share code, notes, and snippets.

@javier
Last active May 15, 2024 15:53
Show Gist options
  • Save javier/46f34c1b6f8f1072d630b02f92a95d30 to your computer and use it in GitHub Desktop.
Save javier/46f34c1b6f8f1072d630b02f92a95d30 to your computer and use it in GitHub Desktop.
grafana with local storage and local grafana plugin

Just create a subfolder for your test with a subfolder named volume and another subfolder inside volume named plugins. Unzip the plugin zip directly into the plugins folder. A subfolder with the plugin name should appear

Now start grafana as in

docker run --rm  -p 3000:3000 --name=grafana-plugin --user "$(id -u)" --volume "$PWD/volume:/var/lib/grafana"  grafana/grafana-oss

Container will start and will be removed when you exit. Data will be kept in the volume. Grafana starts at http://localhost:3000 with default user admin and password admin

This is what my tree looks like. Note I only created the plugins folder with the unzipped questdb-questdb-datasource and everything else was created by grafana

.
└── volume
    ├── alerting
    │   └── 1
    │       └── __default__.tmpl
    ├── csv
    ├── grafana.db
    ├── plugins
    │   └── questdb-questdb-datasource
    │       ├── CHANGELOG.md
    │       ├── LICENSE
    │       ├── MANIFEST.txt
    │       ├── README.md
    │       ├── go_plugin_build_manifest
    │       ├── gpx_questdb_darwin_amd64
    │       ├── gpx_questdb_darwin_arm64
    │       ├── gpx_questdb_linux_amd64
    │       ├── gpx_questdb_linux_arm
    │       ├── gpx_questdb_linux_arm64
    │       ├── gpx_questdb_windows_amd64.exe
    │       ├── img
    │       │   ├── logo.svg
    │       │   └── sql_builder.png
    │       ├── module.js
    │       ├── module.js.map
    │       └── plugin.json
    └── png

9 directories, 18 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment