Skip to content

Show how to omit the port from a default instance label - #3195

Open
jakezwang wants to merge 1 commit into
prometheus:mainfrom
jakezwang:fix-issue-2296-20261121
Open

jakezwang wants to merge 1 commit into
prometheus:mainfrom
jakezwang:fix-issue-2296-20261121

Conversation

@jakezwang

Copy link
Copy Markdown

Add a target relabeling example to Jobs and instances. It preserves explicit instance labels and explains when dropping the port could make targets indistinguishable. @RichiH

Fixes #2296.

Ran promtool check service-discovery against the example with DNS, IPv4, bracketed IPv6 and an explicit instance label containing ! and ;. All four resulting labels matched and the scrape addresses were preserved.

Prepared with assistance from OpenAI Codex.

Assisted-by: OpenAI Codex
Signed-off-by: Jake Wang <jakezwang@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.

document how to remove port from the instance label

1 participant