Skip to content

Commit f141aea

Browse files
authored
Merge pull request #111630 from lcavalle/TELCODOCS-2694-dita-rewrite
TELCODOCS-2694 DITA migration cleanup for observability.adoc
2 parents 15a7b1c + 432b031 commit f141aea

5 files changed

Lines changed: 34 additions & 53 deletions

modules/observability-alerting.adoc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,26 @@
22
//
33
// * edge_computing/day_2_core_cnf_clusters/observability/observability.adoc
44

5-
:_mod-docs-content-type: PROCEDURE
5+
:_mod-docs-content-type: CONCEPT
66
[id="observability-alerting_{context}"]
7-
87
= Alerting
98

9+
[role="_abstract"]
1010
{product-title} includes a large number of alert rules, which can change from release to release.
1111

1212
[id="viewing-default-alerts_{context}"]
1313
== Viewing default alerts
1414

15-
Review all of the alert rules in a cluster.
16-
17-
.Procedure
15+
To review all of the alert rules in a cluster, run the following command:
1816

19-
* To review all the alert rules in a cluster, run the following command:
2017
[source,terminal]
21-
+
2218
----
2319
$ oc get cm -n openshift-monitoring prometheus-k8s-rulefiles-0 -o yaml
2420
----
25-
+
21+
2622
Rules can include a description and provide a link to additional information and mitigation steps.
2723
For example, see the rule for `etcdHighFsyncDurations`:
28-
+
24+
2925
[source,terminal]
3026
----
3127
- alert: etcdHighFsyncDurations

modules/observability-key-performance-metrics.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[id="observability-key-performance-metrics_{context}"]
77
= Key performance metrics
88

9+
[role="_abstract"]
910
Depending on your system, you can have hundreds of available measurements.
1011

1112
Consider the following key metrics:

modules/observability-monitoring-stack.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
:_mod-docs-content-type: CONCEPT
66
[id="observability-monitoring-stack_{context}"]
7-
= Understanding the monitoring stack
7+
= Monitoring stack components
8+
9+
[role="_abstract"]
10+
The monitoring stack in {product-title} consists of several integrated components that collect, analyze, store, and alert on metrics.
811

912
The monitoring stack uses the following components:
1013

modules/observability-monitoring-the-edge.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="observability-monitoring-the-edge_{context}"]
7-
87
= Monitoring at the far edge network
98

10-
{product-title} clusters at the edge must keep the footprint of the platform components to a minimum.
9+
[role="_abstract"]
10+
{product-title} clusters at the edge must keep the footprint of the platform components to a minimum.
1111
The following procedure is an example of how to configure a {sno} or a node at the far edge network with a small monitoring footprint.
1212

1313
.Prerequisites
@@ -198,7 +198,7 @@ $ oc get routes,pods -n open-cluster-management-observability
198198
----
199199
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
200200
route.route.openshift.io/alertmanager alertmanager-open-cluster-management-observability.cloud.example.com /api/v2 alertmanager oauth-proxy reencrypt/Redirect None
201-
route.route.openshift.io/grafana grafana-open-cluster-management-observability.cloud.example.com grafana oauth-proxy reencrypt/Redirect None <1>
201+
route.route.openshift.io/grafana grafana-open-cluster-management-observability.cloud.example.com grafana oauth-proxy reencrypt/Redirect None
202202
route.route.openshift.io/observatorium-api observatorium-api-open-cluster-management-observability.cloud.example.com observability-observatorium-api public passthrough/None None
203203
route.route.openshift.io/rbac-query-proxy rbac-query-proxy-open-cluster-management-observability.cloud.example.com rbac-query-proxy https reencrypt/Redirect None
204204
@@ -213,6 +213,10 @@ pod/observability-thanos-store-shard-1-0 1/1 Running
213213
pod/observability-thanos-store-shard-2-0 1/1 Running 0 1d
214214
215215
----
216-
<1> A dashboard is accessible at the grafana route listed. You can use this to view metrics across all managed clusters.
216+
+
217+
[NOTE]
218+
====
219+
A dashboard is accessible at the grafana route listed. You can use this to view metrics across all managed clusters.
220+
====
217221

