Adding Grafana Datasource from prometheus

Hello,

Firstly - thank you for making such a wonderful suite of software. I’m really impressed how well Yunohost works from both a UX and functional perspective.

Hardware: VPS bought online (Debian 11.8, Intel Hw 4gb / 80gb)
YunoHost version: YunoHost 11.2.9.1 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I have Grafana, Prometheus and Loki installed on my VPS. In the Prometheus I put on a purulent traget. However, I can’t establish the Prometheus database connection in the Grafana. I always get a 404 error. When I curl http://127.0.0.1:9090/prometheus/metrics with SSH I get a lot of data back. So there seems to be a connection. The connection of the Grafana is actually trivial, you can’t go wrong here. I always get: 404 Not Found - There was an error returned querying the Prometheus API. Does anyone have an idea? Thank you

What URL are you trying with Grafana? It’s supposed to be something like https://domain.tld/path_where_prometheus_is_installed/prometheus/metrics, right?

1 Like

Hello, i try http://127.0.0.1:9090/prometheus/metrics
Both running local on the same VPS, the Prometheus and the Grafana.

the FYDN results the same error. With HTTPS i become: http: server gave HTTP response to HTTPS client - There was an error returned querying the Prometheus API.

it works with https://domain.tld/3100/metrics

thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.