Davanum Srinivas
40e6acb3bb
Reorganize code to allow conditional enablement of runtimes
...
Change-Id: I76583736d7ad39190a1a2bca820d4e957caadc84
2019-04-05 17:37:49 -04:00
Lantao Liu
2522da0ac5
Always collect disk stats for rootfs.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-07 10:32:12 -08:00
viberan
7bb8b34a5b
add raw_cgroup_prefix_whitelist flag and fix issue #2129
2019-02-17 00:37:42 +02: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
Andy Xie
ed6521013f
add raw container cgroup path prefix whitelist
2018-04-16 12:05:51 +08:00
David Ashpole
e1d602d7af
create libcontainer handler for common code
2018-02-21 08:53:42 -08:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging
2017-11-27 19:48:05 -08: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
derekwaynecarr
6c114be580
Expose total inodes
2016-08-02 10:47:51 -04:00
derekwaynecarr
cccf9d5fec
Allow clients to know if inodes are supported on a filesystem
2016-07-26 11:15:07 -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
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
Vish Kannan
bebe18b67a
Merge pull request #1261 from sjpotter/listToCommon
...
move ListContainers code to common and make rkt play nice
2016-05-03 10:12:54 -07:00
Shaya Potter
5ca11bb1a0
move ListContainers code to common and make rkt play nice
...
playing nice means not elliding the system.slice cgroup but allowing the
raw handler to handle it
2016-05-03 07:14:53 -07:00
Tim St. Clair
4d3ef349fb
Move utils/machine -> machine
2016-05-02 15:56:49 -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
4861405904
Refactor common container GetSpec
...
- Pull out the root container cases, since they're only relevant in the
raw container handler
- Pass parameters rather than depending on AbstractContainerInterface
2016-04-14 16:57:52 -07:00
Vishnu kannan
e2717d8bb7
Avoid collecting network stats for non root cgroups in raw handler.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-03-15 12:16:11 -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
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
07136d4e90
Do not fail stats collection if cpu_cfs_quota is not enabled.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-23 17:20:02 -08:00
Florian Koch
669bc4abfa
add cgroup quota and period support / add missing tests
2016-02-02 20:33:11 +01:00
Jimmi Dyson
4e9d29a408
Fix FS usage goroutine leaks
2016-01-14 19:30:48 +00:00
Vishnu kannan
a6daa760c8
Fix goroutine leak in docker fs handler logic.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-12-04 11:19:49 -08:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08: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
17622ecba1
Rename readInt64 -> readUInt64 for clarity
2015-11-25 16:42:33 +00:00
Alex Mavrogiannis
4533dd7d18
changed libcontainer dependency to runc
2015-11-21 14:04:01 -08:00
mqliang
ce001dcd4e
Fix imported package names to not use mixedCaps or under_scores
2015-10-22 12:10:57 +08: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
Jimmi Dyson
d5fa97c998
Get network stats by switching network namespace on newer Docker
...
versions.
Fixes #822
2015-08-25 23:27:01 +01:00
Rohit Jnagal
a123fd72d8
Add logic to read custom metric config files from container root.
...
Docker does not provide the rootfs path through docker inspect or statefile
and the path is dependent on the storage driver being used.
Instead of enumerating the storage drivers, we pick a pid from the container
and get the config from /proc/pid/root. Although a bit expensive, this method
works for non-docker containers too.
2015-07-22 15:45:07 +00:00
Alex Mavrogiannis
9666c8b38f
population of memory limit for the machine container
2015-07-07 14:15:38 -07:00
Victor Marmol
72df0cb098
Send data for all interfaces for raw containers
2015-06-08 09:58:47 -07:00
Victor Marmol
1f248ee956
Add inotify watches as debug information
2015-05-21 14:40:49 -07:00
Victor Marmol
392e1be9e5
Use one InotifyWatcher
2015-05-21 14:40:49 -07:00
Victor Marmol
ab032efda9
Report the last cgroup destroy event.
2015-05-21 10:11:09 -07:00
Victor Marmol
36a6e68169
Separate inotify handling into its own object.
...
This makes it easier to ensure the error conditions are handled well and
that we don't leak watches.
Fixes #703
2015-05-21 08:36:47 -07:00
Rohit Jnagal
5e10989a78
Add an api to support ps/top.
2015-05-12 00:06:47 +00:00
Rohit Jnagal
e43ada2e00
Add 'bytes available' to fs info.
...
The current capacity and usage numbers are insufficient to figure out
actual bytes available for a non-root user for the fs. Available is the
value used by df and the one we need to track to detect low diskspace
condition.
2015-05-11 19:27:40 +00:00
Rohit Jnagal
4b4312b290
Improve approximation of container creation time.
...
Containers with subcontainers always report creation time to be same as the time
of creation of the latest subcontainer.
Still not an ideal solution, but accurate for most practical purposes.
2015-05-07 18:14:54 +00:00
Victor Marmol
1a1a1faa7e
Update inotify dependency.
2015-05-04 10:15:21 -07:00
Rohit Jnagal
d0424eca0f
Add --docker_only flag to enable tracking for only docker containers and root.
...
This reduces unnecessary load on the system and also cleans up the UI clutter.
Currently defaulted to false.
2015-04-30 23:34:44 +00:00
Victor Marmol
64c0d3d8c3
Migrating cAdvisor to new libcontainer.
...
Backwards compatability is maintained with older versions of
libcontainer.
2015-04-10 14:51:29 -07:00