diff --git a/README.md b/README.md index f96057b..90addf9 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,14 @@ The Lightstep datasource provides the following queries that you can specify in ### Using interval and range variables It's possible to use some [global built-in variables](https://grafana.com/docs/grafana/latest/reference/templating/#global-built-in-variables) in the `Resolution` field. Currently, only `$__range` and `$__interval` are supported. +## Testing +### Running on docker for development and testing +It's possible to use the `docker-compose.yml` file in this repo to quickly install this plugin in a new instance of Grafana for development in testing. + +First, create a named volume so settings and dashboards will persist across container launches: + +``` + $ docker volume create grafana-data-lgp +``` + +Next, run docker compose: `docker compose up` -- the plugin now will be able to be installed on the Grafana instance that runs on `localhost:3000` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9b58155 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" +services: + grafana: + image: grafana/grafana-enterprise:7.5.13 + container_name: grafana + ports: + - 3000:3000 + environment: + - GF_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-lightstep-datasource,grafana-lightstep-graph,lightstep-app + - GF_LOG_LEVEL=debug + - GF_DEFAULT_APP_MODE=development + volumes: + - grafana-data-lgp:/var/lib/grafana + - ./dist:/var/lib/grafana/plugins/lightstep-app + +volumes: + grafana-data-lgp: + external: true \ No newline at end of file