Skip to content

fastleansmart/grabana-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grabana Devcontainer

This repo provides an easy way to develop Grafana dashboards using Grabana.

With this, you'll able to code your dashboards and see the changes in real time in your local Grafana.

Getting started

Before opening this repo, make sure that you have the grafana docker container running and the port of it is correctly set in $GRAFANA_PORT.

Next, you need to open this repository in the existing devcontainer in VSCode.

After the container has finished building, you are ready to start building your beautiful dashboards.

Dashboards are generally defined under pkg/dashboards/dashboard/yourAmazingDashboard.go. Be sure to register your dashboard in pkg/dashboards/dashboards.go for them to be built.

Publishing dashboards

To publish dashboards to your real Grafana instance, build them using the following command:

go run main.go --build --output <output-dir>

Alternatively, if you want to publish your dashboards using the Grafana API, simply run:

go run main.go <your-grafana-url> <your-grafana-api-token>

Afterwards, just simply upload the JSON output into your Grafana and you're done!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published