-
Notifications
You must be signed in to change notification settings - Fork 487
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
Grafana agent http proxy not fully supported #1702
Comments
Here is how i have tested on my laptop: TestingA local nginx-proxy can be run in docker, using this repo: https://github.com/reiz/nginx_proxy
To verify the actual connections from the agent, you need the agent running (below works on MacOS)
This is what a proxy connection looks like: (given the proxy is on port 8888) Here is an example, where both a proxy connection and a non-proxy connection is established: |
Hey there 👋 Sorry for the late reply, all of the maintainers were out of the office last week. We should definitely try to get proxy_url support working consistently. For oauth2 and logs/metrics: is the suggestion that the fix is likely to just update prometheus/common to the latest version? That'd be a pretty easy change we'd be welcome to include ASAP. HTTP_PROXY not working with traces will take some cross-collaboration with OpenTelemtry-collector. Before we start discussing whether we should open something upstream, can you confirm that HTTP_PROXY is set in the Grafana Agent process? IMO, ideally, people work with OpenTelemetry-collector to allow an HTTP proxy to be configured via the config file and not just the environment variable. That would make things more consistent for us downstream. |
Yes. Not even latest version is needed, "just"
I have an update on this. If i set But it actually works like this: To summarise:
Actions:
|
Hi all,
First time contributor here.
We are in need of the grafana-agent supporting being run behind a HTTP_PROXY.
It is somewhat supported today but not fully.
I have done testing on metrics, traces and logs (with
oauth2
authentication), and here is what i found.v0.33.0
ofprometheus/common
v0.33.0
ofprometheus/common
proxy_url
, but does pickup ENVHTTP_PROXY/HTTPS_PROXY
when setGetting logs and metrics to work is easy, as it simply involves upgrading of a pkg.
Upgrading to
v0.33.0
ofprometheus/common
, allows to specifyproxy_url
onoauth2
: (both for logs and metrics)(verified that it works)
Now with
traces
, i have tried specifyingproxy_url
onremote_write
and onremote_write/oauth2
which makes the agent blow up on startup (due to YAML parse error). Neither are supported it seems.I also tried specifying theHTTP_PROXY
as mentioned in the OTEL docs, but this doesn't work either.All the above brings me to my points.
The text was updated successfully, but these errors were encountered: