Templating Failed to upgrade legacy queries Datasource named Prometheus was not found

2,736 views
Skip to first unread message

anish....@gmail.com

unread,
Mar 23, 2021, 4:11:38 AM3/23/21
to Repo and Gerrit Discussion

Hello Team,

Gerrit-Version --> 3.0.11
OS RHEL
Java 1.8

Steps followed:

Install the Plugin:
Since there was none for gerrit 3.0.x series, installed 3.1 and it loads successfully.
No errors reported in the logs.

Screenshot included:
https://gerrit-ci.gerritforge.com/job/plugin-metrics-reporter-prometheus-bazel-master-stable-3.1/
Untitled1.pngCreate a new group for Prometheus and added the user.
User able to successfully run a rest api. Added the allow permissions

Screenshot included


Installed Prometheus on the host server.
Server is accessible at http://hostname:9090
Configured the prometheus.yaml file and reloaded the service.

Screenshot of the job:

Created a new Grafana Instance Added the datasource as prometheus
Now imported the dasboard ID 13435 and ran the report it fails with the error included in the screnshot.

"Templating Failed to upgrade legacy queries Datasource named Prometheus was not found"
Untitled.png
Any particular reason why this would happen???
Any suggestions to resolve this issue. All the below dashboards failed with the same error.

13429
13430
13431
13432
13433
13434
13435

Is there a way to fix it. These dasboard are very useful and will help us in the long run identify the bttlenecks for various issues that we are seeing in gerrit
Screenshot 2021-03-23 133651.png
Screenshot 2021-03-23 133651.png
Screenshot 2021-03-23 13403223.png
Reply all
Reply to author
Forward
0 new messages