Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix host header mention in prometheus metrics doc #10502

Merged
merged 1 commit into from Mar 11, 2024

Conversation

MorphBonehunter
Copy link
Contributor

What does this PR do?

In #10169 the mentioned workaround for missing host value in the header map was to use the X-Forwarded-Host header instead.
The doc addition PR #10172 however introduced the X-Forwarded-For header which this PR fixes.

Motivation

Correct the docs for other users.

More

  • Added/updated tests
  • Added/updated documentation

@rtribotte
Copy link
Member

Hello @MorphBonehunter,

Thanks for opening this!

As this is a fix, this PR should target the v2.11 branch, could you please rebase it?

@MorphBonehunter
Copy link
Contributor Author

Ohh...sorry...as this is an fix also for v3 i thought it must be master to "backport" it in all other versions.
So i hope this is OK now.

@ldez ldez added this to the 2.11 milestone Mar 7, 2024
@rtribotte rtribotte closed this Mar 7, 2024
@rtribotte rtribotte reopened this Mar 7, 2024
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker merged commit 5cf1b95 into traefik:v2.11 Mar 11, 2024
22 checks passed
@MorphBonehunter MorphBonehunter deleted the fix-metrics-headers-doc branch March 11, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants