Currently, when you navigate to Grafana, you will see an ugly "Home" dashboard. It is much better if we can make our mobile services dashboard the default one.
Grafana supports this: https://github.com/grafana/grafana/issues/1678
However, * mobile services dashboard should be created first * we need to get extract the id of that dashboard: http://docs.grafana.org/http_api/folder_dashboard_search/ * then use the id in the REST api call (see https://github.com/grafana/grafana/issues/1678)
{code} curl -XPUT -H "Authorization: Bearer redacted" localhost:3000/api/org/preferences -d@org.json
--> org.json: { "theme": "dark", "homeDashboardId":3, "timezone":"utc" } {code}
The problem is, we can't know the id of the dashboard in advance, so we can't hardcode the id in Grafana settings that's in the pod. Grafana doesn't allow ids in the dashboard JSON files that are fed to the pod. It wants to assign ids itself.
Thus, all of this needs to happen in Ansible side. |
|