Exemple #1
0
func Monitor() {
	containers := docker.RegisterToContainersStream()
	for c := range containers {
		fmt.Println("monitor cpu", c)
		go monitorContainer(c)
	}
}
Exemple #2
0
func Monitor(iface string) {
	containers := docker.RegisterToContainersStream()
	for c := range containers {
		fmt.Println("monitor", iface, "of", c)
		go monitorContainer(c, iface)
	}
}