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.
-
Yeah, you likely don't want
localhost
you want the uuid of the installation as the hostname since that's what's exposed in the docker virtual network.