我是 prometheus 、 cadvisor 和 docker-compose 的新手。我制作了一个 docker-compose 文件,其中包括我自己创建的名为 chat 的应用程序,以及一个 mongo 容器。那些工作正常。现在我想用 prometheus 和 cadvisor 监控我的容器。我收到以下错误:
cadvisor | W0419 11:41:00.576916 1 sysinfo.go:203] Nodes topology is not available, providing CPU topology
cadvisor | W0419 11:41:00.577437 1 sysfs.go:348] unable to read /sys/devices/system/cpu/cpu0/online: open /sys/devices/system/cpu/cpu0/online: no such file or directory
cadvisor | E0419 11:41:00.582000 1 info.go:114] Failed to get system UUID: open /etc/machine-id: no such file or directory
Run Code Online (Sandbox Code Playgroud)
和
prometheus | ts=2022-04-19T11:54:19.051Z caller=main.go:438 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="parsing YAML file …Run Code Online (Sandbox Code Playgroud)