fix vmlinux link

This commit is contained in:
yunwei37
2023-05-07 02:06:11 +08:00
parent 6e8427badf
commit 633aac43f1
5 changed files with 3 additions and 32 deletions

View File

@@ -141,38 +141,9 @@ cleanup:
}
```
### Eunomia 测试 demo
使用命令行进行追踪:
```bash
$ sudo build/bin/Release/eunomia run tcpconnlat
[sudo] password for yunwei:
[2022-08-07 02:13:39.601] [info] eunomia run in cmd...
[2022-08-07 02:13:40.534] [info] press 'Ctrl C' key to exit...
PID COMM IP SRC DEST PORT LAT(ms) CONATINER/OS
3477 openresty 4 172.19.0.7 172.19.0.5 2379 0.05 docker-apisix_apisix_1
3483 openresty 4 172.19.0.7 172.19.0.5 2379 0.08 docker-apisix_apisix_1
3477 openresty 4 172.19.0.7 172.19.0.5 2379 0.04 docker-apisix_apisix_1
3478 openresty 4 172.19.0.7 172.19.0.5 2379 0.05 docker-apisix_apisix_1
3478 openresty 4 172.19.0.7 172.19.0.5 2379 0.03 docker-apisix_apisix_1
3478 openresty 4 172.19.0.7 172.19.0.5 2379 0.03 docker-apisix_apisix_1
```
还可以使用 eunomia 作为 prometheus exporter在运行上述命令之后打开 prometheus 自带的可视化面板:
使用下述查询命令即可看到延时的统计图表:
```plain
rate(eunomia_observed_tcpconnlat_v4_histogram_sum[5m])
/
rate(eunomia_observed_tcpconnlat_v4_histogram_count[5m])
```
结果:
![result](tcpconnlat_p.png)
### 编译运行
TODO
### 总结
通过上面的实验我们可以看到tcpconnlat 工具的实现原理是基于内核的TCP连接的跟踪并且可以跟踪到 tcp 连接的延迟时间除了命令行使用方式之外还可以将其和容器、k8s 等元信息综合起来,通过 `prometheus``grafana` 等工具进行网络性能分析。

View File

@@ -1 +0,0 @@
vmlinux_62.h

1
vmlinux/arm/vmlinux.h Symbolic link
View File

@@ -0,0 +1 @@
vmlinux_62.h

View File

@@ -1 +0,0 @@
vmlinux_601.h

1
vmlinux/arm64/vmlinux.h Symbolic link
View File

@@ -0,0 +1 @@
vmlinux_601.h

View File

@@ -1 +0,0 @@
x86/vmlinux.h

1
vmlinux/vmlinux.h Symbolic link
View File

@@ -0,0 +1 @@
x86/vmlinux_601.h

View File

@@ -1 +0,0 @@
vmlinux_601.h

1
vmlinux/x86/vmlinux.h Symbolic link
View File

@@ -0,0 +1 @@
vmlinux_601.h