Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:grafana/grafana-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Jun 6, 2016
2 parents 897a20b + 1c57578 commit 8ed700f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
35 changes: 13 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ docker run \
grafana/grafana
```

## Installing plugins for Grafana 3

Pass the plugins you want installed to docker with the `GF_INSTALL_PLUGINS` environment variable as a comma seperated list. This will pass each plugin name to `grafana-cli plugins install ${plugin}`.

```
docker run \
-d \
-p 3000:3000 \
--name=grafana \
-e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource" \
grafana/grafana
```

## Running specific version of Grafana

```
Expand Down Expand Up @@ -75,25 +88,3 @@ Supported variables:
- `GF_AWS_${profile}_ACCESS_KEY_ID`: AWS access key ID (required).
- `GF_AWS_${profile}_SECRET_ACCESS_KEY`: AWS secret access key (required).
- `GF_AWS_${profile}_REGION`: AWS region (optional).

## Official Grafana with unofficial plugins (community project):

Unofficial plugins/datasources: Zabbix, DalmatinerDB, Ambari, Atsd, Bosun,
Cloudera Manager, Druid, Chnocchi, PRTG, ...

```
# create /var/lib/grafana as persistent volume storage
docker run -d -v /var/lib/grafana --name grafana-xxl-storage busybox:latest
# start grafana-xxl
docker run \
-d \
-p 3000:3000 \
--name grafana-xxl \
--volumes-from grafana-xxl-storage \
monitoringartist/grafana-xxl
```

Visit [Grafana XXL project](https://github.com/monitoringartist/grafana-xxl)
for more details.

9 changes: 9 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ if [ ! -z ${GF_AWS_PROFILES+x} ]; then
chmod 600 ~grafana/.aws/credentials
fi

if [ ! -z ${GF_INSTALL_PLUGINS} ]; then
OLDIFS=$IFS
IFS=','
for plugin in ${GF_INSTALL_PLUGINS}; do
grafana-cli plugins install ${plugin}
done
IFS=$OLDIFS
fi

exec gosu grafana /usr/sbin/grafana-server \
--homepath=/usr/share/grafana \
--config=/etc/grafana/grafana.ini \
Expand Down

0 comments on commit 8ed700f

Please sign in to comment.