k3s/pkg/kubelet/cadvisor
Kubernetes Submit Queue 441f674c60 Merge pull request #50396 from bobbypage/stats
Automatic merge from submit-queue (batch tested with PRs 52168, 48939, 51889, 52051, 50396). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

Add Windows Server Containers Stats and Metrics to Kubelet

**What this PR does / why we need it**:

This PR implements stats for Windows Server Containers. This adds the ability to monitor Windows Server containers via the existing stats/summary endpoint inside the kubelet. Windows metrics can now be ingested into heapster and monitored using existing tools (like Grafana). 

Previously, the /stats/summary api would consistently crash the kubelet on Windows server containers. This PR implements a new package "winstats" which reads windows server metrics from a combination of windows specific perf counters as well as docker stats. The "winstats" package exports functions that return CAdvisor data structures, which the existing summary api can read. 


**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49398

This PR addresses my plan to implement windows server container stats https://github.com/kubernetes/kubernetes/issues/49398 .


**Release note**:

```release-note
Add monitoring of Windows Server containers metrics in the kubelet via the stats/summary endpoint.
```
2017-09-23 13:40:56 -07:00
..
testing Implement StatsProvider using CRI stats 2017-09-06 09:11:56 -07:00
BUILD Implement metrics for Windows Nodes 2017-09-14 06:32:51 +00:00
cadvisor_linux.go Support remote runtimes with native cAdvisor support 2017-08-31 16:41:53 -04:00
cadvisor_linux_test.go Filter internal Kubernetes labels from Prometheus metrics 2016-08-22 19:44:27 -04:00
cadvisor_unsupported.go Fix cross-build 2017-09-07 09:53:52 -04:00
cadvisor_windows.go Implement metrics for Windows Nodes 2017-09-14 06:32:51 +00:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
helpers_linux.go kubelet: enable CRI container metrics 2017-09-13 15:09:35 -07:00
helpers_unsupported.go Fix cross-build 2017-09-07 09:53:52 -04:00
types.go Merge pull request #51728 from derekwaynecarr/cadvisor-stats 2017-09-06 20:00:57 -07:00
util.go Fix cross-build 2017-09-07 09:53:52 -04:00