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

Make Prometheus in revtr-sidecar listen on a cluster-local address #906

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

nkinkade
Copy link
Contributor

@nkinkade nkinkade commented Sep 25, 2024

Currently, Prometheus in revtr-sidecar listens on all interfaces. This PR causes it to listen only on the cluster-local pod address. It takes advantage of a new version of revtr-sidecar which enables this:

NEU-SNS/revtr-sidecar#8


This change is Reviewable

The flag name is literal, and expects only an int. I've left the PRIVATE_IP env
variable, but removed it from the flag. I submitted a PR to the revtr-sidecar
repository to address this:

NEU-SNS/revtr-sidecar#8

Once that PR is merged, assuming it does get merged, then I will update this
again to specify a full address instead of just a port.
This includes an update to revtr-sidecar which changes the flag
-prometheus.port to -prometheus.addr, and allows us to cause Prometheus to
listen on a cluster-local address instead of a public interface.
Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

Thank you for taking the time to improve this!

Reviewed 1 of 1 files at r1.
Reviewable status: 0 of 1 approvals obtained

@nkinkade nkinkade merged commit b41af7c into main Sep 25, 2024
2 of 3 checks passed
@nkinkade nkinkade deleted the sandbox-kinkade-revtr-sidecar-addr branch September 25, 2024 17:32
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.

2 participants