Git Product home page Git Product logo

hamara's Introduction

Logo

Build Status Codecov branch Report Card

Build Status Docker Automated build Docker Image Size

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

or using docker:

docker run --rm mrlioncub/hamara

Example

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

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

hamara's People

Contributors

aliariff avatar jorgelbg avatar mofoku avatar

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.