How to add Prometheus data source to Grafana?
cyberfreakde last edited by
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.
Yeah, you likely don't want
localhostyou want the uuid of the installation as the hostname since that's what's exposed in the docker virtual network.
Jan Macenka last edited by
having the same problem currently, where can i find the containers UUID?
jdaviescoates last edited by
@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>:9090in 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.