Commit Graph

2781 Commits

Author SHA1 Message Date
David Ashpole
74c40b7b0b
Merge pull request #2510 from iwankgb/enabling_unit_tests_in_podman
Ability to run unit tests in podman
2020-04-23 08:43:01 -07:00
Maciej "Iwan" Iwanowski
79e2960198
Ability to run unit tests in podman
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 10:52:19 +02: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
iwankgb
1223982cc4
Using Prometheus testutil in Prometheus tests (#2501)
* Using Prometheus testutil in Prometheus tests

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-22 12:55:10 -07:00
David Ashpole
a7d22547cd
Merge pull request #2495 from katarzyna-z/kk-wss-metric
Add working set size metric
2020-04-22 09:37:46 -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
David Ashpole
b1312d39fd
Merge pull request #2504 from ebuildy/patch-1
Add healthcheck url env variable
2020-04-21 14:20:31 -07:00
David Ashpole
d4e4037af7
Merge pull request #2499 from iwankgb/go_installed_needlessly
Go version must be passed to docker
2020-04-21 12:39:12 -07:00
iwankgb
d080705029
Perf metrics were exported only if process metrics were (#2502)
* Perf metrics were exported only if process metrics were

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-21 12:34:51 -07:00
David Ashpole
9ffa442bbf
Merge pull request #2505 from iwankgb/bash_errors_in_unit_tests
Tests must fail on bash error
2020-04-21 09:26:48 -07:00
Thomas Decaux
0d6dad07e6 Add healthcheck url env variable 2020-04-21 17:29:38 +02:00
Maciej "Iwan" Iwanowski
6cd231e254
Tests must fail on bash error
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-21 10:46:09 +02:00
iwankgb
74b513b790
Unit tests improvements (#2498)
* Containerized unit testing

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-20 16:46:15 -07: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
Maciej "Iwan" Iwanowski
b648cc3ac8
Go version must be passed to docker
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-17 19:33:02 +02:00
David Ashpole
1298173196
Merge pull request #2494 from iwankgb/perf_in_prometheus
Exposing perf metrics in Prometheus
2020-04-17 08:31:27 -07:00
Maciej "Iwan" Iwanowski
14bab95da5
Bringing the docs up-to-date
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-17 09:56:12 +02:00
Maciej "Iwan" Iwanowski
39ae19d514
Bringing function and regexp names back to original
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-17 09:03:13 +02:00
Maciej "Iwan" Iwanowski
18902209dc
Getting rid of old version of klog (and some other dependiencies fixed)
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-17 08:55:00 +02:00
Maciej "Iwan" Iwanowski
d153066bb0
Using constant names for metrics, as Prometheus encourages to
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-17 08:51:03 +02:00
Maciej "Iwan" Iwanowski
bf1f3ccbda
Sanitizing perf metrics names and documenting newly added metrics
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-16 11:00:35 +02:00
Maciej "Iwan" Iwanowski
95460a3ca6
Fixing silly formatting issue
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-16 08:41:23 +02:00
Maciej "Iwan" Iwanowski
f4fec880e7
Exposing perf metrics in Prometheus
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-16 08:41:01 +02:00
David Ashpole
ba6fa06c73
Merge pull request #2489 from iwankgb/perf_integration_tests
Integration test for Docker and perf stats
2020-04-15 09:59:27 -07:00
Maciej "Iwan" Iwanowski
4a2441a46a
New line at the end of file
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 11:18:09 +02:00
Maciej "Iwan" Iwanowski
96150b3fb7
No environment configuration for unit tests
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 11:17:11 +02:00
Maciej "Iwan" Iwanowski
5cfb4c2325
Extending integration tests documentation
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 10:51:38 +02:00
Maciej "Iwan" Iwanowski
396c32a3b6
We no longer need to append entries to logfile
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:31 +02:00
Maciej "Iwan" Iwanowski
d991727c10
Adding build config to unit tests too
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:31 +02:00
Maciej "Iwan" Iwanowski
456582c5ac
Adding missing boilerplate comments
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:31 +02:00
Maciej "Iwan" Iwanowski
5a0d353c0b
Using environment variables to create build matrix
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:31 +02:00
Maciej "Iwan" Iwanowski
9945e3572a
Fixed typo
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:31 +02:00
Maciej "Iwan" Iwanowski
764622ff45
Integration test for Docker and perf stats
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-15 08:45:30 +02:00
David Ashpole
713e6af0d1
Merge pull request #2492 from tedyu/container-info-copy
Make a copy of containerInfo in containerData#GetInfo
2020-04-14 11:24:01 -07:00
Ted Yu
cbfa6e8b19 Make a copy of containerInfo in containerData#GetInfo
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-13 13:42:49 -07:00
David Ashpole
b52edf25b3
Merge pull request #2491 from tedyu/mach-info-map
Make a copy of the maps of MachineInfo
2020-04-13 09:35:01 -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
3b7947f333
Merge pull request #2490 from tedyu/mach-info-copy
Make a copy of MachineInfo in GetMachineInfo()
2020-04-10 11:01:42 -07:00
Ted Yu
cf1ac06b2c Make a copy of MachineInfo in GetMachineInfo()
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-10 10:07:38 -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
David Ashpole
f72e6ae382
Merge pull request #2448 from dims/docker-based-integration-test
Docker based integration test for cadvisor
2020-04-10 09:04:21 -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
David Ashpole
49f4075210
Merge pull request #2486 from tedyu/cont-stat-eq
Add missing fields to ContainerStats#StatsEq
2020-04-09 15:44:13 -07: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
iwankgb
1baad3f20b
Returning more error information from stats.Manager and stats.Collector (#2477)
* Returning more error information from stats.Manager and stats.Collector

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-09 09:42:02 -07:00
David Ashpole
9de631424e
Merge pull request #2479 from tedyu/mgr-exists
manager#Exists should take read lock
2020-04-09 09:35:20 -07:00
David Ashpole
e35a0d574a
Merge pull request #2456 from lubinszARM/pr_cacheinfo
Issue fix: get wrong machine info on Arm64 guest
2020-04-09 09:03:52 -07:00