Git Product home page Git Product logo

gitana's Introduction

Overview

Gitana is a lightweight application that will help you sync Grafana dashboards from a Git repository to Kubernetes ConfigMap and leverages the dashboard sidecar on the Grafana helm chart that provisions dashboard ConfigMaps created by Gitana into Grafana.

Sync Command Flags

./gitana sync --help

The sync command pulls the Grafana dashboards from a Git repository and foreach dashboard it will creates a config map for that dashboard:

Usage:
  gitana sync [flags]

Flags:
      --dashboard.folder-annotation string   dashboard folder annotation
      --dashboard.labels string              dashboard label selector (default "grafana_dashboard=nil")
  -h, --help                                 help for sync
      --http.port string                     listem port for http endpoints (default ":9754")
      --kubeconfig string                    (optional) absolute path to the kubeconfig file
      --log.level string                     log level (default "info")
      --namespace string                     namespace that will store the dashboard config map (default "default")
      --repository.auth.password string      password to perform authentication
      --repository.auth.username string      username to perform authentication
      --repository.branch string             git repository branch (default "main")
      --repository.url string                git repository url
      --sync-timer duration                  interval to sync and sync dashboards (default 5m)

Contributing

Contributions are very welcome! See our CONTRIBUTING.md for more information.

Docker images

Docker images are available on Docker Hub.

Building from source

To build Gitana from source code, first ensure that you have a working Go environment with version 1.16 or greater installed.

To build the source code you can use the make build, which will compile in the assets so that Gitana can be run from anywhere:

    $ mkdir -p $GOPATH/src/github.com/gitana
    $ cd $GOPATH/src/github.com/gitana
    $ git clone https://github.com/nicolastakashi/gitana.git
    $ cd gitana
    $ make build
    $ ./gitana sync <args>

The Makefile provides several targets:

  • build: build the gitana
  • fmt: format the source code
  • vet: check the source code for common errors

gitana's People

Contributors

nicolastakashi avatar lmarques03 avatar dependabot[bot] avatar mccricardo 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.