How to create a dashboard in grafana
Open grafana url and enter username and password
Create a dashboard
after that select
Add Query
and write queryChange Appropriate title and save(on the top right corner)
Click on the Settings button(on the right-hand top button) and Give Proper name and save
Â
After that you’ve to commit the dashboard to github in sunbird-devops, Click on the share icon on the right hand side
Click on export, and View json
And copy to clipboardÂ
Clone sunbird-devops repo
Add the copied json to
sunbird-devops/kubernetes/helm_charts/monitoring/dashboards/dashboards/<dashsboard-name>.json
Add the dashboard file path in values.yaml under
dashboards.default
dictionary.
Here the dashboard name isnginx.json
Â
Commit the changes and Create a PR against
github.com/project-sunbird/sunbird-devops
Once your PR is merged, Go to Jenkins and run the Deploy/Kubernetes/Monitoring → type
dashboards
as tag and deploy
Â