AWS X-Ray 可以配置为在多容器 Beanstalk 应用程序中工作吗? [英] Can AWS X-Ray be configured to work in a multi-container Beanstalk application?

查看:22
本文介绍了AWS X-Ray 可以配置为在多容器 Beanstalk 应用程序中工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让 AWS X-Ray 在多容器 Beanstalk 应用程序中工作,如在文档中.我找到了一个社区构建的 X-Ray 容器,可以与我的应用程序一起运行:pottava/xray:2.0.根据 docker statsdocker ps 这个容器正在运行并接收/发送网络流量(跟踪通过 UDP 发送到容器).但是 AWS 控制台中没有显示跟踪数据.

I am trying to get AWS X-Ray working in a multi-container Beanstalk app as described in the docs. I found a community-built X-Ray container which I can run alongside my app: pottava/xray:2.0. According to docker stats and docker ps this container is running and receiving/sending network traffic (the traces are sent via UDP to the container). But there is no tracing data showing up in the AWS console.

我没有按照建议通过 .ebextensions/ 配置文件启用 X-Ray 此处.尝试此操作无法部署到 Beanstalk.事实上,多容器环境并没有被列为支持的平台.因此,虽然很多文档都提到在 Beanstalk 上使用 X-Ray,但我不确定是否有办法在我的多 Docker 环境中进行配置.

I have not enabled X-Ray via a .ebextensions/ config file as suggested here. Trying this failed the deployment to Beanstalk. In fact, the multi-container environment is not listed as a supported platform. So while plenty of docs mention using X-Ray on Beanstalk, I am not sure if there is a way to configure this on my multi-Docker environment.

  • 可以在多 Docker Beanstalk 中配置 X-Ray 吗?如果是,如何?
  • 解决集合问题的最佳方法是什么?交付痕迹?

推荐答案

您链接到的社区构建的 Docker 容器应该可以在 AWS Elastic Beanstalk 中正常工作.

The community-built Docker container to which you've linked should work as desired in AWS Elastic Beanstalk.

您是否已将必要的 AWSXrayWriteOnlyAccess 托管策略添加到您的 Elastic Beanstalk 实例配置文件中?

Have you added the necessary AWSXrayWriteOnlyAccess managed policy to your Elastic Beanstalk instance profile?

要进一步排除故障,请从守护程序的 Docker 容器中查找 AWS X-Ray 守护程序日志.日志将报告对 PutTraceSegments API 的任何尝试调用,以及可能导致的任何错误.在链接的 Docker 容器中,此 文件位于 /var/log/xray-daemon.log.

To further troubleshoot, please find the AWS X-Ray daemon logs from within the daemon's Docker container. The log will report any attempted calls to the PutTraceSegments API, as well as any errors which may result. In the linked Docker container, this file is located at /var/log/xray-daemon.log.

这篇关于AWS X-Ray 可以配置为在多容器 Beanstalk 应用程序中工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