Skip to content

NCAR/grafanaDashboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana Dashboards

Grafana dashboards created in python

  • Dashboards are programatically created using grafanalib
  • When changes are merged to master they are automatically pushed out to the grafana server

Setup

  • On Cheyenne (can also do this where ever)
module load conda
conda create --name grafana
conda activate grafana
conda install python
pip install grafanalib

conda install requests # only needed for uploading dashboards

git clone repo url
cd grafanaDashboards

Usage

# get env setup and updated
module load conda
conda activate grafana

git pull
git branch <new feature branch name>
git checkout <feature branch name>


# perform your edits

# test your updates
export GRAFANA_API_KEY=<get a key from grafana>
export GRAFANA_SERVER="grafana.hpc.ucar.edu"
./main.py <dashboard filename w/o extension> # ex ./main.py bifrost

# when happy with changes push to repo
git add <files you editted>
git commit # write a brief commit message
git push

# then create a PR in the repo

Creating new dashboards

  • make a file in the dashboards dir
  • it must contain a dashboard() method which returns a grafanalib Dashboard object
  • this will automatically be picked up by main.py and uploaded

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages