首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jaegar收集器可以从otel收集器接收通过otlp协议传入的跨度和轨迹吗?

jaegar收集器可以从otel收集器接收通过otlp协议传入的跨度和轨迹吗?
EN

Stack Overflow用户
提问于 2021-06-18 12:11:24
回答 1查看 144关注 0票数 1

我有一个应用程序,它可以生成跨度和轨迹,并使用otlp协议将它们发送到otel收集器。现在,如果我将jaeger配置为otel收集器配置中的一个导出器,jaeger收集器是否能够接收和显示跟踪和跨度?

如果我们看到jaeger收集器文档

代码语言:javascript
复制
At default settings the collector exposes the following ports:
Port    Protocol    Function
14250   gRPC    used by jaeger-agent to send spans in model.proto format
14268   HTTP    can accept spans directly from clients in jaeger.thrift format over binary thrift protocol
9411    HTTP    can accept Zipkin spans in Thrift, JSON and Proto (disabled by default)
14269   HTTP    admin port: health check at / and metrics at /metrics

没有提到它接受otel格式的跟踪和跨度。

Otel收集器配置

代码语言:javascript
复制
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: collector-config
data:
  collector.yaml: |
    receivers:
      otlp:
        protocols: 
          grpc:
    processors:
    exporters:
      logging:
      jaeger:
        endpoint: jaeger-all-in-one:14250
        insecure: true
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: []
          exporters: [logging]
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-23 12:19:22

是的,它的设计是为了将otel跟踪导出为其他格式,包括jaeger。您可以这样配置您的配置

代码语言:javascript
复制
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: collector-config
data:
  collector.yaml: |
    receivers:
      otlp:
        protocols:
          grpc:
    processors:
    exporters:
      jaeger:
        endpoint: jaeger-collector.default.svc.cluster.local:14250
        insecure: true
      logging:
    service:
      name: cpp-template
      pipelines:
        traces:
          receivers: [otlp]
          processors: []
          exporters: [jaeger]

只需将exporter设置为具有有效端点的jaeger,并在跟踪管道的exporter列表中设置jaeger

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68029213

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档