导出器
导出器将 telemetry 数据传送到一个或多个后端目标。它们可以在推送或拉取模式下运行,并且默认未配置——至少必须定义一个。每个导出器可能支持一种或多种信号类型。虽然某些导出器可以使用默认配置工作,但大多数都需要你至少指定目标 endpoint 和安全参数。
OTLP gRPC 导出器
OTLP gRPC 导出器使用 gRPC 传输通过 OpenTelemetry Protocol (OTLP) 发送 traces 和 metrics。其类型名称为 otlp_grpc。旧名称 otlp 仍可作为已弃用的别名使用,但会在启动时报告,并将在上游移除。
参考: OTLP gRPC Exporter Documentation
此次重命名仅影响 exporter。对于 receivers,OTLP receiver 仍保留类型名称 otlp。请参见 Component type names。
OTLP HTTP 导出器
OTLP HTTP 导出器使用 HTTP 传输通过 OpenTelemetry Protocol (OTLP) 发送 traces 和 metrics。其类型名称为 otlp_http。旧名称 otlphttp 仍可作为已弃用的别名使用。
参考: OTLP HTTP Exporter Documentation
Debug 导出器
Debug 导出器会将 traces 和 metrics 写入标准输出,供故障排查使用。
参考: Debug Exporter Documentation
负载均衡导出器
负载均衡导出器会根据配置的 routing_key,以一致的方式将 spans、metrics 和 logs 分发到各个后端。
参考: Load Balancing Exporter Documentation
Prometheus 导出器
Prometheus 导出器以 Prometheus 或 OpenMetrics 格式暴露 metrics 供抓取。
参考: Prometheus Exporter Documentation
Prometheus Remote Write 导出器
Prometheus Remote Write 导出器会将 metrics 推送到支持 Prometheus Remote Write 协议的后端。
参考: Prometheus Remote Write Exporter Documentation
Kafka 导出器
Kafka 导出器会将 logs、metrics 和 traces 发布到 Kafka topic。由于它使用同步、非批处理的 producer,建议将其与 Batch Processor 和队列重试机制配合使用,以提升吞吐量和可靠性。
参考: Kafka Exporter Documentation
文件导出器
文件导出器会将 telemetry 数据持久化到本地文件,并支持轮转、压缩和多文件输出。你还可以基于 resource attribute 配置文件命名,以实现更精细的输出控制。