Skip to content

robandpdx/my-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana with GitHub datasource

Getting started

Make sure you have docker installed and running.
Create a Github personal access token with the appropriate permissions.

  1. Set the following environment variables: GITHUB_TOKEN
  2. Run ./build.sh
  3. Run ./run.sh
  4. Open a browser to http://localhost:3000/
  5. Login with admin/admin
  6. Navigate to Dashboards->GitHub Default
  7. Profit!

Grafana provisioning

Grafana provisioning of dashboards and data sources occurs by placing the provisioning directory in /etc/grafana/provisioning of the docker image. For this reason, we are building a custom docker image and adding the provisioning directory as well as the dashboards needed via the Dockerfile.

To enable faster startup times, grafana plugins are pre-installed into the custom docker image by specifying the plugins as a --build-arg in the build.sh.

Dashboard development

New dashboards can be created or modified locally, then exported to a json file and checked into the dashboards directory, or any folder within. When exporting a dashboard, do not enable the Export for sharing externally option.

Cleanup

Stop and delete the grafana docker container by running ./cleanup.sh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published