简体   繁体   English

使用 Prometheus 进行基于 SLO 的监控与 Google Cloud Monitoring 相比有哪些优势?

[英]What are advantages of using Prometheus over Google Cloud Monitoring for SLO based monitoring?

I am working on creating monitoring based on SLO.我正在致力于创建基于 SLO 的监控。 So far I have been using Google Cloud Monitoring solutions like Dashboards, Alerting and Uptime Checks.到目前为止,我一直在使用 Google 云监控解决方案,例如仪表板、警报和正常运行时间检查。

I have noticed GCP has now a Managed Service for Prometheus.我注意到 GCP 现在为 Prometheus 提供了托管服务。

My question is what would be the advantage of using Prometheus(not only Google managed one)for monitoring.我的问题是使用普罗米修斯(不仅仅是谷歌管理的)进行监控有什么好处。 Is there anything that could be achieved with Prometheus that I could not achive with Google Cloud Monitoring?是否有什么可以通过 Prometheus 实现而我无法通过 Google Cloud Monitoring 实现的?

Managed service for prometheus is a managed and automatically scalable prometheus endpoint.普罗米修斯托管服务是一个托管且可自动扩展的普罗米修斯端点。 You can request the metrics with PromQL language instead of MQL (Monitoring Query Language).您可以使用 PromQL 语言而不是 MQL(监控查询语言)来请求指标。

What's the advantage?有什么好处? If you deploy an application instrumented with Open Telemetry (for example), you don't have to change anything.如果您部署一个使用 Open Telemetry 检测的应用程序(例如),则无需更改任何内容。 On Kube.netes (GKE), the managed collector do the job for you.在 Kube.netes (GKE) 上,托管收集器会为您完成这项工作。 Else you have to configure the collector to use Managed Service for Prometheus.否则,您必须将收集器配置为使用 Prometheus 的托管服务。

If you build an app from scratch, and you want it portable, Open Telemetry and Prometheus are standard tools to instrument your app.如果您从头开始构建一个应用程序,并且希望它具有可移植性,则 Open Telemetry 和 Prometheus 是检测您的应用程序的标准工具。

If not, use Cloud Monitoring!如果没有,请使用云监控!

Important note重要的提示

That feature is very new and, for now, only the metrics sinks with Managed Service for Prometheus can be query with PromQL.该功能是非常新的,目前,只有 Prometheus 托管服务的指标接收器可以使用 PromQL 进行查询。 The other metrics must be requested by MQL.其他指标必须由 MQL 请求。 It could change in the future.将来可能会改变。

So, for now, if you can use built in Cloud Monitoring metrics, it's a better solution.因此,就目前而言,如果您可以使用内置的 Cloud Monitoring 指标,这是一个更好的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM