Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect ip route change #166

Open
AllenXu93 opened this issue Jan 29, 2024 · 2 comments
Open

Collect ip route change #166

AllenXu93 opened this issue Jan 29, 2024 · 2 comments

Comments

@AllenXu93
Copy link
Contributor

Add metrics for ip route change( add / del) count.
Better print detail change (dst ip and gateway) to log.

Here is bpftrace example:

bpftrace -e 'kprobe:fib_table_insert {printf("%s/%d via %s \n", ntop(((struct fib_config *)arg2)->fc_dst), ((struct fib_config *)arg2)->fc_dst_len, ntop(((struct fib_config *)arg2)->fc_gw4) )}'

bpftrace -e 'kprobe:fib_table_delete {printf("%s/%d  \n", ntop(((struct fib_config *)arg2)->fc_dst), ((struct fib_config *)arg2)->fc_dst_len )}'

@xianlubird
Copy link
Collaborator

就不能讲中文

@BSWANG
Copy link
Collaborator

BSWANG commented Jan 30, 2024

可以考虑增加个route prober,在 metrics 中默认开启,在 events 中在有需要的时候动态开启

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants