Skip to content

Commit

Permalink
Add docker compose instructions (#93)
Browse files Browse the repository at this point in the history
* add docker compose instructions

* Update README.md

Co-authored-by: Chris Sackes <[email protected]>

Co-authored-by: Chris Sackes <[email protected]>
  • Loading branch information
smithclay and cdsackes authored Jan 25, 2022
1 parent 290af63 commit 5a5ee4d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5a5ee4d

Please sign in to comment.