【问题标题】:how to send data from GCP pubsub to prometheus pod如何将数据从 GCP pubsub 发送到 prometheus pod
【发布时间】:2020-01-23 04:26:13
【问题描述】:

我推荐this doc

我想从我的设备发送数据并在 grafana 上将其可视化,因此,如何将 prometheus(在 gcp 中部署为集群)连接到 GCP pubsub。

【问题讨论】:

    标签: kubernetes google-cloud-platform grafana prometheus google-cloud-pubsub


    【解决方案1】:

    Prometheus 是pull-based,而不是基于推送的。因此,无论指标来源是什么,它都必须以 Prometheus 格式公开指标,Prometheus 会定期使用 HTTP 请求查询它们。

    如果无法直接公开指标,指标源可以将指标推送到某个中间组件,该中间组件以 Prometheus 格式公开指标,以便 Prometheus 可以查询它们。

    这似乎是您所指的document 采用的方法。指标通过 PubSub 从源提交到运行在 Kubernetes 集群中的 Metrics Telemetry Converter pod,后者以 Prometheus 格式公开它们。

    然后您必须 configurePrometheus 从该 pod 中抓取指标,就像您为任何其他工作配置它一样。

    【讨论】:

      猜你喜欢
      • 2020-05-15
      • 2021-08-09
      • 2017-12-23
      • 2021-07-19
      • 1970-01-01
      • 2017-07-17
      • 2023-01-16
      • 2017-02-19
      • 1970-01-01
      相关资源
      最近更新 更多