Commit Graph

262 Commits

Author SHA1 Message Date
David Ashpole
fdeff475ca
Merge pull request #2434 from katarzyna-z/kk-fix-type-nvm-info
Fix typos related to NVMinfo struct and GetMachineMemoryByType function
2020-03-20 09:28:25 -07:00
sulixu
b71d99e0ea
Add hugetlb stats (#2420)
* add hugetlb stats, disabled by default
2020-03-19 22:53:59 -07:00
Katarzyna Kujawa
22a367d96f Fix typos related to NVMinfo struct and GetMachineMemoryByType function
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-19 09:29:09 +01:00
Katarzyna Kujawa
e62441a65a
Extending machine API by NVM memory mode capacity (#2431)
* Extending machine API by NVM memory and app direct mode capacity

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-18 08:57:25 -07:00
Maciej "Iwan" Iwanowski
86d31c9562
Renaming serialized struct
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-13 10:59:50 +01:00
Maciej "Iwan" Iwanowski
338904e6ed
Using a struct to store all NVM-related information
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-13 10:56:47 +01:00
Maciej Iwanowski
6dac5794f7
Retrieving NVM average power budget
Conflicts:
	info/v1/machine.go

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-13 10:56:38 +01:00
Maciej "Iwan" Iwanowski
608b9589f2
Adding missing struct tags for JSON consistency
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-12 09:33:21 +01:00
iwankgb
a8de0e0fff
Nvm and dimm information (#2415)
* Adding information about memory capacity and number of memory DIMMs by memory type

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-06 11:56:13 -08:00
David Ashpole
7152b60680
Merge pull request #2414 from katarzyna-z/kk-machine-api-cores-sockets
Extending machine API by number of physical cpu cores and cpu sockets
2020-03-05 17:32:25 -08:00
Katarzyna Kujawa
a5890578dd Extending machine API by number of cpu physical cores and cpu sockets
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-03 09:51:31 +01:00
Alexander Voitov
22c5e624bc export application metrics via /metrics 2020-02-03 00:31:05 +03: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
Sahil Rihan
a09cdda5cf Add ulimit metrics 2019-12-06 15:38:02 -08:00
sewon.oh
cb3a2bef46
Remove duplicated logic
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-10-04 14:31:01 +09:00
sewon.oh
d138b59aa2
Add hugepage info to v1 node structure
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-09-05 15:12:13 +09: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
Davanum Srinivas
4da6d809be
Move from glog to klog
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Sashank Appireddy
da29418c31 cache process metrics 2018-11-06 13:29:14 -08:00
Sashank Appireddy
02ecf721f5 Emit number of processes and file descriptors of a container 2018-10-29 16:55:34 -07:00
William Zhang
7961198a0c fix spelling errors
Signed-off-by: William Zhang <zhang.wanmin@zte.com.cn>
2018-09-28 15:49:25 +08:00
Gijs Kunze
9e175e9ea9 Adds mapped_file metric 2018-08-09 15:14:46 +02:00
nielsole
08f0c2397c Adding /proc/<pid>/schedstat (#1872)
Add /proc/<pid>/schedstat metrics for scheduler metrics
2018-03-08 09:27:06 -08:00
Andy Xie
1ccbe6fdd0 reduce labels for container info 2018-01-12 00:14:01 +08:00
David Ashpole
3d6ad6dd86 on demand metrics 2017-11-20 14:51:04 -08:00
Andy Xie
9211091bdc marshal device name to json output 2017-11-15 13:45:57 +08:00
Rohit Agarwal
126fb2232e Add accelerator metrics to the API.
The structure is generic to support most hardware accelerators like
GPUs, TPUs etc.

Note that the prometheus label for id is called acc_id, so that it
doesn't conflict with some other label that maybe called id.
2017-11-01 14:41:35 -07:00
Derek Carr
9ea61176bf Expose memory.max_usage_in_bytes in container stats 2017-10-10 17:31:31 -04:00
Yang Guo
a5adaad26d Add an API to get FsStats from filesystem UUID 2017-08-23 12:33:42 -07:00
Derek Carr
556c7b125a Machine info introspects hugepages 2017-08-11 23:27:15 -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
Derek Carr
35e1900899 Reduce cAdvisor log spam with multiple devices 2017-04-12 14:38:37 -04:00
Danny Krainas
8aa7e674e5 set envs when converting to v2 spec 2017-04-11 00:21:35 -04:00
Tristan Colgate
227bb3a79d Add udp and udp6 network statistics 2017-04-10 20:41:51 +01:00
Manjunath A Kumatagi
8fb1158353 Add Docker API version 2017-04-04 10:56:11 +05:30
David Ashpole
696b82ae97 do not log multiple filesystems if root container 2017-01-09 10:55:41 -08:00
fzu-huang
95153bb857 Fixes partion name, v2 TCP stats 2016-12-27 00:09:51 +08: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
Tim St. Clair
afe67fec68
Cleanup comment style: // should be proceded by a space 2016-10-07 17:06:02 -07:00
Jimmi Dyson
041c5af905
Switch to Prometheus decoder 2016-09-22 22:22:07 +01:00
Florian Koch
3ce98a46c4 add cgropu swap usage and export as prometheus metric 2016-08-09 07:33:37 +02:00
Tobias Schmidt
1653733ea7 Expose cpu cgroup CFS prometheus metrics
If CPU quota is configured (cpu.cfs_quota != -1) the CFS will provide
stats about elapsed periods and throtting in cpu.stats. This change
makes these information available as container_cpu_cfs_* metrics.
2016-08-06 18:08:26 -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
derekwaynecarr
8551b0ebf7 filesystem usage stats are wrong in v2 api 2016-07-25 17:33:26 -04:00
Ron Lai
29ffb3b6b9 Adding inode info 2016-06-27 11:52:40 -07:00
Lantao Liu
8c362dc0dc Fix uint64 overflow in info/v2/conversion.go. 2016-06-16 10:41:12 -07:00
Tim St. Clair
f365c6a115 Move docker types to v1 API 2016-05-02 15:52:29 -07:00