[add] cadvisor
This commit is contained in:
		
							parent
							
								
									295fecb933
								
							
						
					
					
						commit
						c563f73555
					
				
					 1 changed files with 36 additions and 0 deletions
				
			
		
							
								
								
									
										36
									
								
								cadvisor/docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								cadvisor/docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,36 @@
 | 
				
			||||||
 | 
					version: '3.4'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  cadvisor:
 | 
				
			||||||
 | 
					    image: zcube/cadvisor:latest
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - published: 9102
 | 
				
			||||||
 | 
					        target: 9102
 | 
				
			||||||
 | 
					        mode: host
 | 
				
			||||||
 | 
					    command:
 | 
				
			||||||
 | 
					      - "--port=9102"
 | 
				
			||||||
 | 
					      - "--housekeeping_interval=30s"
 | 
				
			||||||
 | 
					      - "--docker_only=true"
 | 
				
			||||||
 | 
					      - "--disable_metrics=percpu,sched,tcp,udp,disk,diskIO,accelerator,hugetlb,referenced_memory,cpu_topology,resctrl"
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - /var/lib/docker/:/var/lib/docker:ro
 | 
				
			||||||
 | 
					      - /dev/disk/:/dev/disk:ro
 | 
				
			||||||
 | 
					      - /sys:/sys:ro
 | 
				
			||||||
 | 
					      - /var/run:/var/run:ro
 | 
				
			||||||
 | 
					      - /:/rootfs:ro
 | 
				
			||||||
 | 
					      - /sys/fs/cgroup:/cgroup:ro
 | 
				
			||||||
 | 
					      - /etc/machine-id:/etc/machine-id:ro
 | 
				
			||||||
 | 
					      - /etc/localtime:/etc/localtime:ro
 | 
				
			||||||
 | 
					    deploy:
 | 
				
			||||||
 | 
					      mode: global
 | 
				
			||||||
 | 
					      update_config:
 | 
				
			||||||
 | 
					        order: stop-first
 | 
				
			||||||
 | 
					      resources:
 | 
				
			||||||
 | 
					        reservations:
 | 
				
			||||||
 | 
					          memory: 80M
 | 
				
			||||||
 | 
					    healthcheck:
 | 
				
			||||||
 | 
					      test: wget --quiet --tries=1 --spider http://localhost:9102/healthz || exit 1
 | 
				
			||||||
 | 
					      interval: 15s
 | 
				
			||||||
 | 
					      timeout: 15s
 | 
				
			||||||
 | 
					      retries: 5
 | 
				
			||||||
 | 
					      start_period: 30s
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue