I have an application that pushedsmetrics to prometheus and these metrics are put into dashboards in Grafana
So the usual process I follow is deploy prometheus(push mode enabled) and then deploy grafana, and the create a data source to that prometheus so that grafana has the datasource in place
Now I have dashboards that use these metrics.
My requirement now is to automate the dashboard/datasource imports, I do not usually download the charts and make changes rather I deploy them individually through helm and change the values as needed.
My understanding as of now (and correct me if I am wrong) is that In order for the dashboards to be imported , I definitely need to download the grafana chart and make changes to it and then apply.
But is there a way or Can I utilize “dashboardProviders” “dashboardConfigMaps” method to add the dashboard file and the configmap to my application (and by this time Grafana is already installed/deployed using helm) so that by the time I deploy my application, grafana is already present (deployed) and will consume the dashboard from my application chart/templates folder and import the dashboards.
Do you think this scenario is even a possible one or the only way to go is downloading the Grafana chart and making changes manually.