parca-agent 在parca 中属于一个比较重要的组件
parca-agent 参考处理
- 包含的步骤
目标发现,发现运行的cgroups
使用bpf 程序每10s进行一些原始栈数据的采样
转换原始栈数据为pprof 格式的profile
如果需要记性处理(比如可能会提取debug 符号信息)
发送数据到parca server(包含了符号信息以及pprof 格式的profile) - 参考处理
- 数据采样处理
参考资料
https://github.com/google/pprof
https://github.com/parca-dev/parca-agent/blob/main/docs/design.md
https://www.parca.dev/docs/parca
https://www.kernel.org/doc/html/latest/bpf/btf.html
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/288775.html