6.4.2.2. Prometheus 资源
应用 Prometheus 配置时,会在 OpenShift 集群中创建并由 Prometheus Operator 管理以下资源:
-
为 Prometheus 授予权限来读取 Kafka 和 ZooKeeper pod、cAdvisor 和 kubelet 针对容器指标公开的健康端点的
ClusterRole。 -
要运行的 Prometheus Pod 的
ServiceAccount。 -
一个
ClusterRoleBinding,它将ClusterRole绑定到ServiceAccount。 -
用于管理 Prometheus Operator pod 的
Deployment。 -
用于管理 Prometheus pod 配置的
PodMonitor。 -
用于管理
Prometheuspod 配置的 Prometheus。 -
用于管理
Prometheus pod 的警报规则的 PrometheusRule。 -
用于管理其他 Prometheus 设置的
Secret。 -
一个
服务,允许在集群中运行的应用程序连接到 Prometheus(例如,使用 Prometheus 作为数据源的 Grafana)。