【发布时间】:2020-01-23 04:26:13
【问题描述】:
我推荐this doc。
我想从我的设备发送数据并在 grafana 上将其可视化,因此,如何将 prometheus(在 gcp 中部署为集群)连接到 GCP pubsub。
【问题讨论】:
标签: kubernetes google-cloud-platform grafana prometheus google-cloud-pubsub
我推荐this doc。
我想从我的设备发送数据并在 grafana 上将其可视化,因此,如何将 prometheus(在 gcp 中部署为集群)连接到 GCP pubsub。
【问题讨论】:
标签: kubernetes google-cloud-platform grafana prometheus google-cloud-pubsub
Prometheus 是pull-based,而不是基于推送的。因此,无论指标来源是什么,它都必须以 Prometheus 格式公开指标,Prometheus 会定期使用 HTTP 请求查询它们。
如果无法直接公开指标,指标源可以将指标推送到某个中间组件,该中间组件以 Prometheus 格式公开指标,以便 Prometheus 可以查询它们。
这似乎是您所指的document 采用的方法。指标通过 PubSub 从源提交到运行在 Kubernetes 集群中的 Metrics Telemetry Converter pod,后者以 Prometheus 格式公开它们。
然后您必须 configurePrometheus 从该 pod 中抓取指标,就像您为任何其他工作配置它一样。
【讨论】: