Cache with the Data Source

  • What Grafana version and what operating system are you using?
    Grafana v10.0.0 (81d85ce802)

  • What are you trying to achieve?

I am trying to get the caching work with Grafana data sources so that the queries are not fired to the backend data source on every refresh of the page.

  • How are you trying to achieve it?
    I have enabled caching on the data source as shown in the image below

  • What happened?

When I refresh the dashboard without changing dashboard variables, the queries are fired always to the backend Datasource.

  • What did you expect to happen?
    I expect Grafana to not fire the backend queries and instead retrieve the results from the cache

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    I have 3 panels in the dashboard and everytime, I see all the 3 queries fired.

  • Did you follow any online instructions? If so, what is the URL?