-
-
Notifications
You must be signed in to change notification settings - Fork 6
Getting Started Docker
rozetko edited this page Sep 22, 2020
·
4 revisions
- Docker
Running on 8000
port in Docker container.
Volumes:
-
/var/www/config.json
(required, contains API keys for your Grafana hosts, see example) -
/var/www/exported
(optional, directory which contains exported csv files and info about them)
docker pull corpglory/grafana-data-exporter
- Get a Grafana API key:
http://<your_grafana_url>/org/apikeys
,viewer
role is fine. - Input your Grafana API key into
config.json
(see example) - Create directory for exported files (e.g.
exported
) - Example of running Docker image on port
10000
withconfig.json
stored at/home/exporter
:
docker run -d \
--restart always \
--name grafana-data-exporter \
-p 10000:8000 \
-v /home/exporter/exported:/var/www/exported \
-v /home/exporter/config.json:/var/www/config.json \
corpglory/grafana-data-exporter