From 57783129d836e5397a89bbd1f56de82a29c7e995 Mon Sep 17 00:00:00 2001 From: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com> Date: Mon, 27 Feb 2023 23:58:30 +0000 Subject: [PATCH] Updated docker instructions (#4745) * Updated docker instructions Added docker-compose example Added unzip instructions Updated folder naming * Apply suggestions from code review --------- Co-authored-by: Scott Anderson --- .../cloud-iox/visualize-data/grafana.md | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/content/influxdb/cloud-iox/visualize-data/grafana.md b/content/influxdb/cloud-iox/visualize-data/grafana.md index 9a6cd392c..65df9352f 100644 --- a/content/influxdb/cloud-iox/visualize-data/grafana.md +++ b/content/influxdb/cloud-iox/visualize-data/grafana.md @@ -128,19 +128,43 @@ cannot be installed on or used with Grafana Cloud. {{% /tab-content %}} {{% tab-content %}} +**Unzip the FlightSQL plugin archive to your Grafana custom plugin directory**. + The custom plugin directory can exist anywhere in your filesystem as long as + the Grafana process can access it. + + ```sh + unzip influxdata-flightsql-datasource-0.1.2.zip + ``` To add the FlightSQL plugin to your pre-existing Grafana Docker deployment -mount the following volume to your Grafana container: +mount the plugin directory, `influxdata-flightsql-datasource`, as a volume to your Grafana container: +Docker Run ```bash docker run \ - --volume $PWD/dist:/var/lib/grafana/plugins/influxdata-flightsql-datasource \ + --volume $PWD/influxdata-flightsql-datasource:/var/lib/grafana/plugins/influxdata-flightsql-datasource \ --publish 3000:3000 \ --name grafana \ --env GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=influxdata-flightsql-datasource \ grafana/grafana:latest ``` +##### Docker-Compose + +```yaml +version: '3' +services: + grafana: + image: grafana/grafana:latest + ports: + - 3000:3000 + environment: + - GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=influxdata-flightsql-datasource + volumes: + - ./influxdata-flightsql-datasource:/var/lib/grafana/plugins/influxdata-flightsql-datasource + restart: always +``` + {{% note %}} It's important to set the `GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS` environment variable. The FlightSQL plugin is unsigned and Grafana requires you