mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
42 lines
939 B
Plaintext
42 lines
939 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// monitoring/configuring-the-monitoring-stack.adoc
|
|
|
|
[id="creating-cluster-monitoring-configmap-{context}"]
|
|
= Creating cluster monitoring ConfigMap
|
|
|
|
To configure the Prometheus Cluster Monitoring stack, you must create the cluster monitoring Configmap.
|
|
|
|
.Prerequisites
|
|
|
|
* An installed `oc` CLI tool
|
|
* Administrative privileges for the cluster
|
|
|
|
.Procedure
|
|
|
|
. Check whether the `cluster-monitoring-config` ConfigMap object exists:
|
|
+
|
|
----
|
|
$ oc -n openshift-monitoring get configmaps 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:
|
|
+
|
|
[source,yaml,subs=quotes]
|
|
----
|
|
data:
|
|
config.yaml: |
|
|
----
|