Importing dashboard to Grafana using Kube-prometheus stack with Helm


I am using kube-prometheus-stack with Helm for setting up Promtheus and Grafana . Deployment looks good but
I couldn’t get my dashboard deployed to Grafana…I have used following configuration
file: dashboards/custom-dashboard.json
This is not deploying my json file to Grafana. …. How can I get it deployed ?

  1. I am also looking to enable default dashboards but selectively …. I see lots of dashboards deploys when I enable forceDeployDashboards …

Thank you.

I got it by creating a configmap with json content . Important thing is to add label ‘grafana-dashboard’:‘1’ to configmap and add side-car config in values.yaml.

That did the job.