How to add Prometheus data source to Grafana?
-
When I try to add the Prometheus url http://localhost:9090/metrics to Grafana I get the error
Unknown error during query transaction. Please check JS console logs.
Am I missing something?
-
@cyberfreakde I don't have much experience with either of these but you should add it by prometheus' domain name. Since each app is a container, the "localhost" of each app is different.
-
having the same problem currently, where can i find the containers UUID?
-
@Jan-Macenka I see you worked that out:
@Jan-Macenka said in Prometheus + Grafana actually working:
just had the same issue and wanted to add something here as a documentation:
If both Grafana and Prometheus are running as a cloudron-app, you can add Prometheus as a data-source in Grafana by inputting
http://<PROMETHEUS-SERVICE-UUID>:9090
in the URL-field where PROMETHEUS-SERVICE-UUID can be found form the prometheus container either by looking up its installation location in the Storage-Tab or by connecting via terminal and copying the hostname.Cheers,
Jan