将采集管道与 C OpenSearch ollector 配合使用 OpenTelemetry - 亚马逊 OpenSearch 服务
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

将采集管道与 C OpenSearch ollector 配合使用 OpenTelemetry

此示例OpenTelemetry 配置文件从 OpenTelemetry收集器导出跟踪数据并将其发送到 OpenSearch 摄取管道。有关摄取跟踪数据的更多信息,请参阅 Data Prepper 文档中的跟踪分析

请注意以下几点:

  • endpoint 值必须包含管道端点。例如,https://pipeline-endpoint.us-east-1.osis.amazonaws.com

  • service 值必须为 osis

  • OTLP/HTTP 导出器的compression选项必须与管道源上的compression选项相匹配。 OpenTelemetry

extensions: sigv4auth: region: "us-east-1" service: "osis" receivers: jaeger: protocols: grpc: exporters: otlphttp: traces_endpoint: "https://pipeline-endpoint.us-east-1.osis.amazonaws.com/v1/traces" auth: authenticator: sigv4auth compression: none service: extensions: [sigv4auth] pipelines: traces: receivers: [jaeger] exporters: [otlphttp]

然后,您可以配置如下所示的 OpenSearch Ingestion 管道,该管道将 oTel 跟踪插件指定为来源:

version: "2" otel-trace-pipeline: source: otel_trace_source: path: "/v1/traces" processor: - trace_peer_forwarder: sink: - pipeline: name: "trace-pipeline" - pipeline: name: "service-map-pipeline" trace-pipeline: source: pipeline: name: "otel-trace-pipeline" processor: - otel_traces: sink: - opensearch: hosts: ["https://search-domain-endpoint.us-east-1.es.amazonaws.com"] index_type: trace-analytics-raw aws: # IAM role that OpenSearch Ingestion assumes to access the domain sink sts_role_arn: "arn:aws:iam::{account-id}:role/pipeline-role" region: "us-east-1" service-map-pipeline: source: pipeline: name: "otel-trace-pipeline" processor: - service_map: sink: - opensearch: hosts: ["https://search-domain-endpoint.us-east-1.es.amazonaws.com"] index_type: trace-analytics-service-map aws: # IAM role that the pipeline assumes to access the domain sink sts_role_arn: "arn:aws:iam::{account-id}:role/pipeline-role" region: "us-east-1"

有关另一个示例管道,请参阅跟踪分析管道蓝图。有关更多信息,请参阅 使用蓝图创建管道