Errors when loading a dashboard

Hi everyone,
I’m new to grafana and i would like to make more efficient my dashboads.
When i look into the logs i saw a lot of error appening, and my dashboard won’t load or really slowly.

Here some of the errors i get when i load my grafana web :

logger=grafana-apiserver.feature-flags t=2026-05-11T11:32:45.468343Z level=error msg=“Failed to encode flag evaluation result” error=“write tcp 10.89.0.4:3000->172.16.25.78:65096: write: broken pipe”

logger=grafana-apiserver t=2026-05-11T11:32:57.72565043Z level=error msg=“Timeout or abort while handling” logger=UnhandledError method=POST URI=/apis/features.grafana.app/v0alpha1/namespaces/default/ofrep/v1/evaluate/flags auditID=414ac986-8b7d-49bb-a02d-c83e0fd6c461

logger=dashboard-service t=2026-05-11T11:33:44.14252281Z level=error msg=“Failed to cleanup k8s dashboard resources” error=“org 1: failed to list resources: context deadline exceeded”

logger=grafana-apiserver t=2026-05-11T11:34:27.8058887Z level=error msg=“Unhandled Error” err=“apiserver was unable to write a fallback JSON response: http: Handler timeout” logger=UnhandledError

logger=grafana-apiserver t=2026-05-11T11:34:31.5510807Z level=error msg=“Post-timeout activity” logger=UnhandledError timeElapsed=8.34088837s method=GET path=/apis/dashboard.grafana.app/v0alpha1/namespaces/default/dashboards result=

logger=dashboards-k8s-client t=2026-05-11T11:37:38.13149473Z level=error msg=“failed to fetch initial list” error=“Get “https://127.0.0.1:3000/apis/dashboard.grafana.app/v0alpha1/namespaces/default/dashboards?labelSelector=grafana.app%2Fget-trash%3Dtrue&limit=10&resourceVersion=0&resourceVersionMatch=NotOlderThan\”: context canceled”
logger=dashboard-service t=2026-05-11T11:37:40.35106764Z level=error msg=“Failed to cleanup k8s dashboard resources” error=“org 1: failed to list resources: Get “https://127.0.0.1:3000/apis/dashboard.grafana.app/v0alpha1/namespaces/default/dashboards?labelSelector=grafana.app%2Fget-trash%3Dtrue&limit=10&resourceVersion=0&resourceVersionMatch=NotOlderThan\”: context canceled”

I know it’s a lot and i pretty sur some of those errors are not important.

However if you have some time to help me about those errors i thanks you.

I work on grafana 12.4.2, install in a PLC 2152 from phoenix contact, i use a MySQL data source

Hi @enguerranhv
These errors are mostly related to performance and request timeout issues rather than an actual Grafana bug.
The main errors are Handler timeout and context deadline exceeded, while messages such as broken pipe and context canceled are usually just consequences of requests taking too long to complete.
To improve the situation, you can optimize the dashboards and SQL queries, reducing the number of panels and queried data, increasing the refresh interval, and adding proper database indexes.

Please let me know if you need anything else.

Thanks for your awnser @infofcc3
What do you mean by '“adding proper database indexes” ?

Installed on a PLC? What kind of OS would that be? Did you install straight on that device os or using some other containerization tool like docker?

Also please share the version you are using

Also the query for your dashboard if that is what you meant by mysql