微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Jaeger与ElasticSearch成为一体

如何解决Jaeger与ElasticSearch成为一体

我正在使用Jaeger在ASP.NET Core(3.1)Web API中使用Jaeger C# Client进行原型制作,并使其与All in One approach they mention in their Getting Started documentation一起使用。这对于初始原型工作正常,但我还想测试存储到ElasticSearch的实例。幸运的是,我找到了another Stack Overflow post about this which contains a docker-compose.yaml for deploying Elastic Search and all the Jaeger components,并且在对稍稍过时的docker-compose(details in my answer for that post)进行了一些调整之后,我的工作正常了。

但是,在浏览Jaeger文档时,我发现CLI Flags reference for the jaeger-all-in-one distribution似乎与自己矛盾。首先,它说

Jaeger具有代理,收集器和查询的多合一分发。谨慎使用此版本,认情况下仅使用内存数据库

但随后它也要说

jaeger-all-in-one可以与以下存储后端一起使用:

,然后列出jager-all-in-one分发的CLI标志详细信息:

因此,这意味着Jaeger All-One发行版可以与Elastic Search等配合使用。我猜测关于仅支持内存数据库的All-one发行版的最初评论适用于{{3} }选项,而不是其他选项,否则就没有意义。

有Jaeger经验的人可以澄清吗?

解决方法

文档中不清楚,但是我设法通过提供 if os.path.isfile(os.path.join(dir,obj)): print ("File : "+os.path.join(dir,obj)) elif os.path.isdir(os.path.join(dir,obj)): recursive(os.path.join(dir,obj)) else: print ('Not a directory or file %s' % (os.path.join(dir,obj)) 和相应的连接详细信息使其工作,以使jaeger组件能够与在多合一容器外部运行的存储进行通信

例如,我在Mac上运行elasticsearch,因此我使用以下命令运行多合一:

SPAN_STORAGE_TYPE

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。