Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/cadvisor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.57.0
Choose a base ref
...
head repository: google/cadvisor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.60.0
Choose a head ref
  • 6 commits
  • 2,519 files changed
  • 2 contributors

Commits on Jun 2, 2026

  1. Expose additional cgroup v2 memory.stat metrics

    Surface six memory.stat fields that are already collected by the cgroups
    library but were not exposed by cAdvisor:
    
      - file_dirty / file_writeback (bytes)
      - pgscan / pgsteal (page reclaim activity)
      - workingset_refault_file / workingset_refault_anon
    
    The values are read from the existing MemoryStats.Stats map in
    setMemoryStats (cgroup v2 only; left at zero on cgroup v1) and exposed
    through the v1 info API and new Prometheus counters/gauges under the
    existing "memory" metric set:
    
      - container_memory_file_dirty_bytes
      - container_memory_file_writeback_bytes
      - container_memory_pgscan_total
      - container_memory_pgsteal_total
      - container_memory_workingset_refault_file_total
      - container_memory_workingset_refault_anon_total
    
    Signed-off-by: egorikas <egorgrishechko@gmail.com>
    egorikas authored and dims committed Jun 2, 2026
    Configuration menu
    Copy the full SHA
    1958580 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2026

  1. lib: add github.com/google/cadvisor/lib, a lean kubelet-focused libra…

    …ry module
    
    A subdirectory module holding the kubelet-only surface of cAdvisor (manager,
    container, fs, cache, machine, metrics, storage, stats, watcher, cadvisorflags,
    and lib/model). The manager exposes injection seams that the full binary fills
    in and the kubelet leaves nil, so the library stays lean.
    
    lib/model merges the leaf types of info/v1 and info/v2. Both named a filesystem
    type FsInfo (machine-level vs runtime); since they now share one package, the
    runtime type keeps the name FsInfo and the machine-level one is FilesystemInfo.
    
    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    d700d9b View commit details
    Browse the repository at this point in the history
  2. build: wire the lib module via require+replace and cover it in build/CI

    root and cmd require+replace github.com/google/cadvisor/lib => ./lib (and
    ../lib). build.sh stamps version symbols in lib/version; the Makefile and
    check_gotidy.sh run tests/lint/tidy over the lib module too.
    
    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    435c64e View commit details
    Browse the repository at this point in the history
  3. info/v1, info/v2: alias shared types to lib/model

    info/v1 becomes thin aliases to lib/model plus the v1 consts and docker types.
    info/v2 aliases the identical leaf types and keeps its own ContainerInfo,
    ContainerStats and Spec, plus the from-v1 converters the REST handlers use.
    
    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    b6e9b05 View commit details
    Browse the repository at this point in the history
  4. root: consume the lib module (redirect imports, drop migrated packages)

    Redirect moved-package imports to github.com/google/cadvisor/lib/* and delete
    the duplicated root copies. The storage-driver registry consolidates into
    lib/storage -- root and lib both registered the storage_driver_* flags, which
    would double-register. The remaining root packages (collector, events, perf,
    resctrl, summary, validate, client, ...) adapt to the library.
    
    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    1024739 View commit details
    Browse the repository at this point in the history
  5. cmd: build the binary against lib + register the injection seams

    cmd builds the cAdvisor binary and v1/v2 REST API against lib, registering the
    perf/resctrl factories, summary reader, process-list and app-metrics providers,
    the cpu-load reader, and the events.EventManager (via the library's EventSink)
    into the manager's seams.
    
    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    eb7a559 View commit details
    Browse the repository at this point in the history
Loading