Anthos 配置管理 Prometheus 指标

问题描述

如何为 Anthos Config Management (ACM) 启用 Prometheus 指标。版本 1.7.X。 该文档不清楚,因为这些步骤中的大部分似乎都来自 ACM 文件https://cloud.google.com/anthos-config-management/docs/how-to/monitoring-config-sync

解决方法

ACM 在默认端口 8675 上自行发出指标。我们不必打开该端口。此 https://cloud.google.com/anthos-config-management/docs/how-to/monitoring-config-sync 文档指导我们设置新的 Prometheus。 如果您已经拥有 Prometheus 操作员,您只需为 Prometheus 创建一个 serviceMonitor 来抓取指标。