Eric Lin
7dd7c14868
Get Node object from APIServer cache
2024-02-20 14:23:13 +00:00
Kubernetes Prow Robot
bdaa44eb23
Merge pull request #825 from kasbert/master
...
Add disk and memory percent_used
2023-12-15 15:54:49 +01:00
Jarkko Sonninen
07900633cb
Add disk and memory percent_used
2023-10-28 16:03:48 +03:00
j4ckstraw
e31cf7b137
fix: fix pprof by register handlers explicitly
...
see https://pkg.go.dev/net/http/pprof
> By default, all the profiles listed in runtime/pprof.Profile are
available (via Handler), in addition to the Cmdline, Profile, Symbol,
and Trace profiles defined in this package. If you are not using
DefaultServeMux, you will have to register handlers with the mux you are
using.
Signed-off-by: j4ckstraw <j4ckstraw@foxmail.com >
2023-10-08 10:49:24 +08:00
Ciprian Hacman
a5aadf719a
Update github.com/avast/retry-go to v4.5.0
2023-09-24 11:25:19 +02:00
Fan Shang Xiang
d04bb3a5b0
add retry for patch node requests and replace deprecated poll function
2023-09-21 07:36:42 +00:00
Manuel Rüger
e43459d86d
Move glog/klog logging to klog/v2
2023-09-17 08:57:33 +03:00
Fan Shang Xiang
adbe770d74
replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock
2023-08-31 06:27:32 +00:00
Fan Shang Xiang
471ab88240
add context to long running operations
2023-07-13 10:01:18 +08:00
Kubernetes Prow Robot
e6fbdd434a
Merge pull request #760 from MartinForReal/master
...
bump k8s.io dependencies to 1.17.2
2023-06-25 21:41:16 -07:00
guoguangwu
6dc23ca804
chore: remove refs to deprecated io/ioutil
2023-06-21 12:12:27 +08:00
Fan Shang Xiang
b5e4ef628b
bump k8s.io to 1.17.2
2023-06-12 22:27:39 +08:00
MartinForReal
75095b2573
remove heapster from project dependencies
2023-05-18 01:38:29 +00:00
pezzak
ed97725ea1
Log error from kube-api
2021-06-17 12:51:44 +03:00
Jeremy Edwards
4181ece888
Windows Support: Fix Build Regressions, Tests Pass
2021-03-14 10:24:45 -07:00
Karan Goel
8648fe265a
add metric for per-cpu, per-stage timing
2021-01-29 08:46:39 -08:00
Karan Goel
2a2bab3d28
Add network interface stats
...
We do not have to collect these often, so for now set the collection
interval to 120s (even though the Stackdriver exporter is still set to
export every 60s).
2021-01-20 08:56:34 -08:00
Karan Goel
71098097c0
add metrics for process stats
...
Tested on a COS VM:
```
$ curl -s localhost:20257/metrics | grep "^system_"
system_interrupts_total{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 8.759236e+07
system_processes_total{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 692506
system_procs_blocked{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 0
system_procs_running{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 2
```
2021-01-13 09:14:08 -08:00
varsha teratipally
eb38b4b598
added a new metric to retrieve os features like unknown modules
2021-01-08 21:52:16 +00:00
Karan Goel
925ea7393c
Collect CPU load averages in a separate metric
2020-11-09 09:41:52 -08:00
Andrew DeMaria
7fd465e195
Add namespace option for events
2020-03-05 19:04:31 -07:00
Xuewei Zhang
83b09277f0
Collect more cpu/disk/memory metrics
2020-02-03 15:29:45 -08:00
yuzhiquan
9c24be2da4
cleanup: using time.Since(t) instead of t.Sub(time.Now())
2019-12-05 18:57:53 +08:00
yuzhiquan
b458f0d028
fix: modify typo
2019-12-03 15:21:57 +08:00
Xuewei Zhang
794300af59
Add stackdriver exporter endpoint for problem_gauge
2019-09-26 13:45:17 -07:00
Matt Matejczyk
2e9da8569d
Make heartbeatPeriod const into a flag.
2019-09-26 09:59:03 +02:00
Xuewei Zhang
e1939ebc03
Handle vendor change in k8s.io/apimachinery/pkg/util/clock
...
clock.Clock used to have Tick() method, but is now replaced with
NewTicker() method to prevent leaking. Changed NPD code to adapt to it.
See https://github.com/kubernetes/apimachinery/commit/10ebc22e for more
detail.
2019-09-14 15:22:09 -07:00
Xuewei Zhang
0f0e5eff0f
Adding stackdriver exporter
2019-09-12 18:30:00 -07:00
Lang Chi
4d37d6fb68
fix a spelling error
...
Signed-off-by: Lang Chi <21860405@zju.edu.cn >
2019-08-13 15:12:01 +08:00
Yang Guo
ddb1d76178
Support waiting for kube-apiserver to be ready with timout during NPD startup
2019-07-09 10:24:25 -07:00
Xuewei Zhang
23dc265971
Add Prometheus exporter.
2019-06-13 00:51:17 -07:00
Xuewei Zhang
5814195ad5
Move apiserver-reporting logic into k8s_exporter.
...
Added CLI option "enable-k8s-exporter" (default to true). Users can use
this option to enable/disable exporting to Kubernetes control plane.
This commit also removes all the apiserver-specific logic from package
problemdetector.
Future exporters (e.g. to local journald, Prometheus, other control
planes) should implement types.Exporter interface.
2019-06-12 18:29:18 -07:00