diff --git a/docs/guides/tls-encryption.md b/docs/guides/tls-encryption.md index e78be437c..5c6a5fa80 100644 --- a/docs/guides/tls-encryption.md +++ b/docs/guides/tls-encryption.md @@ -65,15 +65,15 @@ If you'd like to test out TLS locally using the `example.com` domain, you can ad 127.0.0.1 example.com ``` -You can then use cURL to interact with your local Prometheus setup: +Use the port configured for Prometheus's web listener (9090 by default) to interact with your local Prometheus setup: ```bash curl --cacert /home/prometheus/certs/example.com/example.com.crt \ - https://example.com/api/v1/label/job/values + https://example.com:9090/api/v1/label/job/values ``` You can connect to the Prometheus server without specifying certs using the `--insecure` or `-k` flag: ```bash -curl -k https://example.com/api/v1/label/job/values +curl -k https://example.com:9090/api/v1/label/job/values ```