From 90a30fc46cca239be3c2e311578f4f8e2d988e6c Mon Sep 17 00:00:00 2001 From: Mahesh Rijal <62394512+maheshrijal@users.noreply.github.com> Date: Mon, 26 Oct 2026 11:49:10 +0000 Subject: [PATCH] docs: use default listener port in TLS examples Signed-off-by: Mahesh Rijal <62394512+maheshrijal@users.noreply.github.com> --- docs/guides/tls-encryption.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ```