4
votes

Is there a way to set a dashboard in Grafana as the home without admin login ? I have a Helm chart that I deploy Grafana with so I would like to do this at a configuration level.

I could not see any options under http://docs.grafana.org/installation/configuration/ for grafana.ini

I'm able to do this manually by login as the admin for the default organization, starring a dashboard and setting that dashboard as the home under preferences. But ofcourse automating this through configuration would be ideal.

1

1 Answers

1
votes

Not sure how to do it via .ini file. But you could make use of the Grafana API to get this done.

If you can figure out the Id of the dashboard.Or create via the API itself

Use /api/user/stars/dashboard/{id} to star the dashboard

Then update preference to set the dashboard as home.

Hope this helps.