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

Use http prefix path correctly in promtail #4832

Merged
merged 2 commits into from
Nov 29, 2021

Conversation

taisho6339
Copy link
Contributor

@taisho6339 taisho6339 commented Nov 26, 2021

What this PR does / why we need it:

This is bug fix for promtail.
Now, if we use http path prefix in promtail, it can't redirect to /targets from / and access to static assets correctly.
So I've fixed.

In addition I'd tested the two pattern cases, without path prefix and with it in my local workstation.

Which issue(s) this PR fixes:
Fixes #4765
(also #1709)

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

@taisho6339 taisho6339 requested a review from a team as a code owner November 26, 2021 14:15
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit d7c3595 into grafana:main Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promtail does not use the http_path_prefix, metrics works but the promtail UI does not.
2 participants