Cadvisor

Collect, aggregate, and export detailed data on container resource usage and performance. Get historical usage, network stats, and more to optimize your containers.

Gain a deep understanding of the resource usage and performance of your running containers. This running daemon collects, aggregates, processes, and exports detailed information, giving you clear insights into your containerized environments. For each container, it maintains crucial data, including:

  • Resource isolation parameters
  • Historical resource usage
  • Histograms of complete historical resource usage
  • Network statistics

With native support for Docker, it works out-of-the-box with most container types. Deploy it quickly as a Docker container or run it as a daemonset in Kubernetes. The collected data can be easily exported to various storage plugins for further analysis. It also provides a web UI for direct visualization and a REST API for programmatic access.

Directory Structure

cadvisor
.env
docker-compose.yml

docker-compose.yml

services:
  cadvisor:
    image: gcr.io/cadvisor/cadvisor:v0.49.0
    container_name: cadvisor
    privileged: true
    devices:
      - /dev/kmsg:/dev/kmsg
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:ro
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
    ports:
      - "8080:8080"
    restart: unless-stopped

.env

# cAdvisor does not require any sensitive environment variables for standard operation.
# All configuration is handled via read-only host system volume mounts.

Share:

Ad
Favicon

 

  
 

Similar to Cadvisor

Favicon

 

  
  
Favicon

 

  
  
Favicon