Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 如何将数据从GCP pubsub发送到prometheus吊舱_Kubernetes_Google Cloud Platform_Grafana_Prometheus_Google Cloud Pubsub - Fatal编程技术网

Kubernetes 如何将数据从GCP pubsub发送到prometheus吊舱

Kubernetes 如何将数据从GCP pubsub发送到prometheus吊舱,kubernetes,google-cloud-platform,grafana,prometheus,google-cloud-pubsub,Kubernetes,Google Cloud Platform,Grafana,Prometheus,Google Cloud Pubsub,我指的是 我想从我的设备发送数据并将其可视化到grafana上,因此,如何将prometheus(在gcp中部署为集群)连接到gcp pubsub。prometheus是基于推送的,而不是基于推送的。因此,无论度量源是什么,它都必须以Prometheus格式公开度量,并且Prometheus将使用HTTP请求定期查询它们 如果无法直接公开度量,度量源可以将度量推送到某个中间组件,该组件以Prometheus格式公开度量,以便Prometheus可以查询它们 这似乎是你所指的政府所采取的方法。这些

我指的是

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

prometheus是基于推送的,而不是基于推送的。因此,无论度量源是什么,它都必须以Prometheus格式公开度量,并且Prometheus将使用HTTP请求定期查询它们

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

这似乎是你所指的政府所采取的方法。这些度量数据通过PubSub从源提交到Kubernetes集群中运行的度量遥测转换器吊舱,该吊舱以普罗米修斯格式公开这些数据

然后,您必须让普罗米修斯从这个pod中获取度量,因为您将为任何其他工作配置它