GCP 监控中的服务可以监控端点吗?

Can Services in GCP's Monitoring monitor endpoints?

我在 GKE 集群上安装了托管 Anthos。 Anthos Service Mesh 正在运行并显示我的 API。多亏了监控中的服务自动检测到我的 API。这很棒,因为它使我能够轻松地为我的 API.

设置 SLO 和错误预算

不过,我希望能够在 api 中轻松地为各个端点设置 SLO。服务(在监控中)仅检测我的 API 而不是我的 API 中的端点(我的 API 是一个 pod/container + sidecar)。我尝试将端点添加到监控中的服务,但看起来只能在那里添加 Kubernetes 对象。

有没有办法在端点监控中使用服务?这样做的唯一方法是打破端点以分离微服务吗?

您可以使用 Cloud Endpoints with OpenAPI 来监控您的端点,这样您就可以通过使用Cloud Endpoints 自动为您维护的日志和指标。当用户向您的 API 发出请求时,Endpoints 会记录有关请求和响应的信息,还会跟踪四个黄金监控信号中的三个:延迟、流量和错误。这些使用情况和性能指标可帮助您监控 API.

以下URLConfiguring Cloud Endpoints has the configuration process for Cloud Endpoints. Use this URL Monitoring your API as a reference on the monitoring process for your API, and this last URL for the Cloud Endpoint’s overview.