218-
For more information on observability in {rh-rhacm-title}, see link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.12/html/observability/index[Observability].
222+
For more information on observability in {rh-rhacm-title}, see link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.12/html/observability/index[Observability].

modules/observability-workload-monitoring.adoc

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[id="observability-workload-monitoring_{context}"]
77
= Workload monitoring
88

9-
By default, {product-title} does not collect metrics for application workloads. You can configure a cluster to collect workload metrics.
9+
[role="_abstract"]
10+
By default, {product-title} does not collect metrics for application workloads. You can configure a cluster to collect workload metrics and create alerts for user workloads.
1011

1112
.Prerequisites
1213

@@ -25,9 +26,10 @@ metadata:
2526
namespace: openshift-monitoring
2627
data:
2728
config.yaml: |
28-
enableUserWorkload: true <1>
29+
enableUserWorkload: true
2930
----
30-
<1> Set to `true` to enable workload monitoring.
31+
+
32+
Set `enableUserWorkload` to `true` to enable workload monitoring.
3133

3234
. Apply the `ConfigMap` CR by running the following command:
3335
+
@@ -48,58 +50,33 @@ metadata:
4850
name: myapp
4951
namespace: myns
5052
spec:
51-
endpoints: <1>
53+
endpoints:
5254
- interval: 30s
5355
port: ui-http
5456
scheme: http
55-
path: /healthz <2>
57+
path: /healthz
5658
selector:
5759
matchLabels:
5860
app: ui
5961
----
60-
<1> Use endpoints to define workload metrics.
61-
<2> Prometheus scrapes the path `/metrics` by default. You can define a custom path here.
62+
+
63+
--
64+
* `endpoints` specifies the workload metrics endpoints to scrape.
65+
* `path` specifies a custom scrape path. Prometheus scrapes the `/metrics` path by default.
66+
--
6267

6368
. Apply the `ServiceMonitor` CR by running the following command:
6469
+
6570
[source,terminal]
6671
----
6772
$ oc apply -f monitoringServiceMonitor.yaml
6873
----
69-
70-
Prometheus scrapes the `/metrics` path by default. However, you can define a custom path.
71-
The vendor of the application must decide whether to expose the endpoint for scraping, with metrics that they deem relevant.
72-
73-
== Creating a workload alert
74-
75-
You can enable alerts for user workloads on a cluster.
76-
77-
.Procedure
78-
79-
. Create a `ConfigMap` CR, and save it as `monitoringConfigMap.yaml`, as in the following example:
8074
+
81-
[source,yaml]
82-
----
83-
apiVersion: v1
84-
kind: ConfigMap
85-
metadata:
86-
name: cluster-monitoring-config
87-
namespace: openshift-monitoring
88-
data:
89-
config.yaml: |
90-
enableUserWorkload: true <1>
91-
# ...
92-
----
93-
<1> Set to `true` to enable workload monitoring.
75+
The vendor of the application must decide whether to expose the endpoint for scraping, with metrics that they deem relevant.
9476

95-
. Apply the `ConfigMap` CR by running the following command:
96-
+
97-
[source,terminal]
98-
----
99-
$ oc apply -f monitoringConfigMap.yaml
100-
----
77+
. To enable alerts for user workloads, verify that the `cluster-monitoring-config` ConfigMap has `enableUserWorkload: true` set. If you completed step 1, this is already configured.
10178

102-
. Create a YAML file for alerting rules, `monitoringAlertRule.yaml`, as in the following example:
79+
. Create a YAML file for alerting rules and save it as `monitoringAlertRule.yaml`, as in the following example:
10380
+
10481
[source,yaml]
10582
----

0 commit comments

Comments
 (0)