Andy Xie
2c1d001857
add error log for open log file
2017-01-06 10:52:03 +08:00
Random-Liu
3c3f070720
Fix bug in tail.
2016-11-10 11:39:22 -08:00
Euan Kemp
125d026aae
oomparser: Fix tests
...
They had reflect.Equal instead of !reflect.Equal.
They also depended on the current year. Which changed.
2016-10-20 10:50:14 -07:00
Tim St. Clair
afe67fec68
Cleanup comment style: // should be proceded by a space
2016-10-07 17:06:02 -07:00
Tim St. Clair
e7576e5790
Moved google.golang.org/cloud/compute/metadata to cloud.google.com/go/compute/metadata
2016-09-13 13:59:03 -07:00
Erez Freiberger
cf548f1b70
cloudinfo: identify gce from file
2016-07-01 11:43:09 +03:00
Seth Jennings
f3bca888f8
fallback to /dev/mapper device if metadata device is not set in docker info
2016-06-21 16:01:18 -05:00
Tim St. Clair
fb5fb832ed
Merge pull request #1292 from timstclair/tail
...
Fixes for log tailing
2016-05-19 12:16:24 -07:00
Tim St. Clair
2f0af7bb40
Fixes for log tailing
...
IN_ATTRIB inotify events are generated when atime / mtime is changed,
which would cause the tail to be reset, and reread the same log
again (generating duplicate events). Instead, watch the directory for
file delete / move.
Also, use an exponential backoff when retrying opening the file.
2016-05-18 18:53:35 -07:00
Tim St. Clair
18e56007c1
Merge pull request #1290 from timstclair/tail
...
Cleanup tail util from #1264
2016-05-18 14:46:50 -07:00
Tim St. Clair
ee24f28f73
Cleanup tail util from #1264
2016-05-18 14:36:12 -07:00
Tim St. Clair
381f24b4f2
Merge pull request #1264 from sjenning/log-rotate-support
...
add log file tailing and logrotate support
2016-05-18 14:35:54 -07:00
Tim St. Clair
b5d86a7288
Merge pull request #1188 from krallin/dedicated-netlink-connection-master
...
Use a dedicated CpuLoadReader per container
2016-05-18 13:57:37 -07: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
Thomas Orozco
2e1f0e2a08
Use a dedicated CpuLoadReader per container
...
This ensures each goroutine is given its own Netlink connection, and
presumably avoids having a message destined for one goroutine read by
another goroutine.
2016-05-18 09:34:13 +02:00
Seth Jennings
4790ea203b
add log file tailing and logrotate support
2016-05-17 23:12:52 -05:00
Tim St. Clair
4381a51c9b
Merge pull request #1242 from timstclair/timed-store
...
Optimize TimedStore to avoid sort on every data add
2016-05-17 13:21:03 -07:00
Tim St. Clair
2fb6849495
Merge pull request #1254 from sjenning/fix-oom-event-firing
...
fix chan recieve block on oom event
2016-05-17 13:11:47 -07:00
Tim St. Clair
8ccd22d2e2
Merge pull request #1171 from enoodle/aws_cloudinfo_to_read_from_dmi_file
...
cloudinfo: bugfix openstack identified as aws
2016-05-06 16:04:31 -07:00
Tim St. Clair
4d3ef349fb
Move utils/machine -> machine
2016-05-02 15:56:49 -07:00
Seth Jennings
7fd7f20717
fix chan recieve block on oom event
2016-05-02 15:31:28 -05:00
Tim St. Clair
0c89fd1b71
Refactor docker-specific functions from manager to docker
2016-05-02 12:24:31 -07:00
Tim St. Clair
b983d32d96
Refactor manager/machine.go -> utils/machine/info.go
2016-05-02 11:54:10 -07:00
Seth Jennings
5fa60e5019
prefer using systemd for oom monitoring
2016-05-02 13:41:12 -05:00
Tim St. Clair
0973c854d6
Optimize TimedStore to avoid sort on every data add
2016-04-25 16:09:42 -07:00
Dennis Gilmore
fcf54310cd
ClockSpeed not defined in /proc/cpuinfo for 32 bit arm, so return 0.
...
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-04-21 15:27:53 -05:00
Thomas Orozco
ee8701aa97
Netlink: aggressively close cgroup fds
...
Not closing the FDs manually means we have to rely on garbage collection
to run before cgroup FDs are closed. If the system is running a lot of
load probes at a high-frequency (i.e. dynamic housekeeping isn't backing
off because of load variations), we can end up hitting our FD limit due
to keeping around lots of (useless) FDs.
2016-04-13 11:30:48 +02:00
Erez Freiberger
b52cf9f5db
cloudinfo: bugfix openstack identified as aws
...
Because openstack and aws uses the exact same api,
the previous method to check for if running on aws
would have returned true on openstack as well.
2016-03-20 14:52:21 +02:00
derekwaynecarr
4886fb51b2
Fix detection of AWS cloud taking 20s when not on AWS
2016-03-09 16:26:44 -05:00
derekwaynecarr
89676792bd
Fix typo in constant
2016-03-08 13:00:16 -05:00
Erez Freiberger
885649a9b6
cloudinfo: Adding AWS support and InstanceID
2016-02-18 15:28:20 +02: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
Hubert Krauze
7d053578d4
Use uint64 for Memory Stats
2016-01-20 08:46:42 +01:00
Phillip Wittrock
dee3f07b0a
resolves #1030 oomparser_test should get the current year for matching the time of death.
2016-01-04 10:50:08 -08:00
Piotr Szczesniak
9e739ec757
Added possibility to not ignore NumStats field in ContainerInfoRequest
2015-12-08 21:29:56 +01:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08:00
Jimmi Dyson
b9ff5c098c
Fix up ignored/inefficient assigns (via ineffassign linter)
2015-11-27 22:01:54 +00:00
Jimmi Dyson
82810f13cd
Remove unused code (via deadcode linter)
2015-11-27 21:48:33 +00:00
Jimmi Dyson
d1fce20304
Regexp tidy up
2015-11-26 09:14:26 +00:00
Yazen Ghannam
3a7f6d689d
ClockSpeed not defined in /proc/cpuinfo for AArch64, so return 0.
...
Signed-off-by: Yazen Ghannam <yazen.ghannam@linaro.org>
2015-11-20 08:43:32 -06:00
Vish Kannan
cd7657e00a
Merge pull request #886 from linux-on-ibm-z/master
...
Code changes for zSystems (s390x)
2015-11-02 09:52:18 -08:00
shahidhs-ibm
305bb279d8
gofmt changes (new)
...
Formatting in 'utils/machine/machine.go' and
'utils/sysfs/sysfs.go' was incorrect and causing ./build/presubmit.sh
script to fail in Travis giving below error:
The following files are not properly formatted:
$ ./build/presubmit.sh
+./build/check_gofmt.sh .
utils/machine/machine.go utils/sysfs/sysfs.go utils/machine/machine.go
utils/sysfs/sysfs.go
Fixed the formatting using below command:
gofmt -l -w -s utils/sysfs/sysfs.go
gofmt -l -w -s utils/machine/machine.go
2015-10-19 17:13:09 +05:30
shahidhs-ibm
be8de942e7
Revert "gofmt changes"
...
This reverts commit c4a523adb9
.
2015-10-19 17:01:41 +05:30
shahidhs
c4a523adb9
gofmt changes
...
Looks like formatting in 'utils/machine/machine.go' and
'utils/sysfs/sysfs.go' was incorrect and causing ./build/presubmit.sh
script to fail in Travis giving below error:
The following files are not properly formatted:
$ ./build/presubmit.sh
+./build/check_gofmt.sh .
utils/machine/machine.go utils/sysfs/sysfs.go utils/machine/machine.go
utils/sysfs/sysfs.go
Fixed the formatting using below command:
gofmt -l -w -s utils/sysfs/sysfs.go
gofmt -l -w -s utils/machine/machine.go
2015-10-19 16:07:20 +05:30
Shahid
259e42d118
Update sysfs.go
2015-10-05 21:10:58 +05:30
Luciano Antonio Borguetti Faustino
e0c994c4c5
Add flag -k to journalctl show only kernel messages
2015-09-10 23:53:34 -03:00
Shahid
bfa8c9378c
Update sysfs.go
2015-09-02 13:07:40 +05:30
Shahid
0dce153b6e
Update machine.go
2015-09-02 13:00:36 +05:30