Skip to content

Commit 92d9245

Browse files
authored
Merge pull request #44107 from bburt-rh/RHDEVDOCS-3858-update-example-code-in-configuring-cluster-monitoring-topic
RHDEVDOCS-3858 - update example code in Configuring cluster monitoring topic
2 parents 583f071 + cd8e86e commit 92d9245

File tree

1 file changed

+16
-35
lines changed

1 file changed

+16
-35
lines changed

modules/configuring-cluster-monitoring.adoc

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,80 +6,61 @@
66
[id="configuring-cluster-monitoring_{context}"]
77
= Configuring cluster monitoring
88

9+
[role="_abstract"]
10+
You can increase the storage capacity for the Prometheus component in the cluster monitoring stack.
11+
912
.Procedure
1013

1114
To increase the storage capacity for Prometheus:
1215

13-
. Create a YAML configuration file, `cluster-monitoring-config.yml`. For example:
16+
. Create a YAML configuration file, `cluster-monitoring-config.yaml`. For example:
1417
+
1518
[source,yaml]
1619
----
1720
apiVersion: v1
1821
kind: ConfigMap
1922
data:
2023
config.yaml: |
21-
prometheusOperator:
22-
baseImage: quay.io/coreos/prometheus-operator
23-
prometheusConfigReloaderBaseImage: quay.io/coreos/prometheus-config-reloader
24-
configReloaderBaseImage: quay.io/coreos/configmap-reload
25-
nodeSelector:
26-
node-role.kubernetes.io/infra: ""
2724
prometheusK8s:
2825
retention: {{PROMETHEUS_RETENTION_PERIOD}} <1>
29-
baseImage: openshift/prometheus
3026
nodeSelector:
3127
node-role.kubernetes.io/infra: ""
3228
volumeClaimTemplate:
3329
spec:
34-
storageClassName: gp2
30+
storageClassName: {{STORAGE_CLASS}} <2>
3531
resources:
3632
requests:
37-
storage: {{PROMETHEUS_STORAGE_SIZE}} <2>
33+
storage: {{PROMETHEUS_STORAGE_SIZE}} <3>
3834
alertmanagerMain:
39-
baseImage: openshift/prometheus-alertmanager
4035
nodeSelector:
4136
node-role.kubernetes.io/infra: ""
4237
volumeClaimTemplate:
4338
spec:
44-
storageClassName: gp2
39+
storageClassName: {{STORAGE_CLASS}} <2>
4540
resources:
4641
requests:
47-
storage: {{ALERTMANAGER_STORAGE_SIZE}} <3>
48-
nodeExporter:
49-
baseImage: openshift/prometheus-node-exporter
50-
kubeRbacProxy:
51-
baseImage: quay.io/coreos/kube-rbac-proxy
52-
kubeStateMetrics:
53-
baseImage: quay.io/coreos/kube-state-metrics
54-
nodeSelector:
55-
node-role.kubernetes.io/infra: ""
56-
grafana:
57-
baseImage: grafana/grafana
58-
nodeSelector:
59-
node-role.kubernetes.io/infra: ""
60-
auth:
61-
baseImage: openshift/oauth-proxy
62-
k8sPrometheusAdapter:
63-
nodeSelector:
64-
node-role.kubernetes.io/infra: ""
42+
storage: {{ALERTMANAGER_STORAGE_SIZE}} <4>
6543
metadata:
6644
name: cluster-monitoring-config
67-
namespace: openshift-monitoring
45+
namespace: openshift-monitoring
6846
----
6947
<1> A typical value is `PROMETHEUS_RETENTION_PERIOD=15d`. Units are measured in
7048
time using one of these suffixes: s, m, h, d.
71-
<2> A typical value is `PROMETHEUS_STORAGE_SIZE=2000Gi`. Storage values can be a
49+
<2> The storage class for your cluster.
50+
<3> A typical value is `PROMETHEUS_STORAGE_SIZE=2000Gi`. Storage values can be a
7251
plain integer or as a fixed-point integer using one of these suffixes: E, P, T,
7352
G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.
74-
<3> A typical value is `ALERTMANAGER_STORAGE_SIZE=20Gi`. Storage values can be a
53+
<4> A typical value is `ALERTMANAGER_STORAGE_SIZE=20Gi`. Storage values can be a
7554
plain integer or as a fixed-point integer using one of these suffixes: E, P, T,
7655
G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.
7756

78-
. Set the values like the retention period and storage sizes.
57+
. Add values for the retention period, storage class, and storage sizes.
58+
59+
. Save the file.
7960

8061
. Apply the changes by running:
8162
+
8263
[source,terminal]
8364
----
84-
$ oc create -f cluster-monitoring-config.yml
65+
$ oc create -f cluster-monitoring-config.yaml
8566
----

0 commit comments

Comments
 (0)