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

Timeout configuration for pushing metrics to Grafana Cloud #643

Open
hharsha9090 opened this issue Mar 5, 2024 · 1 comment
Open

Timeout configuration for pushing metrics to Grafana Cloud #643

hharsha9090 opened this issue Mar 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hharsha9090
Copy link

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
Copy link
Contributor

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

The current flags are here:

features = feature.NewCollection()
devMode = flags.Bool("dev", false, "turn on all development flags")
debug = flags.Bool("debug", false, "debug output (enables verbose)")
verbose = flags.Bool("verbose", false, "verbose logging")
reportVersion = flags.Bool("version", false, "report version and exit")
grpcApiServerAddr = flags.String("api-server-address", "localhost:4031", "GRPC API server address")
grpcInsecure = flags.Bool("api-insecure", false, "Don't use TLS with connections to GRPC API")
apiToken = flags.String("api-token", "", "synthetic monitoring probe authentication token")
enableChangeLogLevel = flags.Bool("enable-change-log-level", false, "enable changing the log level at runtime")
enableDisconnect = flags.Bool("enable-disconnect", false, "enable HTTP /disconnect endpoint")
enablePProf = flags.Bool("enable-pprof", false, "exposes profiling data via HTTP /debug/pprof/ endpoint")
httpListenAddr = flags.String("listen-address", "localhost:4050", "listen address")
k6URI = flags.String("k6-uri", "k6", "how to run k6 (path or URL)")
k6BlacklistedIP = flags.String("blocked-nets", "10.0.0.0/8", "IP networks to block in CIDR notation, disabled if empty")
selectedPublisher = flags.String("publisher", pusherV1.Name, "publisher type (EXPERIMENTAL)")
telemetryTimeSpan = flags.Int("telemetry-time-span", defTelemetryTimeSpan, "time span between telemetry push executions per tenant")

The pusher options aren't exposed/configurable, but you can see the default values here:

defaultPusherOptions = pusherOptions{

@peterschretlen peterschretlen added the enhancement New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants