Skip to content

Commit

Permalink
Add start/grafana make target to start Grafana with plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena committed Aug 24, 2022
1 parent 02bfe48 commit 23cffc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ plugin/datasource/build: $(BIN)/mage
yarn install && yarn build && \
$(BIN)/mage -v \

.PHONY: plugin/flamegraph/build
plugin/flamegraph/build:
pushd ./grafana/flamegraph && \
yarn install && yarn build

.PHONY: start/grafana
start/grafana: plugin/datasource/build plugin/flamegraph/build
./tools/grafana-fire

.PHONY: fmt
fmt: $(BIN)/golangci-lint $(BIN)/buf $(BIN)/tk ## Automatically fix some lint errors
Expand Down
3 changes: 2 additions & 1 deletion tools/grafana-fire
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ docker run $DOCKER_ARGS --rm \
--name fire-grafana \
-v "${datasource_provisioning}:/etc/grafana/provisioning/datasources/fire.yaml:ro" \
-v "$(pwd)"/grafana/fire-datasource/dist:/var/lib/grafana/plugins/fire-datasource \
-v "$(pwd)"/grafana/flamegraph/dist:/var/lib/grafana/plugins/flamegraph \
-e GF_INSTALL_PLUGINS=pyroscope-datasource,pyroscope-panel \
-e GF_DEFAULT_APP_MODE=development \
-e GF_AUTH_ANONYMOUS_ENABLED=true \
-e GF_AUTH_ANONYMOUS_ORG_ROLE=Admin \
-t -i -p 3000:3000 ctovena/grafana:hackathon-1
-t -i -p 3000:3000 aocenas/grafana:explore-experiment

0 comments on commit 23cffc4

Please sign in to comment.