1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

Do not instruct to create an empty configmap for monitoring operator

This commit is contained in:
Olga Mirensky
2020-08-27 10:55:30 +10:00
committed by openshift-cherrypick-robot
parent 127e309b6c
commit 52b751f3eb

View File

@@ -3,36 +3,26 @@
// * monitoring/cluster_monitoring/configuring-the-monitoring-stack.adoc
[id="creating-cluster-monitoring-configmap_{context}"]
= Creating cluster monitoring ConfigMap
= Creating a cluster monitoring ConfigMap
To configure the Prometheus Cluster Monitoring stack, you must create the cluster monitoring ConfigMap.
To configure the {product-title} monitoring stack, you must create the cluster monitoring ConfigMap.
.Prerequisites
* An installed `oc` CLI tool
* Administrative privileges for the cluster
* You have access to the cluster as a user with the cluster-admin role.
* You have installed the OpenShift CLI (`oc`).
.Procedure
. Check whether the `cluster-monitoring-config` ConfigMap object exists:
+
[source,terminal]
----
$ oc -n openshift-monitoring get configmap cluster-monitoring-config
----
. If it does not exist, create it:
+
----
$ oc -n openshift-monitoring create configmap cluster-monitoring-config
----
. Start editing the `cluster-monitoring-config` ConfigMap:
+
----
$ oc -n openshift-monitoring edit configmap cluster-monitoring-config
----
. Create the `data` section if it does not exist yet:
. If the ConfigMap does not exist:
.. Create the following YAML manifest. In this example the file is called `cluster-monitoring-config.yaml`:
+
[source,yaml]
----
@@ -44,3 +34,10 @@ metadata:
data:
config.yaml: |
----
+
.. Apply the configuration to create the ConfigMap:
+
[source,terminal]
----
$ oc apply -f cluster-monitoring-config.yaml
----