简体   繁体   English

Jaeger 跟踪配置端点

[英]Jaeger Tracing Config Endpoint

I'm trying setting up a spring application which use Jaeger/Prometheus.我正在尝试设置一个使用 Jaeger/Prometheus 的 spring 应用程序。 I already configured Prometheus successfully by prometheus.yaml file, but I haven't understood how configure Jaeger target endpoint.我已经通过 prometheus.yaml 文件成功配置了 Prometheus,但是我还没有理解如何配置 Jaeger 目标端点。 Must I create a new yaml file and specify into it the configuration?我必须创建一个新的 yaml 文件并在其中指定配置吗? If yes, with which syntax?如果是,使用哪种语法?

The Jaeger tracer (the part that runs along with your application) will send spans via UDP to an agent running on localhost by default.默认情况下,Jaeger 跟踪器(与您的应用程序一起运行的部分)将通过 UDP 将跨度发送到在本地主机上运行的代理。 If your agent is somewhere else, set the JAEGER_AGENT_HOST / JAEGER_AGENT_PORT env vars accordingly.如果您的代理在其他地方,请相应地设置JAEGER_AGENT_HOST / JAEGER_AGENT_PORT变量。 If you don't want an agent running on localhost and want to access a Jaeger Collector directly via HTTP, then set the JAEGER_ENDPOINT env var.如果您不希望在本地主机上运行代理并希望通过 HTTP 直接访问 Jaeger 收集器,请设置JAEGER_ENDPOINT

More info about these env vars can be found in the documentation or here: https://github.com/jaegertracing/jaeger-client-java/tree/master/jaeger-core#configuration-via-environment有关这些环境变量的更多信息可以在文档或这里找到: https : //github.com/jaegertracing/jaeger-client-java/tree/master/jaeger-core#configuration-via-environment

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM