monti-apm / monti-apm-agent

Monitor Meteor apps with Monti APM
https://montiapm.com
MIT License
45 stars 22 forks source link

Monti APM Connection Error Caused by Proxy Server #94

Open sitiarel opened 1 year ago

sitiarel commented 1 year ago

We have 11 servers and we are using MontiAPM on all of them. When we started routing the traffic from these 11 servers through the same proxy server, we began to receive the following error:

Monti APM: Unable to connect. Maximum retry limit reached for Request failed: 503 Monti: Error sending CPU profile [MaxRetryError: Maximum retry limit reached for Request failed: 503]

But when we turned off the proxy, there were no issues.

leonardoventurini commented 1 year ago

Hi @sitiarel, here is a few things to try:

  1. Does it work when you try to make a post request to other endpoints? If not it is a configuration issue on the proxy side blocking all outbound requests.
  2. Do outbound websocket connections work? I think the agent tries to establish a connection on initialization to send stuff over DDP, some proxy servers also have to be configured to allow websocket connections to work properly, inbound and outbound, I assume that inbound is working fine but not outbound.

Can you give us details on which proxy server are you using and how it is configured? Thanks!

Anything let me know.