Setting up the dashboard so that it loads automatically
If you create a dashboard inside the Grafana constrainer, every time you destroy the container and start it back up, your dashboards will disappear and not be there anymore. This isn’t ideal, especially if you’re sharing the project with your colleagues as they will have no dashboard at all. The easiest way to share the dashboard and have it available every time you create a new Grafana container is to make it part of the project. Making it part of the project and passing it to the container makes it available every time you create a new container or to any colleague you share the project with.
Making a dashboard part of the project and passing it to the Grafana container is done in two steps. We need to make a YAML file that specifies where Grafana can find the dashboards and we need to create a dashboard to hold the dashboards that we are going to create.
The first step is creating the YAML file to specify...