George Angel
63d82dd12e
Do not disable disk and network metrics ( #2236 )
...
* Do not disable disk and network metrics, and disable sched and process metrics
2019-05-22 17:47:09 -07:00
David Ashpole
9092e7bc18
Merge pull request #2241 from raytung/fix/unknown_cloudprovider_amazon_linux_2_custom
...
Fixes #2232
2019-05-15 09:58:52 -07:00
Ray Tung
189cc9ce3c
Fixes #2232
...
This commit fixes the bug in #2232 where cadvisor was not able to detect
the cloud provider if it's running on a custom AMI derived from
Amazon Linux 2.
It does so by checking /etc/os-release. However, from what I've read,
/etc/os-release is pretty much a systemd thing. Although Amazon Linux 2
comes with systemd, cadvisor cannot assume the existence of systemd in
other AMIs / OSes, therefore we would only be checking for
/etc/os-release if all other methods fail us.
2019-05-15 23:52:28 +10:00
David Ashpole
1654de2f62
Merge pull request #2239 from lorenz/nocgo-cgroupstats
...
Remove use of cgo for cgroup stats and refactoring of constants
2019-05-14 12:03:59 -07:00
Lorenz Brun
20c85d3460
Replace use of cgo for getting number of online CPUs
2019-05-13 21:54:02 +02:00
Lorenz Brun
1493d8af7d
Remove cgo use and lots of ad-hoc defined kernel constants
2019-05-13 03:04:26 +02:00
Lorenz Brun
9fdea2af96
Update vendored golang.org/x/sys/unix
2019-05-13 03:04:18 +02:00
Erik Jansson
0a8da7895f
Adding ability to handle OverlayFS mounts
...
Signed-off-by: Erik Jansson <erikja@axis.com>
2019-05-03 13:23:28 +02:00
David Ashpole
fe29c517bc
Merge pull request #2233 from george-angel/master
...
add manifests for rbac and psps
2019-05-02 16:55:08 -07:00
George Angel
18566a56f8
add manifests for rbac and psps
...
Allow cadvisor to run in clusters with PSPs enabled
2019-05-01 21:36:39 +01:00
David Ashpole
10f73b2b5b
Merge pull request #2230 from abelgana/master
...
Update GLIBC_VERSION and alpine Version
2019-04-29 09:48:43 -07:00
abelgana
67309522bd
Update GLIBC_VERSION and alpine Version
...
Fix security threads.
2019-04-29 08:13:49 -04:00
David Ashpole
9620b8cf93
Merge pull request #2216 from choury/master
...
Support multiple storage backends
2019-04-26 08:56:01 -07:00
David Ashpole
6bc176e3ef
fix code safe linter errors
2019-04-25 13:05:46 -07:00
Tim Allclair (St. Clair)
9db8c7dee2
Merge pull request #2217 from liggitt/plugin-init-hooks
...
move plugin-specific init code into plugin hooks
2019-04-11 09:39:13 -07:00
Jordan Liggitt
f8a73e018b
Move fs.Context to types.go
...
This config struct is now used in the plugin InitializeContext method, so it should be defined in the os-neutral types.go file
2019-04-11 13:50:03 +00: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
choury
58c04bc7cb
Support multiple storage backends
2019-04-10 09:38:17 +08:00
Jordan Liggitt
f7b509202d
Restore manager.New signature, initialization code
2019-04-09 16:59:14 -04:00
David Ashpole
1276700730
Merge pull request #2209 from dims/conditional-registration-of-runtimes
...
Reorganize code to allow conditional enablement of runtimes
2019-04-05 14:47:28 -07: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
4ca6c2127b
Merge pull request #2213 from tallclair/cloud
...
Remove CloudProvider SDK dependencies
2019-04-04 13:20:16 -07:00
Tim Allclair
c492e4a814
Remove CloudProvider SDK dependencies
2019-04-04 10:07:24 -07:00
David Ashpole
68532f6976
Merge pull request #2211 from mas9612/fix-documentation
...
docs: fix typo
2019-04-01 10:38:52 -07:00
Masato Yamazaki
23bfbb9add
fix typo
2019-04-01 16:55:02 +09: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
David Ashpole
50076daa81
Merge pull request #2201 from haircommander/info_error_fix
...
container: crio: Return more informative error
2019-03-22 10:49:15 -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
Konstantinos Tsakalozos
28d11adfdb
Fix stats in LXD with ZFS storage pool ( #2189 )
...
Fix stats in LXD with ZFS storage pool
2019-03-12 09:38:27 -07:00
David Ashpole
7e9ea00b05
Merge pull request #2191 from Random-Liu/always-rootfs-disk-stats
...
Always collect disk stats for rootfs.
2019-03-07 10:42:43 -08: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
511ec9ef82
Merge pull request #2180 from dashpole/v0.33_changelog
...
v0.33.0 Changelog
2019-02-27 10:10:53 -08:00
David Ashpole
491c0ed34f
v0.33.0 Changelog
2019-02-26 17:05:53 -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
David Ashpole
cd92744b92
Merge pull request #2156 from dtrejod/dt/ec2-gen5-detection
...
Fix Amazon VM detection on EC2 Nitro generation.
2019-02-13 10:30:17 -08:00
David Ashpole
634fb4bb86
Merge pull request #2167 from nekop/lower-loglevel-cgroups-read-file
...
Change log level to warning instead of error when cgroups file read f…
2019-02-08 08:05:25 -08: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
0995283c32
Merge pull request #2160 from gaorong/victimContainerName
...
change default oom victim container name
2019-02-05 09:27:02 -08:00
David Ashpole
9b2d88cd62
Merge pull request #2162 from gaorong/cleanup_oomparser_test
...
cleanup oom parser test
2019-02-04 09:53:25 -08:00
gaorong
1ea111582c
cleanup oom parser test
2019-02-02 10:08:58 +08:00
gaorong
407289527c
change default oom victim container name
2019-02-02 10:00:57 +08:00
Devin Trejo
fe06d6ebd4
Fix Amazon VM detection on EC2 Nitro generation.
2019-01-29 12:02:23 -05:00