mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #83 from weaveworks/reduce-probe-cpu
Reduce default spy and publish intervals
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user