From 7b07c0abc3bb8444ba8fa9dc2380577bf24ff8af Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Fri, 22 May 2015 11:39:09 +0200 Subject: [PATCH] Reduce default spy and publish intervals Closes #81 --- probe/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/probe/main.go b/probe/main.go index db10698e6..79c9d1bb1 100644 --- a/probe/main.go +++ b/probe/main.go @@ -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()