Please enable Javascript to view the contents

Opentelemetry Collector

 ·  ☕ 1 分钟

配置

参考:https://opentelemetry.io/docs/collector/configuration

Receivers

参考:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
receivers:
  otlp: #(default = 0.0.0.0:4317 for grpc protocol, 0.0.0.0:55681 http protocol
    protocols:
      grpc:
      http:
        #endpoint: "localhost:55681"

processors:
  #batch:

exporters:
  file:
    path: ./otel-traces.json

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: []
      exporters: [file]

Exporter

参考:

设计

参考:https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/design.md

下载

分享

Mark Zhu
作者
Mark Zhu
Old Developer