Skip to content

Commit 3404585

Browse files
committed
Add a tool to spin up a fire ready Grafana
$ ./tools/grafana-fire or with customer url: $ FIRE_URL=http://fire.org ./tools/grafana-fire
1 parent 8007052 commit 3404585

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tools/grafana-fire

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
FIRE_URL=${FIRE_URL:-http://127.0.0.1:4100/pyroscope}
4+
5+
datasource_provisioning=$(mktemp -u --suffix ".yaml")
6+
trap 'rm -f "${datasource_provisioning}"' EXIT
7+
cat > "${datasource_provisioning}" <<EOF
8+
apiVersion: 1
9+
10+
datasources:
11+
- name: Fire
12+
type: pyroscope-datasource
13+
jsonData:
14+
path: ${FIRE_URL}
15+
EOF
16+
17+
docker run --net=host --rm \
18+
--name fire-grafana \
19+
-v "${datasource_provisioning}:/etc/grafana/provisioning/datasources/fire.yaml:ro" \
20+
-e GF_INSTALL_PLUGINS=pyroscope-datasource,pyroscope-panel \
21+
-e GF_AUTH_ANONYMOUS_ENABLED=true \
22+
-e GF_AUTH_ANONYMOUS_ORG_ROLE=Admin \
23+
-t -i -p 3000:3000 ctovena/grafana:hackathon-1

0 commit comments

Comments
 (0)