mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Merge pull request #36766 from openshift-cherrypick-robot/cherry-pick-36300-to-enterprise-4.9
[enterprise-4.9] MON-1798 - Added content for disabling the local Alertmanager in the Monitoring stack
This commit is contained in:
43
modules/monitoring-disabling-the-local-alertmanager.adoc
Normal file
43
modules/monitoring-disabling-the-local-alertmanager.adoc
Normal file
@@ -0,0 +1,43 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * monitoring/configuring-the-monitoring-stack.adoc
|
||||
|
||||
[id="monitoring-disabling-the-local-alertmanager_{context}"]
|
||||
= Disabling the local Alertmanager
|
||||
|
||||
A local Alertmanager that routes alerts from Prometheus instances is enabled by default in the `openshift-monitoring` project of the {product-title} monitoring stack.
|
||||
|
||||
If you do not need the local Alertmanager, you can disable it by configuring the `cluster-monitoring-config` config map in the `openshift-monitoring` project.
|
||||
|
||||
.Prerequisites
|
||||
|
||||
* You have access to the cluster as a user with the `cluster-admin` role.
|
||||
* You have created the `cluster-monitoring-config` config map.
|
||||
* You have installed the OpenShift CLI (`oc`).
|
||||
|
||||
.Procedure
|
||||
|
||||
. Edit the `cluster-monitoring-config` config map in the `openshift-monitoring` project:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc -n openshift-monitoring edit configmap cluster-monitoring-config
|
||||
----
|
||||
|
||||
. Add `enabled: false` for the `alertmanagerMain` component under `data/config.yaml`:
|
||||
+
|
||||
[source,yaml]
|
||||
----
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cluster-monitoring-config
|
||||
namespace: openshift-monitoring
|
||||
data:
|
||||
config.yaml: |
|
||||
alertmanagerMain:
|
||||
enabled: false
|
||||
----
|
||||
|
||||
. Save the file to apply the changes. The Alertmanager instance is disabled automatically when you apply the change.
|
||||
|
||||
@@ -140,6 +140,13 @@ include::modules/monitoring-disabling-grafana.adoc[leveloffset=+1]
|
||||
|
||||
* 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
|
||||
|
||||
// Disabling the local Alertmanager
|
||||
include::modules/monitoring-disabling-the-local-alertmanager.adoc[leveloffset=+1]
|
||||
|
||||
.Additional resources
|
||||
* link:https://prometheus.io/docs/alerting/latest/alertmanager/[Prometheus Alertmanager documentation]
|
||||
* xref:../monitoring/managing-alerts.adoc#[Managing alerts]
|
||||
|
||||
== Next steps
|
||||
|
||||
* xref:../monitoring/enabling-monitoring-for-user-defined-projects.adoc#enabling-monitoring-for-user-defined-projects[Enabling monitoring for user-defined projects]
|
||||
|
||||
Reference in New Issue
Block a user