Difference between revisions of "CAdvisor"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
  
  [[docker run]] [[--volume]]=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor [[--privileged]] [[--device]]=/dev/kmsg gcr.io/cadvisor/cadvisor:v0.47.0
+
  [[docker run]] [[--volume]]=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro [[--publish]]=8080:8080 --detach=true --name=cadvisor [[--privileged]] [[--device]]=/dev/kmsg gcr.io/cadvisor/cadvisor:v0.47.0
  
 
* Connect: http://localhost:8080/
 
* Connect: http://localhost:8080/
 +
 +
== [[Prometheus]] ==
 +
- [[job_name]]: 'cadvisor'
 +
  scrape_interval: 5s
 +
  static_configs:
 +
    - targets: ['cadvisor:[[8080]]']
  
 
== Related ==
 
== Related ==
 
* [[Kubelet]]
 
* [[Kubelet]]
 +
* [[cAdvisor releases]]
 +
* [[Prometheus node exporter]]
 +
* [[9323]] [[dockerd]]
  
 
== See also ==
 
== See also ==

Latest revision as of 11:40, 31 December 2023

wikipedia:cAdvisor (Container Advisor) It is a running daemon that collects, aggregates, processes, and exports information about running containers.


E1124 11:43:23.882646    2159 cadvisor_stats_provider.go:415] "Partial failure issuing cadvisor.ContainerInfoV2" err="partial failures: [\"/kubepods/besteffort/pod57eb9fcd-e4c3-4b91-92bd-f1205c1915b8\": RecentStats: unable to find data in memory cache], [\"/kubepods/besteffort/podc89e8745-e50b-482c-bb11-1d87cd4f63e7\": RecentStats: unable to find data in memory cache ]"


docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor --privileged --device=/dev/kmsg gcr.io/cadvisor/cadvisor:v0.47.0

Prometheus[edit]

- job_name: 'cadvisor'
  scrape_interval: 5s
  static_configs:
    - targets: ['cadvisor:8080']

Related[edit]

See also[edit]

Advertising: