Prometheus was not found Error on loading dasboard

179 views
Skip to first unread message

anish....@gmail.com

unread,
Mar 24, 2021, 10:01:59 AM3/24/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/
Create 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"

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

Fabio Ponciroli

unread,
Mar 24, 2021, 11:11:28 AM3/24/21
to anish....@gmail.com, Repo and Gerrit Discussion
Hi Anish,
you can find the artifact for Prometheus 3.0 in the CI archive [1].

See if you can get it working with this version first.

HTH

Fabio


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/891b22f6-a6c8-4a42-9148-e015e7ce7856n%40googlegroups.com.

anish anil

unread,
Mar 25, 2021, 12:57:54 AM3/25/21
to Fabio Ponciroli, Repo and Gerrit Discussion
Hello Fabio,

Thank you, Itvis working perfectly with the correct plugin version 👏👌👍😀

Thank you,
Anish

Reply all
Reply to author
Forward
0 new messages