Commit Graph

446 Commits

Author SHA1 Message Date
Jordan Liggitt
855ad76125 Move storage, mesos, global container integrations under cmd/internal 2020-03-23 16:48:40 +00:00
Kiel Chan
6ef5a842ab
support to expose environments with prefix specified (#2430)
* support to expose envs with prefix specified
2020-03-20 10:05:00 -07:00
sulixu
b71d99e0ea
Add hugetlb stats (#2420)
* add hugetlb stats, disabled by default
2020-03-19 22:53:59 -07:00
ChenQingya
e49c397a3b refactor AllMetrics to support external reference
Signed-off-by: ChenQingya <qingya.chen520@gmail.com>
2020-03-16 15:38:01 +08:00
Zhihong Yu
13807d165b
Check extraErr before accessing extraUsage.Bytes (#2401)
* Check extraErr before accessing extraUsage.Bytes

Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-09 10:14:06 -07:00
David Ashpole
ad437f296a
Merge pull request #2402 from tedyu/period-adjuster
Adjust period after each fh.update() call
2020-02-28 15:01:05 -08:00
Ted Yu
78af2b02e1 Adjust period after each fh.update() call
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-02-28 14:49:57 -08:00
Ted Yu
b321dc68e8 Verify that fsType is found for device
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-02-28 12:42:18 -08:00
Ted Yu
21dc5c3d72 Assign quota if the parsing doesn't encounter error 2020-02-24 11:25:59 -08:00
Davanum Srinivas
10ad7756af
moving docker/utils into container/docker 2020-01-22 23:00:08 -05:00
Davanum Srinivas
f1fa3d4631
Update to containerd 1.3.2
- `go get -u github.com/containerd/containerd`
- `go mod vendor`
2020-01-08 11:57:59 -05:00
ChenQingya
43e78242ea split advanced tcp metrics from original tcp metrics as advtcp 2020-01-07 12:04:35 +08:00
ChenQingya
0a9365b238 add advance tcp stats, like netstat -s 2020-01-03 15:25:52 +08:00
chenkaiyue
d553c7485e RetryGettingDockerRoot and log when error 2019-12-21 14:56:32 +08:00
Sahil Rihan
a09cdda5cf Add ulimit metrics 2019-12-06 15:38:02 -08:00
David Ashpole
10bce1cd55
Merge pull request #2320 from dims/drop-support-for-rkt
Drop support for rkt - which is now archived
2019-10-07 11:29:27 -07:00
Davanum Srinivas
b35086151a
Drop support for rkt - which is now archived
Change-Id: I4bc38990251fe12be521a242ff9b9c81e2d03501
2019-10-01 20:03:22 -04:00
Sashank Appireddy
4035ea225c Update the reference to Source attribute for mesos containers. 2019-10-01 10:36:17 -07:00
Giuseppe Scrivano
60f064ee41
cgroup: initial support for cgroups v2
add some initial support for cgroups v2.  Not all the stats
supported on cgroups v1 are supported, e.g. it is not possible to read
percpu usage.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-09-06 21:26:35 +02:00
Sashank Appireddy
249a1d57bc Provide a config knob to disable collecting root Cgroup stats 2019-08-09 11:28:04 -07:00
Seth Jennings
73b0de8389 container/crio: retry getting pid if 0 2019-08-08 11:21:42 -05:00
Tarun Pothulapati
daa036418b Use k8s.io/utils/inotify and resolved godep conflicts (#2269)
Use k8s.io/utils/inotify and resolved godep conflicts

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
2019-07-18 09:48:52 -07:00
qinng
83240cc997 add socket number for process stat (#2260) 2019-07-15 09:33:09 -07:00
Kiel Chan
2ccad4b42f add pids stats (#2257)
Add thread stats
2019-07-03 08:03:53 -07:00
Lorenz Brun
20c85d3460 Replace use of cgo for getting number of online CPUs 2019-05-13 21:54:02 +02:00
Jordan Liggitt
a022fa71b7 Split docker context initialization 2019-04-11 13:50:03 +00:00
Jordan Liggitt
e9a44a2984 Split crio context initialization 2019-04-11 13:50:03 +00:00
Jordan Liggitt
6757727a00 Split rkt context initialization 2019-04-11 13:50:03 +00:00
Jordan Liggitt
7dc4594b32 Add InitializeFSContext hook to plugins 2019-04-11 13:50:03 +00:00
Jordan Liggitt
e24fd90ae9 Move auto-registration to explicit install packages, register plugin interfaces 2019-04-11 13:50:03 +00:00
Davanum Srinivas
40e6acb3bb
Reorganize code to allow conditional enablement of runtimes
Change-Id: I76583736d7ad39190a1a2bca820d4e957caadc84
2019-04-05 17:37:49 -04:00
David Ashpole
52f7d1d896
Merge pull request #2203 from 0902horn/configurable-containerd-factory
Make the containerd factory configurable
2019-03-26 11:27:11 -07:00
0902horn
150c78bd12 Make the containerd factory configurable 2019-03-22 16:35:33 +08:00
Peter Hunt
1e13a85609 container: crio: Return more informative error
Before, making a ContainerInfo request returned an uninformative message about failing to decode json.
Fix this by catching response codes that aren't 200, and return a more informative message.

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-03-21 15:24:05 -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
David Ashpole
05529e2036
Merge pull request #2171 from namreg/replace-du-and-find
fs: get inodes and disk usage via pure go
2019-02-25 10:18:09 -08:00
Igor German
046818d64c fs: get inodes and disk usage via pure go 2019-02-22 21:46:14 +03:00
David Ashpole
103288868b
Merge pull request #2164 from viberan/master
add docker_only_prefix_whitelist flag and fix issue #2129
2019-02-19 10:58:36 -08:00
viberan
7bb8b34a5b add raw_cgroup_prefix_whitelist flag and fix issue #2129 2019-02-17 00:37:42 +02:00
Takayoshi Kimura
f988ade02d Change log level to warning instead of error when cgroups file read failed.
Because cgroups file may not exist at the timing of the read, it's better not to use error level.
2019-02-07 14:19:22 +09:00
David Ashpole
8240c4af0b
Merge pull request #2103 from WanLinghao/disable-diskio
Add support to disable diskIO metrics
2019-01-15 09:20:04 -08:00
WanLinghao
4eab5b671e Add support to disable diskIO metrics 2019-01-15 09:43:33 +08:00
Chang Lan
25dc521186 Check whether Mesos task labels are available 2018-12-04 14:06:47 -08:00
Davanum Srinivas
4da6d809be
Move from glog to klog
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Nao YONASHIRO
3d284e19eb fix: unwrap error for os.IsNotExist 2018-11-07 15:01:18 +09:00
David Ashpole
84e52259f6
Merge pull request #2093 from sashankreddya/cache_process_metrics
Cache process metrics
2018-11-06 13:38:55 -08:00
Sashank Appireddy
da29418c31 cache process metrics 2018-11-06 13:29:14 -08:00
David Ashpole
48605ecb89
Merge pull request #2085 from orisano/master
improve ListDirectories performance
2018-11-06 09:48:51 -08:00
Nao YONASHIRO
2300be56d7 feat: use karrick/godirwalk 2018-11-02 08:22:42 +09:00
Sashank Appireddy
02ecf721f5 Emit number of processes and file descriptors of a container 2018-10-29 16:55:34 -07:00