mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
Merge pull request #45952 from openshift-cherrypick-robot/cherry-pick-45891-to-enterprise-4.11
[enterprise-4.11] RHDEVDOCS-4007 - fully modularize monitoring docs for Jupiter
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-alerts.adoc
|
||||
|
||||
:_content-type: PROCEDURE
|
||||
[id="accessing_the_alerting_ui_{context}"]
|
||||
= Accessing the Alerting UI in the Administrator and Developer perspectives
|
||||
|
||||
|
||||
@@ -101,10 +101,3 @@ To change the Alertmanager configuration from the {product-title} web console:
|
||||
. Modify the YAML configuration file.
|
||||
|
||||
. Select *Save*.
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
* See link:https://www.pagerduty.com/[the PagerDuty official site] for more information on PagerDuty
|
||||
* See link:https://www.pagerduty.com/docs/guides/prometheus-integration-guide/[the PagerDuty Prometheus Integration Guide] to learn how to retrieve the `service_key`
|
||||
* See link:https://prometheus.io/docs/alerting/configuration/[Alertmanager configuration] for configuring alerting through different alert receivers
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/application-monitoring.adoc
|
||||
|
||||
:_content-type: PROCEDURE
|
||||
[id="configuring-cluster-for-application-monitoring_{context}"]
|
||||
= Configuring cluster for application monitoring
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/application-monitoring.adoc
|
||||
|
||||
:_content-type: PROCEDURE
|
||||
[id="configuring-monitoring-for-an-application_{context}"]
|
||||
= Configuring monitoring for an application
|
||||
|
||||
|
||||
23
modules/monitoring-configuring-persistent-storage.adoc
Normal file
23
modules/monitoring-configuring-persistent-storage.adoc
Normal file
@@ -0,0 +1,23 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="configuring_persistent_storage_{context}"]
|
||||
= Configuring persistent storage
|
||||
|
||||
Running cluster monitoring with persistent storage means that your metrics are stored to a persistent volume (PV) and can survive a pod being restarted or recreated. This is ideal if you require your metrics or alerting data to be guarded from data loss. For production environments, it is highly recommended to configure persistent storage. Because of the high IO demands, it is advantageous to use local storage.
|
||||
|
||||
[id="persistent-storage-prerequisites"]
|
||||
== Persistent storage prerequisites
|
||||
|
||||
* Dedicate sufficient local persistent storage to ensure that the disk does not become full. How much storage you need depends on the number of pods.
|
||||
|
||||
* Make sure you have a persistent volume (PV) ready to be claimed by the persistent volume claim (PVC), one PV for each replica. Because Prometheus has two replicas and Alertmanager has three replicas, you need five PVs to support the entire monitoring stack. The PVs should be available from the Local Storage Operator. This does not apply if you enable dynamically provisioned storage.
|
||||
|
||||
* Use the block type of storage.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
If you use a local volume for persistent storage, do not use a raw block volume, which is described with `volumeMode: block` in the `LocalVolume` object. Prometheus cannot use raw block volumes.
|
||||
====
|
||||
@@ -2,8 +2,8 @@
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
[id="enabling-query-logging-for-thanos-querier_{context}"]
|
||||
:_content-type: PROCEDURE
|
||||
[id="enabling-query-logging-for-thanos-querier_{context}"]
|
||||
= Enabling query logging for Thanos Querier
|
||||
|
||||
[role="_abstract"]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-alerts.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="managing-alerting-rules_{context}"]
|
||||
= Managing alerting rules
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-alerts.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="managing-silences_{context}"]
|
||||
= Managing silences
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-alerts.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="Optimizing-alerting-for-user-defined-projects_{context}"]
|
||||
= Optimizing alerting for user-defined projects
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// * monitoring/managing-metrics.adoc
|
||||
// * virt/logging_events_monitoring/virt-prometheus-queries.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="querying-metrics_{context}"]
|
||||
= Querying metrics
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-alerts.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="searching-alerts-silences-and-alerting-rules_{context}"]
|
||||
= Searching and filtering alerts, silences, and alerting rules
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-metrics-targets.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="monitoring-searching-and-filtering-metrics-targets_{context}"]
|
||||
= Searching and filtering metrics targets
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// * monitoring/managing-alerts.adoc
|
||||
// * post_installation_configuration/configuring-alert-notifications.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="sending-notifications-to-external-systems_{context}"]
|
||||
= Sending notifications to external systems
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
[id="setting-query-log-file-for-prometheus_{context}"]
|
||||
:_content-type: PROCEDURE
|
||||
[id="setting-query-log-file-for-prometheus_{context}"]
|
||||
= Enabling the query log file for Prometheus
|
||||
|
||||
[role="_abstract"]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/managing-metrics.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="setting-up-metrics-collection-for-user-defined-projects_{context}"]
|
||||
= Setting up metrics collection for user-defined projects
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="support-considerations_{context}"]
|
||||
= Support considerations for monitoring
|
||||
|
||||
|
||||
@@ -29,8 +29,3 @@ http_requests_total{code="404",method="get"} 2
|
||||
# TYPE version gauge
|
||||
version{version="v0.1.0"} 1
|
||||
----
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
* See the link:https://prometheus.io/docs/instrumenting/clientlibs/[Prometheus documentation] for details on Prometheus client libraries.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
:_content-type: CONCEPT
|
||||
[id="unmanaged-monitoring-operators_{context}"]
|
||||
= Support policy for monitoring Operators
|
||||
|
||||
|
||||
@@ -69,42 +69,20 @@ include::modules/monitoring-assigning-tolerations-to-monitoring-components.adoc[
|
||||
* See the link:https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/[Kubernetes documentation] on taints and tolerations
|
||||
|
||||
// Configuring persistent storage
|
||||
[id="configuring-persistent-storage"]
|
||||
== Configuring persistent storage
|
||||
|
||||
Running cluster monitoring with persistent storage means that your metrics are stored to a persistent volume (PV) and can survive a pod being restarted or recreated. This is ideal if you require your metrics or alerting data to be guarded from data loss. For production environments, it is highly recommended to configure persistent storage. Because of the high IO demands, it is advantageous to use local storage.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
See xref:../scalability_and_performance/optimizing-storage.adoc#recommended-configurable-storage-technology_persistent-storage[Recommended configurable storage technology].
|
||||
====
|
||||
|
||||
[id="persistent-storage-prerequisites"]
|
||||
=== Persistent storage prerequisites
|
||||
|
||||
* Dedicate sufficient local persistent storage to ensure that the disk does not become full. How much storage you need depends on the number of pods. For information on system requirements for persistent storage, see xref:../scalability_and_performance/scaling-cluster-monitoring-operator.adoc#prometheus-database-storage-requirements_cluster-monitoring-operator[Prometheus database storage requirements].
|
||||
|
||||
* Make sure you have a persistent volume (PV) ready to be claimed by the persistent volume claim (PVC), one PV for each replica. Because Prometheus has two replicas and Alertmanager has three replicas, you need five PVs to support the entire monitoring stack. The PVs should be available from the Local Storage Operator. This does not apply if you enable dynamically provisioned storage.
|
||||
|
||||
* Use the block type of storage.
|
||||
|
||||
* xref:../storage/persistent_storage/persistent-storage-local.adoc#persistent-storage-using-local-volume[Configure local persistent storage.]
|
||||
+
|
||||
[NOTE]
|
||||
====
|
||||
If you use a local volume for persistent storage, do not use a raw block volume, which is described with `volumeMode: block` in the `LocalVolume` object. Prometheus cannot use raw block volumes.
|
||||
====
|
||||
|
||||
include::modules/monitoring-configuring-persistent-storage.adoc[leveloffset=+1]
|
||||
include::modules/monitoring-configuring-a-local-persistent-volume-claim.adoc[leveloffset=+2]
|
||||
include::modules/monitoring-modifying-retention-time-and-size-for-prometheus-metrics-data.adoc[leveloffset=+2]
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
* See xref:../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.
|
||||
* xref:../monitoring/enabling-monitoring-for-user-defined-projects.adoc#enabling-monitoring-for-user-defined-projects[Enabling monitoring for user-defined projects]
|
||||
* xref:../monitoring/configuring-the-monitoring-stack.adoc#creating-cluster-monitoring-configmap_configuring-the-monitoring-stack[Creating a cluster monitoring config map]
|
||||
* xref:../scalability_and_performance/scaling-cluster-monitoring-operator.adoc#prometheus-database-storage-requirements_cluster-monitoring-operator[Prometheus database storage requirements]
|
||||
* xref:../scalability_and_performance/optimizing-storage.adoc#recommended-configurable-storage-technology_persistent-storage[Recommended configurable storage technology]
|
||||
* xref:../storage/understanding-persistent-storage.adoc#understanding-persistent-storage[Understanding persistent storage]
|
||||
* xref:../scalability_and_performance/optimizing-storage.adoc#optimizing-storage[Optimizing storage]
|
||||
* xref:../storage/persistent_storage/persistent-storage-local.adoc#persistent-storage-using-local-volume[Configure local persistent storage]
|
||||
* xref:../monitoring/enabling-monitoring-for-user-defined-projects.adoc#enabling-monitoring-for-user-defined-projects[Enabling monitoring for user-defined projects]
|
||||
|
||||
// Configuring remote write storage for Prometheus
|
||||
include::modules/monitoring-configuring-remote-write-storage.adoc[leveloffset=+1]
|
||||
|
||||
@@ -65,6 +65,13 @@ include::modules/monitoring-creating-alert-routing-for-user-defined-projects.ado
|
||||
// Applying a custom Alertmanager configuration
|
||||
include::modules/monitoring-applying-custom-alertmanager-configuration.adoc[leveloffset=+1]
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
* See link:https://www.pagerduty.com/[the PagerDuty official site] for more information on PagerDuty.
|
||||
* See link:https://www.pagerduty.com/docs/guides/prometheus-integration-guide/[the PagerDuty Prometheus Integration Guide] to learn how to retrieve the `service_key`.
|
||||
* See link:https://prometheus.io/docs/alerting/configuration/[Alertmanager configuration] for configuring alerting through different alert receivers.
|
||||
|
||||
== Next steps
|
||||
|
||||
* xref:../monitoring/reviewing-monitoring-dashboards.adoc#reviewing-monitoring-dashboards[Reviewing monitoring dashboards]
|
||||
|
||||
@@ -12,6 +12,11 @@ You can collect metrics to monitor how cluster components and your own workloads
|
||||
// Understanding metrics
|
||||
include::modules/monitoring-understanding-metrics.adoc[leveloffset=+1]
|
||||
|
||||
[role="_additional-resources"]
|
||||
.Additional resources
|
||||
|
||||
* link:https://prometheus.io/docs/instrumenting/clientlibs/[Prometheus client library documentation]
|
||||
|
||||
// Setting up metrics collection for user-defined projects
|
||||
include::modules/monitoring-setting-up-metrics-collection-for-user-defined-projects.adoc[leveloffset=+1]
|
||||
include::modules/monitoring-deploying-a-sample-service.adoc[leveloffset=+2]
|
||||
|
||||
Reference in New Issue
Block a user