Sergey Kanzhelev
3e64800668
enabled a few more linter rules
2025-09-11 18:47:20 +00:00
Sergey Kanzhelev
0ce333bbc5
enabled and fixed the errcheck linter rule
2025-09-10 21:45:46 +00:00
Sergey Kanzhelev
db7eb8366c
updated gopsutil
2025-08-13 21:53:17 +00:00
Sergey Kanzhelev
75bf501888
format imports
2025-08-13 16:56:32 +00:00
Sergey Kanzhelev
a4118329f6
enable linter on repository
2025-08-13 16:12:41 +00:00
Zhen Wang
e4d293eb51
Bump NPD versions to v0.8.17
...
Also ran `make gomod` and `make fmt` in the repo for cleanup.
2024-03-09 14:32:45 +00:00
Jarkko Sonninen
07900633cb
Add disk and memory percent_used
2023-10-28 16:03:48 +03:00
Manuel Rüger
e43459d86d
Move glog/klog logging to klog/v2
2023-09-17 08:57:33 +03:00
Ciprian Hacman
f58f6cd208
Update tests to run also on macOS
2023-09-11 19:25:59 +03:00
Manuel Rüger
c4311bd207
Move github.com/shirou/gopsutil to v3
2023-09-11 12:18:22 +02:00
Ciprian Hacman
568fbe8437
Update net_collector_test.go formatting
2023-09-08 16:08:40 +03: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
Mike Miranda
22157af0e5
Split proc default and validation between Linux and Windows
2023-04-13 18:52:59 +00:00
Yordis Prieto Lazo
0842910049
chore: fix misspelling
2022-12-18 22:58:07 -05:00
Mike Miranda
1471f74d98
Add ExcludeInterfaceRegexp to Net Dev monitor
2022-06-15 23:22:38 +00:00
Neo Zhuo
11ddb5e6bf
support custom /proc path
2022-04-11 18:15:08 +08:00
Neo Zhuo
78c11c4ceb
reimplement net collector metrics register, config check and recording
2022-04-11 18:15:07 +08:00
Varsha Teratipally
ebdd9038b7
Add a check if the metric is nil so that collector doesn't collect the
...
metrics.
2021-06-30 19:50:16 +00:00
varsha teratipally
7b51a90328
Reduce the number of reads to /proc/partitions file
...
to retrive the partitions on disk
2021-06-13 21:11:34 +00:00
Kubernetes Prow Robot
9c541692ee
Merge pull request #557 from vteratipally/adfad
...
Make sure the path to known-modules.json is relative
2021-05-14 14:39:59 -07:00
Varsha Teratipally
a79b87ce7e
Make sure the path to known-modules.json is relative to the
...
system-stats-monitor.json file
2021-05-14 21:14:55 +00:00
Jeremy Edwards
d4933875ed
Add support for basic system metrics for Windows.
2021-05-10 21:58:38 +00:00
Karan Goel
c2aceee61d
remove os_versions and kernel_version labels
2021-02-02 08:25:10 -08: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
Kubernetes Prow Robot
c2d7a7be62
Merge pull request #513 from karan/cpu_activity_metrics
...
add metrics for process stats
2021-01-19 18:38:07 -08:00
varsha teratipally
2cb1195f18
cleanup the log
2021-01-13 17:54:53 +00:00
Karan Goel
f13d2a5449
don't run os feature collector if metric not initialized
2021-01-13 09:33:13 -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
f89f620909
added new line in the known_modules.json
2021-01-08 23:25:02 +00:00
varsha teratipally
eb38b4b598
added a new metric to retrieve os features like unknown modules
2021-01-08 21:52:16 +00:00
varsha teratipally
047958a49c
changing the label names as per the standards
2020-12-08 02:27:22 +00:00
Kubernetes Prow Robot
112d53b10a
Merge pull request #497 from vteratipally/fs_types
...
avoid duplicating the disk bytes used metrics based on fstype and mount types
2020-11-18 10:48:07 -08:00
Kubernetes Prow Robot
33571a312d
Merge pull request #478 from neoseele/master
...
fix: node memory metrics are off by 1024
2020-11-16 14:06:12 -08:00
varsha teratipally
1550882948
avoid duplicating the disk bytes used metrics based on fstype and mountopts
2020-11-16 20:10:46 +00:00
Karan Goel
925ea7393c
Collect CPU load averages in a separate metric
2020-11-09 09:41:52 -08:00
Neil
589411702a
fix: node memory metrics are off by 1024
...
The memory unit in /proc/meminfo is kB (b/171164235)
```
MemTotal: 264129908 kB
MemFree: 153559480 kB
...
```
2020-10-19 17:26:31 +11:00
varsha teratipally
50127b0512
changed labelname after code review
2020-08-06 00:43:45 +00:00
varsha teratipally
4c40b7e468
updated readme
2020-08-05 21:43:58 +00:00
varsha teratipally
e13210157d
Add more info to disk metrics
2020-08-05 21:12:25 +00:00
Xuewei Zhang
83b09277f0
Collect more cpu/disk/memory metrics
2020-02-03 15:29:45 -08:00
Xuewei Zhang
fa7a3d7df1
Fix disk metrics unit and queue_length calculation
2020-01-02 17:19:38 -08:00
Alex Wong
5a4ac81186
Only disk_avg_queue_len is distorted on first collection
2019-12-12 14:39:29 +08:00
Alex Wong
3d10c892a2
Ignore first collected disk stats to prevent metric distortion
2019-12-11 11:14:01 +08:00
Xuewei Zhang
9e789b5f99
Refactor on metrics so that names for all the views are tracked
2019-09-11 12:07:13 -07:00
Xuewei Zhang
0f2fce56e5
Change host/uptime to GAUGE metrics
2019-09-10 16:58:06 -07:00
Xuewei Zhang
82c2368795
Metric format fixes on host/uptime and disk/*
...
1. host/uptime, disk/io_time and disk/weighted_io should be
counter/cumulative metrics. SO we have to use the Sum aggregation method
rather than LastValue aggregation method (which will declare the metric
as gauge metric).
2. Renamed label "device" for disk/* metrics to "device_name".
This is to clarify that it is device_name (sda1) rather than device_path
(/dev/sda1)
2019-08-16 15:14:54 -07:00
Zhen Wang
182a9450dd
Print monitor config path in the logs
2019-07-30 11:00:47 -07:00