Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in _index.md #815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ ServiceMonitors 比 PodMonitors 更常用,我们建议在大多数用例中使

当 ServiceMonitor 被创建时,Prometheus Operator 会更新 Prometheus 抓取配置以包含 ServiceMonitor 配置。然后 Prometheus 开始从 ServiceMonitor 中定义的端点抓取指标。

集群中与 ServiceMonitor `selector` 字段中的标签相匹配的任何服务将根据 ServiceMonitor 上指定的 `endpoints` 进行监控。具体可以指定哪些字段,请查看 Prometheus Operator 提供的[详细文档](https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#servicemonitor)。
集群中与 ServiceMonitor `selector` 字段中的标签相匹配的任何服务将根据 ServiceMonitor 上指定的 `endpoints` 进行监控。具体可以指定哪些字段,请查看 Prometheus Operator 提供的[详细文档](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitor)。

关于 ServiceMonitors 如何工作的更多信息,请参阅 [Prometheus Operator 文档](https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/running-exporters.md)
关于 ServiceMonitors 如何工作的更多信息,请参阅 [Prometheus Operator 文档](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/running-exporters.md)

## PodMonitors

这个伪 CRD 映射到 Prometheus 自定义资源配置的一部分。它以声明方式指定应如何监控 Pod 组。

创建 PodMonitor 时,Prometheus Operator 会更新 Prometheus 抓取配置以包含 PodMonitor 配置。然后 Prometheus 开始从 ServiceMonitor 中定义的端点抓取指标。
创建 PodMonitor 时,Prometheus Operator 会更新 Prometheus 抓取配置以包含 PodMonitor 配置。然后 Prometheus 开始从 PodMonitor 中定义的端点抓取指标。

集群中与 PodMonitor `selector` 字段中的标签匹配的任何 Pod 都将根据 PodMonitor 上指定的 `podMetricsEndpoints` 进行监控。具体可以指定哪些字段,请查看 Prometheus Operator 提供的[详细文档](https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#podmonitorspec)
集群中与 PodMonitor `selector` 字段中的标签匹配的任何 Pod 都将根据 PodMonitor 上指定的 `podMetricsEndpoints` 进行监控。具体可以指定哪些字段,请查看 Prometheus Operator 提供的[详细文档](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#podmonitorspec)