-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
How to use proxyConnectHeader in ScrapeConfig #6523
Labels
Comments
simonpasquier
added
kind/bug
and removed
kind/support
needs-triage
Issues that haven't been triaged yet
labels
Apr 18, 2024
It looks a legit bug. The golden test files seem to be invalid: prometheus-operator/pkg/prometheus/testdata/ScrapeConfigSpecConfig_ProxySettings.golden Lines 10 to 17 in 3e7eb79
It should rather be
|
5 tasks
This was referenced Apr 19, 2024
Fixed by #6541 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Description
Hi,
I am trying to use the proxyConnectHeader field in ScrapeConfig object but prometheus doesn't like the generated output configuration.
I am using a secret named squid-user wich contains this data:
This secret is generated via External Secret.
My ScrapeConfig object look like this:
This output this config in Prometheus Operator:
As you can see there is single quotes around the Proxy-Authorization value. From what I can see in the Prometheus documentation they should not be there.
Also prometheus is telling me that he can't load the configuration because he cannot unmarshal a "!!str" into []config.Secret which seems logical here.
Can you help me here ? Is this a bug or am I misusing something ?
Steps to Reproduce
Use a secret with this value:
Use this Scrape Config:
Expected Result
Prometheus configuration should look like this:
Actual Result
Actual result of prom config is this:
Prometheus Operator Version
Kubernetes Version
v1.28.6-eks-508b6b3
Kubernetes Cluster Type
EKS
How did you deploy Prometheus-Operator?
helm chart:prometheus-community/kube-prometheus-stack
Manifests
No response
prometheus-operator log output
Anything else?
No response
The text was updated successfully, but these errors were encountered: