synthetic-monitoring-agent
synthetic-monitoring-agent copied to clipboard
Timeout configuration for pushing metrics to Grafana Cloud
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.
@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