scalyr / scalyr-agent-2

The source code for Scalyr Agent 2, the daemon process Scalyr customers run on their servers to collect metrics and logs.
Apache License 2.0
70 stars 59 forks source link

Adding a 'polling interval' parameter #44

Open shlomi-harif opened 8 years ago

shlomi-harif commented 8 years ago

We're seeing a substantive network system load with the monitoring we're doing. We're seeing the polling interval set at 30 seconds in the code; can we have a startup parameter that sets the polling interval in seconds?

czerwingithub commented 8 years ago

Hello -

You can use the global_monitor_sample_interval option to set the default number of seconds between each poll for all monitors. You set this option in the main config (at the same level as you specify your API key.) You can also override that on a per-monitor basis by setting sample_interval in the monitor's config.

I'm curious though, how much data are you seeing copied? What's substantial for you? And is it because you are running a lot of monitors?

Steve