GithubHelp home page GithubHelp logo

trivago / hamara Goto Github PK

View Code? Open in Web Editor NEW
57.0 8.0 6.0 67 KB

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

License: Apache License 2.0

Go 89.28% Dockerfile 2.40% Makefile 8.32%

hamara's Issues

Docker command example

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

It should be rather something like this:

export GRAFANA_API_KEY=<your API key here>
docker run --rm trivago/hamara ./hamara export --host=host.docker.internal:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml

Added a binary and changed host, alternatively --network host could be used.

Validation of the host

If the --host flag doesn't include the protocol we get the following error:

./grafana-datasource-to-yaml export --host=monitoring.trivago.trv --key=$GRAFANA_KEY
Get monitoring.trivago.trv/api/datasources: unsupported protocol scheme ""

We should do one of:

  • Validate that its a proper URL
  • Assume http if nothing else is set
  • Improve the error shown to the user

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.