Difficulty to configure Kube-Prometheus data persistence

I’ve installed Kube-Prometheus to monitor my K8s cluster, but, for example, any user accounts I create in Grafana are lost everytime the Grafana pod is restarted. The same happens to dashboards that I install in Grafana. I just can’t find any guidance on the Internet about how to correctly configure data persistence in Kube-Prometheus to avoid losing Grafana’s data. I’ve made some unsuccessful attempts. Has anyone in this community configured Kube-Prometheus data persistence successfully? And how? Thanks!

When you have created a new dashboard, export it as JSON.
Then put the JSON files into one or more configmaps and have grafana mount them. I believe there are options in the helm chart to specify additional configmaps to load.

Thanks, @Alistair_KodeKloud ! Your answer is the solution for persisting a new Grafana dashboard in Kube-Prometheus. And I found this guide after your reading answer, which is exactly what you told me: Import Dashboard JSON to Grafana from a ConfigMap in Kubernetes.