Difference between revisions of "CAdvisor"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[wikipedia:cAdvisor (Container Advisor)]]
+
{{lc}}
 +
[[wikipedia:cAdvisor (Container Advisor)]] It is a running daemon that collects, aggregates, processes, and exports information about running [[containers]].
 +
* https://github.com/google/cadvisor
 +
* [[gcr.io]]/cadvisor/cadvisor
  
  
 +
* Storage plugins: https://github.com/google/cadvisor/blob/master/docs/storage/README.md
 +
 +
[[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
 +
 +
* Connect: http://localhost:8080/
 +
 +
== [[Prometheus]] ==
 +
- [[job_name]]: 'cadvisor'
 +
  scrape_interval: 5s
 +
  static_configs:
 +
    - targets: ['cadvisor:[[8080]]']
 +
 +
== Related ==
 +
* [[Kubelet]]
 +
* [[cAdvisor releases]]
 +
* [[Prometheus node exporter]]
 +
* [[9323]] [[dockerd]]
  
 
== See also ==
 
== See also ==
 +
* {{cAdvisor}}
 
* {{Containers}}
 
* {{Containers}}
* {{K8s}}
+
* {{monitoring}}
 +
 
 +
[[Category:Containers]]
 +
[[Category:Monitoring]]

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: