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

Allow for a proxy to be set for the synthetics binary #371

Open
jamesvarty opened this issue Nov 22, 2022 · 2 comments
Open

Allow for a proxy to be set for the synthetics binary #371

jamesvarty opened this issue Nov 22, 2022 · 2 comments

Comments

@jamesvarty
Copy link

Our network does not allow for "un-proxied" traffic out to grafanacloud backend from the synthetics agent(private probe)
Setting the environment/systemd proxy does not seem to solve the outbound pusher.go traffic, generating the following events.

{"level":"error","program":"synthetic-monitoring-agent","subsystem":"publisher","tenant":<removed>,"error":"sending events: context deadline exceeded","time":1669087903507,"message":"publish events"} {"level":"error","program":"synthetic-monitoring-agent","subsystem":"publisher","tenant":<removed>,"error":"sending timeseries: context deadline exceeded","time":1669087913601,"message":"publish metrics"}

A proxy flag to set the outbound http(s)_proxy should solve this.

@mem
Copy link
Collaborator

mem commented Nov 23, 2022

It should already work. We are using Go's http client, so something like export HTTP_PROXY="http://host:port" should do it. This needs to be set in the environment from which the agent is started.

@jamesvarty
Copy link
Author

Thanks for the response @mem, I simply have this running in a docker container with known HTTP(s)_PROXY defined.

Just to be clear the "context deadline exceeded" in the logs is the pusher timing out trying to send the events to synthetic-monitoring-grpc-* correct?

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

No branches or pull requests

2 participants