analytically / grafonnet-playground

Playground for grafanna with jsonnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grafonnet Playground

Playground for grafanna with jsonnet. Allows users to write grafonnet and see the rendered grafana dashboard.

Usage

Run using dockerhub image (note the variables in the command)

docker run \
    -e "GRAFANA_URL=${grafana_url}" \
    -e "GRAFANA_API_KEY=${grafana_api_key}" \
    -e "GRAFONNET_PLAYGROUND_FOLDER_ID=${grafana_playground_folder_id}" \
    -e "GIN_MODE=release" \
    -p 8080:8080 \
    lahsivjar/grafonnet-playground

Note: For debugging remove the GIN_MODE environment variable from above command

Development build

  • Copy config file
make copy-config
  • Update properties in the file application.yml
  • Build code
make build-dev
  • Execute go binary
./out/grafonnet-playground

About

Playground for grafanna with jsonnet

License:Apache License 2.0


Languages

Language:JavaScript 53.4%Language:Go 25.9%Language:Makefile 7.7%Language:CSS 6.9%Language:HTML 3.2%Language:Dockerfile 2.8%