1
0
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:
Ashleigh Brennan
2021-09-24 15:30:28 -05:00
committed by GitHub
2 changed files with 50 additions and 0 deletions

View 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.

View File

@@ -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]