Data will not show in Grafana until I manually run a query

  • What Grafana version and what operating system are you using?

    • Grafana v12.4.0 (d1729c53a7)
    • Docker
  • What are you trying to achieve?

    • I would like to view Jenkins data on Grafana without having to first go into each tile dashboard and manually run query to start seeing the data populate on the dashboard.
  • How are you trying to achieve it?

    • Importing dashboard 9964
  • What happened?

    • After importing the dashboard, all tiles either show N/A, No Data, or None. To get the data to populate, I have to go into each tile and select run query. If I don’t manually select run query, the data will never show up despite how many jenkins jobs have been ran or the refresh interval settings.
  • What did you expect to happen?

    • I expected to see some type of data on the tiles without me having to manually go into each tile and select run query to see the data.
  • Can you copy/paste the configuration(s) that you are having problems with?

    • Not sure how to copy and paste configuration.
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

    • The only error message i’m seeing is Datasource $(DS_PROMETHEUS) was not found on each tile indicated by a pink triangle. However, once I go into the tile and manually run the query, that message goes away and the data starts populating.
  • Did you follow any online instructions? If so, what is the URL?

Can you check whay happens with the datasource input when you run the query? I had something like this once and it turned out the variable was misconfigured (or something like that) and it didn’t actually pass the datasource (or the datasource wasn’t even picked in the variable at all). Changing it once to the correct datasource manually (or setting the uid of the datasource instead of the variable) can help.