google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
16.96k stars 2.31k forks source link

CPU topology error #3385

Open PostWarTacos opened 1 year ago

PostWarTacos commented 1 year ago

Any help would be awesome!!

Receiving error

cadvisor  | W0822 00:31:08.717159       1 sysinfo.go:203] Nodes topology is not available, providing CPU topology
cadvisor  | W0822 00:31:08.723721       1 machine.go:65] Cannot read vendor id correctly, set empty.

Compose file

version: "3"

services:

# cAdvisor
  cadvisor:
    container_name: cadvisor
    image: gcr.io/cadvisor/cadvisor-arm64:v0.47.2
    volumes:
      - /:/rootfs:ro
      - /etc/machine-id:/etc/machine-id:ro
      - /proc/cpuinfo:/proc/cpuinfo:ro
      - /dev/kmsg:/dev/kmsg:rw
      - /var/run:/var/run:rw
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
    # environment:
      # detach: "true"
    ports:
      - 8282:8080
    privileged: "true"
    restart: unless-stopped
roman-vynar commented 1 year ago

Same here after upgrade from 0.39.3 to 0.47.2:

# /opt/cadvisor/cadvisor     -listen_ip=127.0.0.1 -port=9098 -housekeeping_interval=5s -logtostderr     -disable_metrics=advtcp,cpu_topology,cpuset,disk,diskIO,memory_numa,tcp,udp,percpu,sched,process,hugetlb,referenced_memory,resctrl
W0830 12:48:08.927701 1221697 machine.go:65] Cannot read vendor id correctly, set empty.

I guess it's not necessary to warn about empty vendor id. Running on Amazon EC2 aarch64 GNU/Linux

# cat /proc/cpuinfo
processor   : 0
BogoMIPS    : 2100.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs paca pacg dcpodp svei8mm svebf16 i8mm bf16 dgh rng
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part    : 0xd40
CPU revision    : 1

processor   : 1
BogoMIPS    : 2100.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs paca pacg dcpodp svei8mm svebf16 i8mm bf16 dgh rng
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part    : 0xd40
CPU revision    : 1
ignacio-borrajo commented 1 year ago

Same for me running on macos:

cadvisor                        | W0918 20:33:38.457028       1 sysinfo.go:203] Nodes topology is not available, providing CPU topology
cadvisor                        | W0918 20:33:38.462472       1 machine.go:65] Cannot read vendor id correctly, set empty.`

Besides, I'm not getting the name or image of the containers and that crushes a lot of queries