Davanum Srinivas
40e6acb3bb
Reorganize code to allow conditional enablement of runtimes
...
Change-Id: I76583736d7ad39190a1a2bca820d4e957caadc84
2019-04-05 17:37:49 -04:00
WanLinghao
4eab5b671e
Add support to disable diskIO metrics
2019-01-15 09:43:33 +08:00
Davanum Srinivas
4da6d809be
Move from glog to klog
...
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
David Ashpole
c225d06adf
don't emit prometheus metrics that are ignored
2018-07-09 13:17:49 -07:00
James Ravn
57e17d8be2
Add timeouts for docker queries
...
As these can otherwise block indefinitely due to docker issues.
This is to fix https://github.com/kubernetes/kubernetes/issues/53207 ,
where kubelet relies on cadvisor for gathering docker information as
part of its periodic node status update.
2017-12-05 13:50:48 +00:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging
2017-11-27 19:48:05 -08:00
David Ashpole
888a529088
fix #1743 ; move off of docker/engine-api
2017-09-28 11:05:13 -07:00
Karl
5a033c064e
Add runtime options for TLS support
2017-08-24 15:14:33 +02:00
David Ashpole
96b603e20a
Merge branch 'master' into overlay2
2017-05-31 14:05:54 -07:00
Andy Goldstein
69c085d9fa
Cache the Docker thin pool name
...
Cache the Docker thin pool name in the dockerFactory and pass it to each Docker container handler,
instead of calling `docker info` each time a new container handler is created, as the thin pool name
is extremely unlikely to change.
2017-05-30 11:50:58 -04:00
Bilal Amarni
e0c8ec569d
[docker] add overlay2 storage driver
...
Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2017-04-13 13:39:45 +02:00
Manjunath A Kumatagi
8fb1158353
Add Docker API version
2017-04-04 10:56:11 +05:30
Brian Akins
feecd47daa
Add watcher for zfs similar to devicemapper
...
minor cleanup
ensure we look at parent dataset for limit, etc
2017-03-15 18:31:11 -04:00
Derek Carr
b172ba65b4
disable thin_ls due to excessive iops
2017-02-09 10:29:58 -05:00
Derek Carr
4ad5c58f6a
Ignore any .mount cgroup in docker handler
2017-01-16 11:02:37 -05:00
Andy Goldstein
2b525ff87e
Ensure minimum kernel version for thin_ls
...
Ensure that kernel >= 4.4.0 or RHEL/Centos 7 kernel >= 3.10.0-366 exists before starting the thin
pool watcher. Prior versions have a bug in which reserving and releasing the metadata snapshot can
cause thin pool corruption.
2016-08-04 16:14:40 -04:00
Seth Jennings
eafff745a5
only fail fs stat gather if metadata device not found
2016-06-21 16:05:37 -05:00
Paul Morie
c37d048e1b
Check for thin_ls binary in path when using ThinPoolWatcher
2016-06-14 13:19:05 -04:00
Paul Morie
647224c95a
Add devicemapper support for docker containers
2016-05-18 15:19:20 -04:00
Shaya Potter
e02632463b
Refactor container watching out of raw handler into its own inteface / package
2016-05-11 20:27:10 -07:00
Tim St. Clair
d1868287db
Clean up docker root dir
2016-05-06 19:31:36 -07:00
Tim St. Clair
4c506006f2
Don't validate docker state file, since it's no longer used
2016-05-06 19:29:24 -07:00
Tim St. Clair
0c89fd1b71
Refactor docker-specific functions from manager to docker
2016-05-02 12:24:31 -07:00
Lantao Liu
ece4c555cc
switch to the new engine-api
2016-04-25 19:22:05 -07:00
Tim St. Clair
b553e02476
Fix cAdivsor docker validation
2016-04-08 17:05:26 -07:00
Tim St. Clair
d9c864324b
Fix usage of the latest go-dockerclient
2016-04-04 18:01:47 -07:00
Vishnu kannan
36415f465a
Support opt out for metrics.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-24 15:57:31 -08:00
Jimmi Dyson
31dcb5f3b7
Remove systemd docker container name check
2016-02-06 20:38:32 +00:00
Vishnu kannan
dabec0a6b2
Fix fs stats handling for non-aufs storage drivers.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-05 16:32:07 -08:00
Vishnu kannan
3f75344053
Fallback to flag defined value for storage dir in case docker info
...
doesn't provide the storage dir.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-03 18:00:59 -08:00
Vishnu kannan
59c03672d0
Handle fs metrics for docker version >= 1.10.0
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-02 10:20:20 -08:00
Vishnu kannan
5ab2f45fc6
Use storage dir from docker info for filesystem usage tracking.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-01 18:20:00 -08:00
Vish Kannan
01434a1c54
Merge pull request #1020 from miguel250/zfs-support
...
Add support ZFS filesystem
2016-01-13 11:52:37 -08:00
Daniel Dao
e5b6bfa94f
add whitelisted env as container metadata
...
This add Envs to container spec as a metadata source. When using prometheus
exposition format, they will be merged into the list of metrics' labels.
Also changed the cli flag to docker_env_metadata_whitelist, and add refenrences
of whitelist envs to API
Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
2016-01-13 11:22:13 +00:00
Florian Pfitzer
009761cb53
Export image name and env variables as prometheus labels
2016-01-05 10:49:20 +00:00
Miguel Perez
e0fef76668
Add support ZFS filesystem
...
- fix container usage stat not loading on first load
2015-12-15 15:41:19 -05:00
Vishnu Kannan
cf0adcc817
Add support for Overlayfs.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-12-02 15:43:34 -08:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08:00
Jimmi Dyson
82810f13cd
Remove unused code (via deadcode linter)
2015-11-27 21:48:33 +00:00
Jimmi Dyson
f9eb56e800
Merge pull request #966 from afein/godep_update_runc
...
[Godeps] changed docker/libcontainer dependency to runc/libcontainer
2015-11-26 15:19:28 +00:00
Jimmi Dyson
d1fce20304
Regexp tidy up
2015-11-26 09:14:26 +00:00
Alex Mavrogiannis
4533dd7d18
changed libcontainer dependency to runc
2015-11-21 14:04:01 -08:00
Vishnu kannan
401cbbc48f
Add a --nosystemd
flag to avoid assuming systemd to be the cgroups
...
owner for docker containers.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-11-16 10:37:54 -08:00
Jimmi Dyson
b8b6e1bac1
Support devicemapper storage for docker images dir
...
Fixes #920
2015-10-21 09:56:33 +01:00
Jimmi Dyson
357e6a0f23
Reuse cached docker client
...
Fixes #925
2015-10-20 20:15:54 +01:00
Bas van der Lei
f8eb8cc982
validate name with isContainerName func
2015-10-02 13:49:27 +02:00
Bas van der Lei
9931854585
remove dead code
2015-10-02 13:42:40 +02:00
Bas van der Lei
13674cf06c
optimize dockerCgroupRegexp
2015-09-27 00:20:52 +02:00
Bas van der Lei
7788c8bd27
Ignore systemd 'containers' in the docker driver
2015-09-23 23:55:35 +02:00
Jimmi Dyson
7e10398a50
Use proc fs to get network stats.
...
Reasons discussed in
https://github.com/google/cadvisor/issues/822#issuecomment-135811901 &
following.
2015-08-29 00:20:07 +01:00