David Ashpole
e1d602d7af
create libcontainer handler for common code
2018-02-21 08:53:42 -08:00
David Ashpole
c094ef0d2a
Merge pull request #1859 from andyxning/reduce_labels_for_container_info
...
reduce labels for container info
2018-02-21 08:33:17 -08:00
David Ashpole
812cc819ac
monitor only the upper directory for overlay
2018-02-05 15:49:27 -08:00
Andy Xie
1ccbe6fdd0
reduce labels for container info
2018-01-12 00:14:01 +08:00
Sławek Piotrowski
2648be083a
fix #1607 ; use container creation time provided by Docker handler
2017-11-16 00:41:10 +01:00
David Ashpole
b7959da460
monitor diff directory for overlay2
2017-10-11 14:13:42 -07:00
David Ashpole
888a529088
fix #1743 ; move off of docker/engine-api
2017-09-28 11:05:13 -07:00
David Ashpole
96b603e20a
Merge branch 'master' into overlay2
2017-05-31 14:05:54 -07:00
David Ashpole
de308101e4
Merge branch 'master' into container-restart-count
2017-05-30 11:33:39 -07:00
Ricardo Pchevuzinske Katz
f5a896ef4c
Gather information from RestartCount counter and put into labels
2017-05-30 14:05:14 -03: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
Clayton Coleman
4e25a7951f
Report container FS metrics into prometheus /metrics
...
PerDiskStats reported from cgroups were not being surfaced into
prometheus. In order to properly correlate the metrics, we need to
assign a device label to each metric (which is the FS or device path).
Since blkio cgroup tracks devices, we create a synthetic device
`/dev/NAME` for the metric.
Assign a Device label to each PerDiskStat for the handlers up front, and
then surface the PerDiskStat values into the prometheus metrics. Report
two new metrics - total bytes read and total bytes written.
2017-04-24 20:46:55 -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
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
Calum Lacroix
6d67091c8b
Checks for successful string split on env variable
2017-02-08 22:39:34 +00:00
Calum Lacroix
967e09a3a5
Checks environment variables for empty strings
...
If an environment variable is an empty string, cadvisor panics and fails to start
2017-02-08 18:44:56 +00:00
David Ashpole
9fdeefe3e4
Cadvisor now publishes per-container inode stats using the command 'find . -xdev printf '.'| wc -c' this is published in the v2 api using a new field
2016-10-12 13:16:21 -07:00
Andy Goldstein
d05098b314
Lower ThinPoolWatcher cache miss log level
2016-07-23 07:07:42 -04:00
Matt Wringe
213c254bb7
Add in the ability to expose the ip address of a container.
2016-07-13 13:58:43 -04:00
Tim St. Clair
3fbe18de9a
Merge pull request #1204 from pmorie/dm-support
...
devicemapper thin_ls support
2016-05-18 12:30:05 -07:00
Paul Morie
647224c95a
Add devicemapper support for docker containers
2016-05-18 15:19:20 -04:00
Shaya Potter
6fa3687720
Polling rkt implementation of new watcher inteface ( #1284 )
...
polling rkt implementation of new watcher inteface
2016-05-17 10:34:56 -07: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
019bfaecc7
Delete unused ListThreads container method
2016-05-06 13:45:29 -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
9790a0d3f4
Fix docker GetSpec to include image, labels, and env vars
2016-04-15 15:34:24 -07:00
Tim St. Clair
dc6415aef7
Check docker container existance the same way as raw & rkt
2016-04-15 11:35:31 -07:00
Tim St. Clair
4a8f3e4c93
Read docker container spec from cgroupfs, rather than libcontainer spec
2016-04-14 17:10:03 -07:00
Tim St. Clair
b768a9d1dc
If docker /info does not include ServerVersion, fallback to /version
2016-04-08 17:05:26 -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
Shaya Potter
5e04a224ae
pull out common parts of docker and raw container handlers for use by rkt handler
2016-03-02 16:12:04 -08:00
Vishnu Kannan
da888b11b2
Set spec.hasFilesystem to true by default for docker containers.
2016-03-01 09:58:28 -08:00
Seth Jennings
decac1ac15
nil pointer check
2016-02-29 11:37:25 -06:00
Vish Kannan
06ac85ca29
Merge pull request #1121 from vishh/opt-out-metrics
...
Support opt out for metrics.
2016-02-25 16:25:02 -08:00
Vishnu kannan
2defa0bddb
Adding support for inodes.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-25 15:13:58 -08: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
Vishnu kannan
262ceb075c
Fix docker storage path while calculating disk usage from within the container.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-18 16:44:33 -08:00
Vishnu kannan
6a6abc19f4
remove unused var rwLayerIDDirTemplate
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-05 17:15:00 -08:00
Vishnu kannan
6f0c6d3667
add todo to cleanup variable names in docker handler
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-05 16:32:08 -08: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
f5829b4744
Rework the v2.1 API to expose container Info.
...
Added a test for filesystem stats. Devicemapper backend is ignored
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-03 17:02:49 -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
Tim St. Clair
f5bceae3a2
Merge pull request #1033 from asteris-llc/master
...
Add the support for kafka in cAdvisor's storage, including output of container id and labels
2016-01-29 17:17:06 -05:00
Allison Richardet
80ba7e7db7
Add the support for kafka in cAdvisor's storage, including output of container id and labels
...
Addressing PR Feedback
Addressing PR Feedback
2016-01-27 21:33:57 -06:00
Jimmi Dyson
4c345b1989
Merge pull request #1063 from dqminh/fix-envs-handler
...
Initialize env mapping for labels when creating docker container
2016-01-27 10:46:24 +00:00
Vish Kannan
bef8522964
Merge pull request #1046 from jimmidyson/libcontainer-bump
...
bump(github.com/opencontainers/runc/libcontainer)
2016-01-26 14:35:46 -08:00
Jimmi Dyson
336821d28e
Fix up networking stats for new docker network functionality
2016-01-26 11:32:39 +00:00