You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
rozetko 67b23f2855 Use datasource name instead of measurement 6 years ago
build Make dev-server use stderr 6 years ago
exported Initial commit 6 years ago
src Use datasource name instead of measurement 6 years ago
.gitignore it works 6 years ago
Dockerfile Minor fixes 6 years ago
README.md Update README.md 6 years ago
api-keys-example.json Initial commit 6 years ago
package.json export-manager-backend -> grafana-data-exporter 6 years ago
tsconfig.json Initial commit 6 years ago

README.md

Grafana data exporter

Server for fetching data from Grafana datasources

Why would you use it

  • To export your metrics on a very big range for analysis
  • To migrate from one datasource to another

Quick start

Running on 8000 port in Docker container.

Dockerfile has 2 volumes:

  • /var/www/api-keys.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)

Build

npm install
npm run build

Run

npm start

Development

You should have nodemon module installed to run development server.

npm i -g nodemon
npm run dev

Changelog

[0.3.1] - 2018-05-14

Added

  • Show confirmation modal on task delete.

[0.3.0] - 2018-05-10

Added

  • Save user that initialized export.
  • Support different grafana URLs.
  • Delete tasks.

[0.2.0] - 2018-05-09

Added

  • Fetch data from Grafana API and save it to CSV.
  • Endpoint for showing task status in Simple-JSON datasource format.
  • CSV download URL on task finish.