Enter the Prometheus data source URL
In the Prometheus server URL field enter http://localhost:9090
. Private data source connect (PDC) enables connection requests to resolve to this private address.
If Prometheus is running locally, use
http://localhost:9090
. If it’s hosted on a networked server, provide the server’s URL along with the port where Prometheus is running. Example:http://prometheus.example.orgname:9090
.Note
When running Grafana and Prometheus in separate containers, localhost refers to each container’s own network namespace. This means that
localhost:9090
points to port 9090 inside the Grafana container, not on the host machine.Use the IP address of the Prometheus container, or the hostname if you are using Docker Compose. Alternatively, you can use
http://host.docker.internal:9090
to reference the host machine.If you aren’t using PDC, then you must enter a public IP or a fully qualified domain name for the address to resolve over the public network.
Did you know?
We recommend establishing a PDC connection. Without this secure connection, any queries and data exchanged between your on-premise data sources and Grafana Cloud occur over an insecure channel.
In the next step of your journey, you’ll configure basic security.
At this point in your journey, you can explore the following paths: