Skip to content

docs: use the default listener port in TLS curl examples - #3159

Open
maheshrijal wants to merge 1 commit into
prometheus:mainfrom
maheshrijal:fix/tls-guide-default-port
Open

maheshrijal wants to merge 1 commit into
prometheus:mainfrom
maheshrijal:fix/tls-guide-default-port

Conversation

@maheshrijal

@maheshrijal maheshrijal commented Oct 26, 2026 •

Copy link
Copy Markdown

The TLS guide's portless HTTPS requests use port 443, but Prometheus listens on 9090 by default. This updates both examples to use the configured listener port, including :9090 by default. For direct TLS using the default listener, the URLs change from https://example.com/api/v1/label/job/values to https://example.com:9090/api/v1/label/job/values.

Both forms were tested against TLS-enabled Prometheus 3.15.1: the original could not connect, while the corrected URL returned API status success.

Fixes #3158

@RichiH

Signed-off-by: Mahesh Rijal <62394512+maheshrijal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TLS guide curl examples omit the default listener port

1 participant