hamara is a tool to export datasources from the existing Grafana DB into a YAML provisioning file by utilizing the Grafana REST API.
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
or using docker:
docker run --rm mrlioncub/hamara
export GRAFANA_API_KEY=<your API key here>
hamara export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml
or using docker:
export GRAFANA_API_KEY=<your API key here>
docker run --rm mrlioncub/hamara export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml
Download the hamara binary from Releases tab.
Install with go get (Installed Go required)
$ go get -u github.com/trivago/hamara$ hamara$ git checkout https://github.com/trivago/hamara -b name_for_new_branch.Content type
Image
Digest
Size
7.6 MB
Last updated
over 5 years ago
docker pull mrlioncub/hamara