2.15. Prometheus Remote Write Receiver


Prometheus Remote Write Receiver 使用 Remote Write 协议从 Prometheus 接收指标,并将其转换为 OpenTelemetry 格式。此接收器只支持 Prometheus Remote Write v2 协议。

重要

Prometheus Remote Write Receiver 只是一个技术预览功能。技术预览功能不受红帽产品服务等级协议(SLA)支持,且功能可能并不完整。红帽不推荐在生产环境中使用它们。这些技术预览功能可以使用户提早试用新的功能,并有机会在开发阶段提供反馈意见。

有关红帽技术预览功能支持范围的更多信息,请参阅技术预览功能支持范围

OpenTelemetry Collector 自定义资源带有启用的 Prometheus Remote Write Receiver

# ...
  config:
    receivers:
      prometheusremotewrite:
        endpoint: 0.0.0.0:9090 
1

    # ...
    service:
      pipelines:
        metrics:
          receivers: [prometheusremotewrite]
# ...
Copy to Clipboard Toggle word wrap

1
接收器侦听 Prometheus Remote Write 请求的端点。

以下是将此接收器与 Prometheus 搭配使用的先决条件:

  • Prometheus 在启用了元数据 WAL 记录功能标记的情况下启动。
  • Prometheus Remote Write v2 协议在 Prometheus 远程写入配置中被启用。
  • 使用功能标记在 Prometheus 中启用了原生直方图。
  • Prometheus 被配置为将经典直方图转换为原生直方图。

有关启用这些 Prometheus 功能的更多信息,请参阅 Prometheus 文档。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部