Commit Graph

2805 Commits

Author SHA1 Message Date
Katarzyna Kujawa
a640488bcc Information about running cAdvisor without privileged option
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-05-22 09:13:17 +02:00
David Ashpole
414043db03
Merge pull request #2527 from katarzyna-z/kk-fix-perf-documentation
Add documentation for building and running cAdvisor with perf support
2020-05-04 10:02:52 -07:00
iwankgb
a470ec166c
Some linting errors (#2532)
* Fixing number of linting errors

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-05-04 10:01:35 -07:00
iwankgb
3d9cf1cbed
Using upstream golangci-lint (#2531)
* Using upstream golangci-lint

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-05-04 09:56:58 -07:00
Katarzyna Kujawa
ba7b51b5f2 Add documentation for building and running cAdvisor with perf support
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-05-04 10:29:38 +02:00
Guo Jianwei
430d7cf7fc
Fix GetClockSpeed error when dealing with upper case (#2517)
* Fix GetClockSpeed error when dealing with upper case

Signed-off-by: sayaoailun <guojianwei007@126.com>
2020-05-01 11:24:44 -07:00
David Ashpole
4f0c692951
Merge pull request #2528 from katarzyna-z/kk-fix-kustomize
Fix generating daemonset with example patches using Kustomize
2020-05-01 11:22:37 -07:00
Katarzyna Kujawa
ae129c9455 Fix generating daemonset with example patches using Kustomize
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-30 15:58:46 +02:00
David Ashpole
438d294d3b
Merge pull request #2524 from piowag/hugetlb-documentation
Add hugetlb metrics to prometheus metrics documentation
2020-04-29 11:58:38 -07:00
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
David Ashpole
1cbd3c7c58
Merge pull request #2518 from katarzyna-z/kk-remove-go-cmp
Remove go-cmp from from cache comparison
2020-04-29 11:51:58 -07:00
Piotr Wagner
3e469c38b5 Added hugetlb metrics to prometheus metrics documentation
Signed-off-by: Piotr Wagner <piotr.wagner@intel.com>
2020-04-29 14:25:06 +02:00
Katarzyna Kujawa
09c98f59a9 Remove go-cmp from from cache comparison
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-29 11:55:43 +02:00
David Ashpole
d13367938c
Merge pull request #2512 from iwankgb/unexported_types
Using unexported return type from exported function shall be forbidden
2020-04-23 14:27:09 -07:00
Maciej "Iwan" Iwanowski
750d7c866b
gofmt must be checked too
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 23:09:04 +02:00
Maciej "Iwan" Iwanowski
185412fa1a
Always using interface and improving tests
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 22:53:41 +02:00
Maciej "Iwan" Iwanowski
25b755a2de
Using unexported return type from exported function shall be forbidden
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:53:42 +02:00
Maciej "Iwan" Iwanowski
2af8b4215a
Using interface instead of unexported struct as returned type
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:52:07 +02:00
Maciej "Iwan" Iwanowski
79ffb0b2f9
Exporting unexported struct
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:47:16 +02:00
Maciej "Iwan" Iwanowski
bfe072a09e
Replacing unexported interface with exported one
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:45:37 +02:00
Maciej "Iwan" Iwanowski
8fd2a843de
Replacing unexported interface with exported one
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:43:27 +02:00
Maciej "Iwan" Iwanowski
1db1c98626
Introducing interface to hide unexported struct
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-23 20:34:21 +02:00
David Ashpole
175b2e7e2d
Merge pull request #2511 from dashpole/new_repo
Push new releases to cadvisor project
2020-04-23 10:50:18 -07:00
David Ashpole
f1cad012e2 new releases to cadvisor project 2020-04-23 10:34:37 -07:00
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