-
What Grafana version and what operating system are you using?
Grafana 9.3.2 / Ubuntu 20.04 (TIG stack)
-
What are you trying to achieve?
Trying to add a Prometheus data source
-
How are you trying to achieve it?
- Use URL: http://10.0.0.14:9888/metrics
- Click Save & test
-
What happened?
- UI error: Error reading Prometheus: An error occurred within the plugin
- Journal log:
Feb 08 23:17:14 tig.domain.com grafana-server[1062]: logger=context userId=3 orgId=1 uname=user t=2023-02-08T23:17:14.815101318+01:00 level=error msg="Internal server error" error="[plugin.downstreamError] failed to query data: received empty response from prometheus" remote_addr=127.0.0.1 traceID=
Feb 08 23:17:14 tig.domain.com grafana-server[1062]: logger=context userId=3 orgId=1 uname=user t=2023-02-08T23:17:14.815174998+01:00 level=error msg="Request Completed" method=POST path=/api/ds/query status=500 remote_addr=127.0.0.1 time_ms=2 duration=2.286542ms size=116 referer=https://grafana.domain.com/datasources/edit/xhAng9A4k handler=/api/ds/query
Feb 08 23:17:22 tig.domain.com grafana-server[1062]: logger=cleanup t=2023-02-08T23:17:22.422436072+01:00 level=info msg="Completed cleanup jobs" duration=3.860605ms
-
What did you expect to happen?
I expected to see a connection on the remote server hosting the Prometheus URL. Instead, I see Grafana trying to connect to localhost and failing. When I use curl from the Grafana server I can connect so it’s not a firewall or connectivity issue.
-
Can you copy/paste the configuration(s) that you are having problems with?
n/a
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
See above
-
Did you follow any online instructions? If so, what is the URL?
I’m trying to get this data source working in Grafana: GitHub - camptocamp/ipahealthcheck_exporter: Prometheus exporter for exposing ipa-healthcheck tool checks as metrics