[英]Is there a step by step instruction to enable tracing of kubernetes components?
I'm running Kubernetes version v1.24.0, trying to enable tracing in Kubernetes components and so I can instrument my custom controller to work with tracing.我正在运行 Kubernetes 版本 v1.24.0,试图在 Kubernetes 组件中启用跟踪,因此我可以使用我的自定义 controller 进行跟踪。 However, the instruction https://kubernetes.io/docs/concepts/cluster-administration/system-traces/#trace-collection is very high level to me.
但是,指令https://kubernetes.io/docs/concepts/cluster-administration/system-traces/#trace-collection对我来说是非常高级的。 Is there any other detailed instruction on how to enable tracing?
还有其他关于如何启用跟踪的详细说明吗?
Note: I'm not looking for tracing on applications running in K8s env instead kubernetes components like kube-api-server, controller, kube-manager...注意:我不是在寻找在 K8s 环境中运行的应用程序的跟踪,而是 kubernetes 组件,如 kube-api-server、controller、kube-manager...
What I've done so far: I've started k8s-api-server with below two args到目前为止我所做的:我已经使用以下两个参数启动了 k8s-api-server
--feature-gates=APIServerTracing=true
--tracing-config-file=/tmp/tracing.conf
once the api-server pod is up and running, should I able to see traces when creating a pod in the api-server pod logs?一旦 api-server pod 启动并运行,我应该能够在 api-server pod 日志中创建 pod 时看到跟踪吗? I just see usual logs, nothing specific to tracing.
我只看到通常的日志,没有特定于跟踪的内容。 what am I missing?
我错过了什么?
I tried deploying opentelemetry collector as mentioned at https://opentelemetry.io/docs/collector/getting-started/#kubernetes
but我尝试按照
https://opentelemetry.io/docs/collector/getting-started/#kubernetes
中提到的那样部署 opentelemetry 收集器,但是
Appreciate your suggestions!感谢您的建议!
本文暂无回复,试试以下方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.