diff --git a/images/monitoring-architecture.png b/images/monitoring-architecture.png index b3d15f0cbb..5f2be05da6 100644 Binary files a/images/monitoring-architecture.png and b/images/monitoring-architecture.png differ diff --git a/modules/infrastructure-moving-monitoring.adoc b/modules/infrastructure-moving-monitoring.adoc index c1852ae071..a75076cc87 100644 --- a/modules/infrastructure-moving-monitoring.adoc +++ b/modules/infrastructure-moving-monitoring.adoc @@ -57,7 +57,7 @@ data: - key: node-role.kubernetes.io/infra value: reserved effect: NoExecute - k8sPrometheusAdapter: + metricsServer: nodeSelector: node-role.kubernetes.io/infra: "" tolerations: diff --git a/modules/monitoring-about-specifying-limits-and-requests-for-monitoring-components.adoc b/modules/monitoring-about-specifying-limits-and-requests-for-monitoring-components.adoc index 6d6ec7ca0a..1131a8e800 100644 --- a/modules/monitoring-about-specifying-limits-and-requests-for-monitoring-components.adoc +++ b/modules/monitoring-about-specifying-limits-and-requests-for-monitoring-components.adoc @@ -14,7 +14,7 @@ You can configure resource limits and request settings for core platform monitor * node-exporter * openshift-state-metrics * Prometheus (for core platform monitoring and for user-defined projects) -* Prometheus Adapter +* Metrics Server * Prometheus Operator and its admission webhook service * Telemeter Client * Thanos Querier diff --git a/modules/monitoring-common-terms.adoc b/modules/monitoring-common-terms.adoc index 025f506b4f..56318f6a32 100644 --- a/modules/monitoring-common-terms.adoc +++ b/modules/monitoring-common-terms.adoc @@ -54,6 +54,9 @@ Kubernetes scheduler allocates pods to nodes. labels:: Labels are key-value pairs that you can use to organize and select subsets of objects such as a pod. +Metrics Server:: +The Metrics Server monitoring component collects resource metrics and exposes them in the `metrics.k8s.io` Metrics API service for use by other tools and APIs, which frees the core platform Prometheus stack from handling this functionality. + node:: A worker machine in the {product-title} cluster. A node is either a virtual machine (VM) or a physical machine. @@ -75,9 +78,6 @@ The pod is the smallest logical unit in Kubernetes. A pod is comprised of one or Prometheus:: Prometheus is the monitoring system on which the {product-title} monitoring stack is based. Prometheus is a time-series database and a rule evaluation engine for metrics. Prometheus sends alerts to Alertmanager for processing. -Prometheus adapter:: -The Prometheus Adapter translates Kubernetes node and pod queries for use in Prometheus. The resource metrics that are translated include CPU and memory utilization. The Prometheus Adapter exposes the cluster resource metrics API for horizontal pod autoscaling. - Prometheus Operator:: The Prometheus Operator (PO) in the `openshift-monitoring` project creates, configures, and manages platform Prometheus and Alertmanager instances. It also automatically generates monitoring target configurations based on Kubernetes label queries. diff --git a/modules/monitoring-configurable-monitoring-components.adoc b/modules/monitoring-configurable-monitoring-components.adoc index ac31029b3f..173a0ad2e2 100644 --- a/modules/monitoring-configurable-monitoring-components.adoc +++ b/modules/monitoring-configurable-monitoring-components.adoc @@ -5,9 +5,9 @@ [id="configurable-monitoring-components_{context}"] = Configurable monitoring components -This table shows the monitoring components you can configure and the keys used to specify the components in the +This table shows the monitoring components you can configure and the keys used to specify the components in the ifndef::openshift-dedicated,openshift-rosa[] -`cluster-monitoring-config` and +`cluster-monitoring-config` and endif::openshift-dedicated,openshift-rosa[] `user-workload-monitoring-config` `ConfigMap` objects. @@ -30,7 +30,7 @@ ifndef::openshift-dedicated,openshift-rosa[] |monitoring-plugin | `monitoringPlugin` | |openshift-state-metrics |`openshiftStateMetrics` | |Telemeter Client |`telemeterClient` | -|Prometheus Adapter |`k8sPrometheusAdapter` | +|Metrics Server |`metricsServer` | |Thanos Querier |`thanosQuerier` | |Thanos Ruler | |`thanosRuler` |==== diff --git a/modules/monitoring-default-monitoring-components.adoc b/modules/monitoring-default-monitoring-components.adoc index 38b3780e95..1b0d93be81 100644 --- a/modules/monitoring-default-monitoring-components.adoc +++ b/modules/monitoring-default-monitoring-components.adoc @@ -23,14 +23,8 @@ By default, the {product-title} {product-version} monitoring stack includes thes |Prometheus |Prometheus is the monitoring system on which the {product-title} monitoring stack is based. Prometheus is a time-series database and a rule evaluation engine for metrics. Prometheus sends alerts to Alertmanager for processing. -|Prometheus Adapter -|The Prometheus Adapter (PA in the preceding diagram) translates Kubernetes node and pod queries for use in Prometheus. The resource metrics that are translated include CPU and memory utilization metrics. The Prometheus Adapter exposes the cluster resource metrics API for horizontal pod autoscaling. The Prometheus Adapter is also used by the `oc adm top nodes` and `oc adm top pods` commands. - -|Metrics Server (Technology Preview) -|If enabled, the Metrics Server component collects resource metrics and exposes them in the `metrics.k8s.io` Metrics API service for use by other tools and APIs, which frees the core platform Prometheus stack from handling this functionality. - -The Technology Preview of the Metrics Server component is automatically installed instead of Prometheus Adapter if you configure the `FeatureGate` custom resource with the `TechPreviewNoUpgrade` option. -For more information about the support scope of Red{nbsp}Hat Technology Preview features, see link:https://access.redhat.com/support/offerings/techpreview/[Technology Preview Features Support Scope]. +|Metrics Server +|The Metrics Server component (MS in the preceding diagram) collects resource metrics and exposes them in the `metrics.k8s.io` Metrics API service for use by other tools and APIs, which frees the core platform Prometheus stack from handling this functionality. Note that with the {product-title} 4.16 release, Metrics Server replaces Prometheus Adapter. |Alertmanager |The Alertmanager service handles alerts received from Prometheus. Alertmanager is also responsible for sending the alerts to external notification systems. @@ -39,7 +33,7 @@ For more information about the support scope of Red{nbsp}Hat Technology Preview |The kube-state-metrics exporter agent (KSM in the preceding diagram) converts Kubernetes objects to metrics that Prometheus can use. |monitoring-plugin -|The monitoring-plugin dynamic plugin component deploys the monitoring pages in the *Observe* section of the {product-title} web console. +|The monitoring-plugin dynamic plugin component deploys the monitoring pages in the *Observe* section of the {product-title} web console. You can use Cluster Monitoring Operator (CMO) config map settings to manage monitoring-plugin resources for the web console pages. |openshift-state-metrics agent diff --git a/modules/monitoring-specifying-limits-and-requests-for-monitoring-components.adoc b/modules/monitoring-specifying-limits-and-requests-for-monitoring-components.adoc index 87c1f7ca25..d448881a98 100644 --- a/modules/monitoring-specifying-limits-and-requests-for-monitoring-components.adoc +++ b/modules/monitoring-specifying-limits-and-requests-for-monitoring-components.adoc @@ -4,7 +4,7 @@ :_mod-docs-content-type: PROCEDURE [id="specifying-limits-and-resource-requests-for-monitoring-components_{context}"] -= Specifying limits and requests for monitoring components += Specifying limits and requests for monitoring components To configure CPU and memory resources, specify values for resource limits and requests in the appropriate `ConfigMap` object for the namespace in which the monitoring component is located: @@ -72,13 +72,13 @@ data: requests: cpu: 200m memory: 500Mi - k8sPrometheusAdapter: + metricsServer: resources: - limits: - cpu: 500m - memory: 1Gi requests: - cpu: 200m + cpu: 10m + memory: 50Mi + limits: + cpu: 50m memory: 500Mi kubeStateMetrics: resources: diff --git a/observability/monitoring/configuring-the-monitoring-stack.adoc b/observability/monitoring/configuring-the-monitoring-stack.adoc index ff0dc9bd33..3a1b829000 100644 --- a/observability/monitoring/configuring-the-monitoring-stack.adoc +++ b/observability/monitoring/configuring-the-monitoring-stack.adoc @@ -301,13 +301,10 @@ include::modules/monitoring-enabling-query-logging-for-thanos-querier.adoc[level * See xref:../../observability/monitoring/configuring-the-monitoring-stack.adoc#preparing-to-configure-the-monitoring-stack[Preparing to configure the monitoring stack] for steps to create monitoring config maps. endif::openshift-dedicated,openshift-rosa[] -// Setting audit log levels for the Prometheus Adapter -ifndef::openshift-dedicated,openshift-rosa[] -include::modules/monitoring-setting-audit-log-levels-for-the-prometheus-adapter.adoc[leveloffset=+1] - [role="_additional-resources"] .Additional resources +ifndef::openshift-dedicated,openshift-rosa[] * See xref:../../observability/monitoring/configuring-the-monitoring-stack.adoc#preparing-to-configure-the-monitoring-stack[Preparing to configure the monitoring stack] for steps to create monitoring config maps. endif::openshift-dedicated,openshift-rosa[]