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

[ACM-11543] Check if URL already contains remote write path before appending it #1456

Merged
merged 5 commits into from
May 30, 2024

Conversation

douglascamata
Copy link
Contributor

@douglascamata douglascamata commented May 28, 2024

For the reverse proxy/LB support, the remote write endpoint could be under a custom path prefix (i.e. host:port/custom-path//api/metrics/v1/default/api/v1/receive).

We can't hardcoded the path directly to /api/metrics/v1/default/api/v1/receive. So the best way forward if to append this path to the url as a string, unless it's already present, then parse it into an url.URL.

Signed-off-by: Douglas Camata <[email protected]>
Copy link
Contributor

@thibaultmg thibaultmg left a comment

Choose a reason for hiding this comment

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

/lgtm

@douglascamata
Copy link
Contributor Author

/retest-required

2 similar comments
@douglascamata
Copy link
Contributor Author

/retest-required

@douglascamata
Copy link
Contributor Author

/retest-required

…ty-operator into fix-hardcoded-remote-write-path

Signed-off-by: Douglas Camata <[email protected]>
@douglascamata douglascamata force-pushed the fix-hardcoded-remote-write-path branch from bd34b40 to 2fb842e Compare May 29, 2024 15:48
@douglascamata
Copy link
Contributor Author

/retest-required

Signed-off-by: Douglas Camata <[email protected]>
Copy link

Copy link
Contributor

@thibaultmg thibaultmg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 30, 2024
Copy link

openshift-ci bot commented May 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: douglascamata, thibaultmg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit ca066d0 into main May 30, 2024
15 checks passed
@openshift-merge-bot openshift-merge-bot bot deleted the fix-hardcoded-remote-write-path branch May 30, 2024 14:21
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.

2 participants