Tonghao Zhang
b5c329086e
core: autotracing: disable debug
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-29 09:22:17 -04:00
Tonghao Zhang
189879f09c
core: autotracing: refactor the dload
...
note that dload running on cgroupv1
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-29 09:18:40 -04:00
Tonghao Zhang
b4d7410682
internal: cgroups: support Tasks interface
...
Support obtaining pid list
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-29 09:18:33 -04:00
Tonghao Zhang
1869034c55
core: metrics: loadavg only support cgroupv1
...
1. supports cgroup mode checking
2. supports container loadavg metrics for cgroupv1
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-29 09:18:29 -04:00
Tonghao Zhang
c21a069f30
cgroups: add the CgroupMode()
...
add the CgroupMode() func
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-29 09:18:24 -04:00
Tonghao Zhang
4191bd60a9
core: metrics: cleanup Update logs
...
The unified interface c.collector.Update will print error messages,
so there is no need to print error messages in the specific Update.
Avoid printing redundant error messages.
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-25 05:53:35 -04:00
Tonghao Zhang
9ba36d2707
bpf: use a unified macro definition COMPAT_CPU_NUM
...
use a unified macro definition to avoid code redundancy
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-25 05:18:23 -04:00
Tonghao Zhang
17522020ec
update NEWS
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-25 02:11:15 -04:00
Tonghao Zhang
cc9b94c443
internal: pod: supports cgroupfs and systemd cgroup management
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-25 01:58:07 -04:00
Tonghao Zhang
b3d96f72af
NEWS: update
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-23 03:11:26 -04:00
Tonghao Zhang
ccaa483a4e
internal: pod: auto update kubelet pod prefix
...
read the default /var/lib/kubelet/config.yaml, and
update the pod cgroup prefix
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-23 03:05:18 -04:00
Tonghao Zhang
4ee04759e3
utils: parse: refine function name
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-23 01:53:56 -04:00
Tonghao Zhang
19fdcfdce7
internal: cgroups: abstracted into an independent package
...
- application is unaware of the type of the cgroup runtime on the physical machine
- implement the abstraction of the cgroup interface
- support runtime configuration
- support fetching metrics for each subsystem
- modify the metrics which using cgroups
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-23 01:06:27 -04:00
Tonghao Zhang
cb913b6a6b
pod: container: cleanup comments
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-21 04:12:08 -04:00
Tonghao Zhang
e1aaec8326
pod: container: allow users to turn off podlist sync
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-21 04:01:07 -04:00
Tonghao Zhang
a027b9ddcd
pod: container: Allow kubelet process to start subsequently
...
Allow the kubelet process to start subsequently. Check whether
the kubelet has been started every 30 minutes. Once the kubelet
has been started, turn off the check function
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-21 03:26:11 -04:00
Tonghao Zhang
c74d040061
pod: container: an additional layer of cache
...
Optimize the interface logic and add an additional layer of cache.
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-21 01:06:26 -04:00
Tonghao Zhang
5a4674a404
pod: container: refine configuration options
...
Reduce configuration options and support more flexible configurations.
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-20 23:16:51 -04:00
aaahuhong
e3aaa5510a
add https request to get pods, first request by http, if fail using https
...
Change-Id: Ieb455417a7b0b68f4434c3d6e0a76598ea98435d
Signed-off-by: aaahuhong <aaahuhong@didiglobal.com>
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-18 06:52:28 -04:00
Tonghao Zhang
97fd480824
core: bpf: cleanup logs
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-18 06:39:08 -04:00
Tonghao Zhang
8ae18a1dd0
metric: change the label style
...
- make label more standardized
- such as kubelet/containerd
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-18 05:03:52 -04:00
Tonghao Zhang
367ad3e6a2
core: More standardized naming metrics and events
...
I have modified the names of many metircs and events,
making them more standardized. Additionally, renamed some files
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-18 01:37:10 -04:00
fanzu8
5c8a6333b2
config: only one Blacklist for tracing and metrics
...
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-17 13:10:45 +08:00
Tonghao Zhang
81265ad8a4
metric: Add region for duration、success collector
...
1. Add region for duration、success collector
2. Fix other metrics region which may be used in tracing.NewRegister
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-16 22:17:38 -04:00
Honglei Wang
beb02323c6
core: softirq: change hook point to account_process_tick()
...
scheduler_tick() was renamed in upstream kernel. We can change the
hook point to account_process_tick() which exists in most of the
distributions.
Change-Id: I80a9a6fabbf87a4ec660f79ff3a568cd6842b167
Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-16 07:53:47 -04:00
Honglei Wang
72516b8d42
metric: use free_fair_sched_group() to track the tg free
...
Change-Id: I7ff23bbe27be6598c98e2576e6a4d6d5e21323e1
Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-16 07:53:02 -04:00
Honglei Wang
dffa1284a2
metric: support runqlat for upstream kernel
...
Change-Id: If1bda054b1befc35b8767469a81b9ac00984ebea
Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-16 07:52:11 -04:00
Tonghao Zhang
bfdc010cc1
docs: add metric/events/autotracings docs.
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-16 05:18:49 -04:00
fanzu8
e519a3e46e
build: fix cgroup create failed if docker set Security Options: cgroupns
...
ref: https://docs.docker.com/reference/compose-file/services/#cgroup
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-16 16:52:45 +08:00
hao022
808cbe922f
Merge pull request 'build: use image instead of local compile' ( #4 ) from fanzu8/huatuo:master into master
2025-07-15 20:03:00 +08:00
tuzengbing
d52703ccbb
doc: quick-start diagram from text to .png
...
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-15 17:59:27 +08:00
tuzengbing
b84209272b
doc: add setup details
...
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-15 17:59:27 +08:00
tuzengbing
1a95972842
build: use huatuo/huatuo-bamai image instead of local compile
...
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-15 17:59:27 +08:00
tuzengbing
67ca28005c
doc: add run details
...
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-15 17:59:27 +08:00
tuzengbing
9128f7a3a3
build: add Dockerfile
...
example: docker build --network host -t huatuo/huatuo-bamai:latest .
Signed-off-by: fanzu8 <tuzengbing@gmail.com>
2025-07-15 17:59:27 +08:00
Tonghao Zhang
9c5bab33bf
bpf: use more stable API interface
...
Use the built-in structures of the kernel, which are
more stable API interfaces
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-15 05:00:39 -04:00
Tonghao Zhang
7cd0e9b218
doc: update readme.md
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-14 19:51:32 +08:00
Tonghao Zhang
ce51ab9d37
softirq: Add a necessary check
...
Add a necessary check to prevent the possible cpu
num from being too large
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-14 07:09:01 -04:00
Tonghao Zhang
63df94bcd0
hungtask: change bool to counter
...
There is no bool metric in prometheus:
https://prometheus.io/docs/concepts/metric_types/
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-14 05:35:45 -04:00
Tonghao Zhang
20fd689d1c
hungtask: add checking
...
Check whether the operating system supports this function?
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-14 05:28:13 -04:00
Tonghao Zhang
c82f41c869
update NEWS
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 08:29:10 -04:00
Tonghao Zhang
030494f792
add NEWS
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 08:25:23 -04:00
Tonghao Zhang
42901645ad
update go.mod
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 08:00:11 -04:00
Tonghao Zhang
3617bf5857
add .gitignore
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 07:31:05 -04:00
Tonghao Zhang
f3c9535713
vmlinux: use 4.18.0-193.6.3.el8_2.x86_64 as default header
...
v1.2
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 07:29:52 -04:00
Tonghao Zhang
1cd7616e22
build: info: use the upstream kenrel header
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 06:58:26 -04:00
Tonghao Zhang
dc2fb43987
metric: add region option support
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 06:54:04 -04:00
Tonghao Zhang
fc9c20d24a
bpf: rename metric softirq to softirq
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 06:12:45 -04:00
Tonghao Zhang
93c15c0d30
bpf: rename event softirq to softirq_tracing
...
softirq event is a tracing in running kernel.
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 06:05:36 -04:00
Tonghao Zhang
42b2204de9
bpf: refact softirq and percpu metric
...
Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
2025-07-13 05:52:28 -04:00