Multiple Dashboards Not Working (unable to locate the directory)

Hello guys I am new to this stuff, trying to learn.

I am using macOS, I’m facing an issue with Grafana on Kubernetes where my dashboards are not loading. I’ve configured Grafana to use ConfigMaps for dashboards and set up a Persistent Volume Claim for data persistence. However, when I check the pod logs using kubectl logs <my-pod> ,

I see the following errors:

logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:18.433868086Z level=error msg=“Cannot read directory” error=“stat /var/lib/grafana/dashboards/default: no such file or directory”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:18.434044378Z level=error msg=“Failed to read content of symlinked path” path=/var/lib/grafana/dashboards/default error=“lstat /var/lib/grafana/dashboards: no such file or directory”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:18.434064919Z level=info msg=“falling back to original path due to EvalSymlink/Abs failure”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:18.434075544Z level=error msg=“failed to search for dashboards” error=“stat /var/lib/grafana/dashboards/default: no such file or directory”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:28.434359883Z level=error msg=“Cannot read directory” error=“stat /var/lib/grafana/dashboards/default: no such file or directory”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:28.434556216Z level=error msg=“Failed to read content of symlinked path” path=/var/lib/grafana/dashboards/default error=“lstat /var/lib/grafana/dashboards: no such file or directory”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:28.434611508Z level=info msg=“falling back to original path due to EvalSymlink/Abs failure”
logger=provisioning.dashboard type=file name=default t=2024-07-25T19:57:28.434752049Z level=error msg=“failed to search for dashboards” error=“stat /var/lib/grafana/dashboards/default: no such file or directory”

It appears that Grafana is unable to locate the directory where it expects to find the dashboards. I’ve verified that the ConfigMap containing the dashboards is correctly mounted as a volume, but Grafana still cannot read the directory. But I can see the datasources.

Can anyone provide insight or solutions on how to resolve this issue? Any help would be greatly appreciated!

I’m attaching screenshots of the relevant configurations and errors for reference. As I’m still learning, I would greatly appreciate any advice or suggestions on how to resolve this issue. Thank you so much for your help!


Screenshot 2024-07-26 at 2.20.19 AM