Skip to content

Getting Started Docker

rozetko edited this page Sep 22, 2020 · 4 revisions

Prerequisites

  • Docker

About image

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)

Installation

  • docker pull corpglory/grafana-data-exporter

Running

  • 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 with config.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