Reduce default spy and publish intervals

Closes #81
This commit is contained in:
Peter Bourgon
2015-05-22 11:39:09 +02:00
parent c193d69b19
commit 7b07c0abc3

View File

@@ -21,15 +21,15 @@ import (
func main() {
var (
httpListen = flag.String("http.listen", "", "listen address for HTTP profiling and instrumentation server")
publishInterval = flag.Duration("publish.interval", 1*time.Second, "publish (output) interval")
spyInterval = flag.Duration("spy.interval", 100*time.Millisecond, "spy (scan) interval")
publishInterval = flag.Duration("publish.interval", 3*time.Second, "publish (output) interval")
spyInterval = flag.Duration("spy.interval", time.Second, "spy (scan) interval")
listen = flag.String("listen", ":"+strconv.Itoa(xfer.ProbePort), "listen address")
prometheusEndpoint = flag.String("prometheus.endpoint", "/metrics", "Prometheus metrics exposition endpoint (requires -http.listen)")
spyProcs = flag.Bool("processes", true, "report processes (needs root)")
cgroupsRoot = flag.String("cgroups.root", "", "if provided, enrich -processes with cgroup names from this root (e.g. /mnt/cgroups)")
cgroupsInterval = flag.Duration("cgroups.interval", 10*time.Second, "how often to update cgroup names")
dockerMapper = flag.Bool("docker", true, "collect docker-related attributes for processes.")
dockerInterval = flag.Duration("docker.interval", 10*time.Second, "how often to update docker container info")
dockerMapper = flag.Bool("docker", true, "collect Docker-related attributes for processes")
dockerInterval = flag.Duration("docker.interval", 10*time.Second, "how often to update Docker attributes")
procRoot = flag.String("proc.root", "/proc", "location of the proc filesystem")
)
flag.Parse()