grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
157 stars 22 forks source link

Timeout configuration for pushing metrics to Grafana Cloud #643

Open hharsha9090 opened 6 months ago

hharsha9090 commented 6 months ago

I'm looking for options to specify the connection-timeout, backoff-time, no-of-retries for pushing metrics to Grafana cloud. Are there any such options? In my current setup, there may be some issues connecting to the internet through a proxy when such issue occurs the proxies network bandwidth is heavily occupied because of the number of requests initiated from the synthetic-monitoring-agent. I would rather want to acknowledge the failure and look at it manually than causing issues on the proxy using considerable bandwidth.

peterschretlen commented 6 months ago

@hharsha9090 thanks for logging the issue, we don't have anything like that at the moment.

The current flags are here: https://github.com/grafana/synthetic-monitoring-agent/blob/abb5ff638ee8f199d88f049c506da46f247fe931/cmd/synthetic-monitoring-agent/main.go#L49-L64

The pusher options aren't exposed/configurable, but you can see the default values here: https://github.com/grafana/synthetic-monitoring-agent/blob/a6473e7d53f4438294e14357ed54b43df495c748/internal/pusher/v2/options.go#L20