GCP 监控中的服务可以监控端点吗?
我在 GKE 集群上安装了托管 Anthos。 Anthos Service Mesh 正在运行并显示我的 API。感谢监控中的服务自动检测我的 API。这非常棒,因为它使我能够轻松地为 API 设置 SLO 和错误预算。
不过,我希望能够轻松地在 api 中为各个端点设置 SLO。服务(在监控中)仅检测我的 API,而不检测我的 API 内的端点(我的 API 是一个 pod/容器 + sidecar)。我尝试将端点添加到监控中的服务,但看起来只能在那里添加 Kubernetes 对象。
有没有办法在端点监控中使用服务?打破单独微服务的端点是唯一的方法吗?
I installed managed Anthos on a GKE cluster. Anthos Service Mesh is working and is displaying my API. Thanks to that Services that are in Monitoring automatically detect my API. This is great as it enables me to easily set SLOs and Error Budget for my API.
However I would like to be able to easily set SLOs for individual endpoints in my api. Services(in Monitoring) detect only my API and not the endpoints within my API(my API is one pod/container + sidecar). I tried to add endpoints to Services in Monitoring but it looks like it is only possible to add Kubernetes Objects there.
Is there a way to use Services in Monitoring with endpoints? Is the only way to do so to break endpoints to separate microservices?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Cloud Endpoints with OpenAPI 来监控您的端点,这样您就可以使用 Cloud Endpoints 自动为您维护的日志和指标来监控您拥有的 API 的运行状况。当用户向您的 API 发出请求时,端点会记录有关请求和响应的信息,并跟踪四个黄金监控信号中的三个:延迟、流量和错误。这些使用情况和性能指标可帮助您监控 API。
以下网址配置 Cloud Endpoints 包含的配置过程云端点。使用此网址监控您的 API作为监控参考您的 API 的流程,以及 Cloud Endpoint 概述的最后一个网址。
You can monitor your endpoints using Cloud Endpoints with OpenAPI, which allows you to monitor the health of APIs you own by using the logs and metrics Cloud Endpoints maintains for you automatically. When users make requests to your API, Endpoints logs information about the requests and responses and also tracks three of the four golden signals of monitoring: latency, traffic, and errors. These usage and performance metrics help you monitor your API.
The following URL Configuring 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.