Katarzyna Kujawa
738f136b2b
Introduce new machine metrics: ( #2519 )
...
* Introduce new machine metrics:
- machine_cpu_cache_capacity_bytes
- machine_node_hugepages_count
- machine_node_memory_capacity_bytes
- machine_nvm_avg_power_budget_watts
- machine_thread_siblings_count
Introduce timestamp for machine related information
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-29 11:58:23 -07:00
iwankgb
854445c010
Carefully fixing style ( #2509 )
...
* Use golangci-lint to add lint presubmit test, and fix linter errors
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-22 16:26:36 -07:00
Katarzyna Kujawa
7ab5e27909
Add referenced bytes metric for containers
...
see: https://github.com/brendangregg/wss#wsspl-referenced-page-flag
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-22 14:05:36 +02:00
iwankgb
0dd4098374
golanci-lint based cleanup ( #2503 )
...
* Cleanups based on linter
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-20 10:53:19 -07:00
Ted Yu
7cf9bf1b60
Make a copy of the maps of MachineInfo
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-11 17:37:31 -07:00
David Ashpole
ca7a1173b7
Merge pull request #2478 from dims/switch-to-klog-v2
...
Switch to klog v2
2020-04-10 09:13:38 -07:00
Davanum Srinivas
94508e8a2f
Switch to klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-09 22:54:37 -04:00
Ted Yu
4824925f07
Add missing fields to ContainerStats#StatsEq
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-09 15:24:32 -07:00
David Ashpole
84ef5301ee
Merge pull request #2480 from tedyu/cont-spec-eq
...
Add missing fields to ContainerSpec#Eq
2020-04-09 11:38:20 -07:00
Ted Yu
f7b3d111c3
Add missing fields to ContainerSpec#Eq
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-09 10:39:41 -07:00
iwankgb
e7efc0a49d
Measuring perf events - chapter I ( #2419 )
...
* Configuration and initial implementation of perf events.
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-09 10:20:07 -07:00
Davanum Srinivas
af89abfc29
Cleanup unused code
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-24 15:41:02 -04:00
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