talira

cAdvisor

Analyzes resource usage and performance characteristics of running containers

open sourceApache-2.0self-hostablefree

cAdvisor (Container Advisor) is a daemon that collects, aggregates, processes and exports resource usage and performance data for running containers: for each container it keeps resource isolation parameters, historical usage, histograms and network statistics, by container and for the whole machine. It supports Docker natively and most other container types, and runs as a Docker container, a static Go binary or a Kubernetes DaemonSet. It serves a web UI, a versioned REST API and Prometheus metrics on /metrics, and can export stats to storage drivers such as InfluxDB, Elasticsearch, Kafka, BigQuery, Redis and StatsD. Google started it, and it is Apache-2.0.

Problems it solves

  • which of my Docker containers is eating all the CPU and memory on this host
  • graph per-container CPU, memory, disk I/O and network usage over time
  • expose container resource metrics on an endpoint Prometheus can scrape
  • see when a container is being CPU throttled or hitting its memory limit
  • a small web page showing live resource usage of every container on a machine
  • get notified of out-of-memory kills in my containers through an API
  • send per-container stats to InfluxDB or Elasticsearch
  • collect container metrics on every Kubernetes node with a DaemonSet
  • track filesystem usage and inodes per container

Features

  • per-container resource isolation parameters, historical usage, histograms and network statistics
  • machine-wide stats alongside per-container stats
  • native Docker support, nested container hierarchy
  • Prometheus metrics on /metrics, with flags to enable or disable metric groups
  • web UI on its port
  • versioned REST API, including container events such as OOM kills
  • official Go client
  • storage drivers for BigQuery, Elasticsearch, InfluxDB, Kafka, Prometheus, Redis, StatsD and stdout
  • runs in Docker, as a standalone static binary or as a Kubernetes DaemonSet with kustomize

Limitations

  • Doesn't run on Windows or macOS: releases ship Linux binaries and container images only12

Capabilities

Has an APIplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what cAdvisor does.

  1. Beszel Lightweight server monitoring with historical data, docker stats, and alerts
  2. Netdata Full-stack observability: metrics, logs, traces and more, per second
  3. Node exporter Prometheus exporter for hardware and OS metrics exposed by *NIX kernels
  4. windows_exporter A Prometheus exporter for Windows machines
  5. kube-state-metrics Add-on agent to generate and expose cluster-level metrics about the state of Kubernetes objects

Compare cAdvisor with the top 3