Skip to content
forked from trivago/hamara

Export datasource from the existing Grafana DB into a YAML provisioning file

License

Notifications You must be signed in to change notification settings

tttdevelop/hamara

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Build Status Codecov branch Report Card

hamara is a tool to export datasources from the existing Grafana DB into a YAML provisioning file by utilizing the Grafana REST API.

Usage

Retrieve datasources from existing Grafana and export it into a YAML provisioning file

Usage:
  hamara export [flags]

Flags:
  -h, --help          help for export
  -H, --host string   Grafana host
  -k, --key string    API key with Admin rights from Grafana

Example

export GRAFANA_API_KEY=<your API key here>
hamara export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml

Installation Options

  1. Download the hamara binary from Releases tab.

  2. Install with go get (Installed Go required)

    • $ go get -u github.com/trivago/hamara
    • $ hamara

How to Contribute

  1. Clone repo and create a new branch: $ git checkout https://github.com/trivago/hamara -b name_for_new_branch.
  2. Make changes and test
  3. Submit Pull Request with comprehensive description of changes

About

Export datasource from the existing Grafana DB into a YAML provisioning file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 89.7%
  • Makefile 8.4%
  • Dockerfile 1.9%