Skip to content

Commit 431edc0

Browse files
authored
Merge pull request #60911 from bburt-rh/OBSDOCS-191-remove-TP-status-of-alert-relabelings
OBSDOCS-191: Remove TP status and update API version for alert relabelings and overrides
2 parents bc5626a + 0e15a0d commit 431edc0

3 files changed

+10
-13
lines changed

modules/monitoring-creating-new-alerting-rules.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="creating-new-alerting-rules_{context}"]
77
= Creating new alerting rules
88

9-
As a cluster administrator, you can create new alerting rules based on platform metrics.
9+
As a cluster administrator, you can create new alerting rules based on platform metrics.
1010
These alerting rules trigger alerts based on the values of chosen metrics.
1111

1212
[NOTE]
@@ -25,12 +25,12 @@ If you create a customized `AlertingRule` resource based on an existing platform
2525

2626
. Create a new YAML configuration file named `example-alerting-rule.yaml` in the `openshift-monitoring` namespace.
2727

28-
. Add an `AlertingRule` resource to the YAML file.
28+
. Add an `AlertingRule` resource to the YAML file.
2929
The following example creates a new alerting rule named `example`, similar to the default `watchdog` alert:
3030
+
3131
[source,yaml]
3232
----
33-
apiVersion: monitoring.openshift.io/v1alpha1
33+
apiVersion: monitoring.openshift.io/v1
3434
kind: AlertingRule
3535
metadata:
3636
name: example

modules/monitoring-managing-core-platform-alerting-rules.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
[id="managing-core-platform-alerting-rules_{context}"]
77
= Managing alerting rules for core platform monitoring
88

9-
:FeatureName: Creating and modifying alerting rules for core platform monitoring
10-
include::snippets/technology-preview.adoc[leveloffset=+1]
11-
129
{product-title} {product-version} monitoring ships with a large set of default alerting rules for platform metrics.
1310
As a cluster administrator, you can customize this set of rules in two ways:
1411

@@ -23,6 +20,6 @@ For example, you can change the `severity` label for an alert from `warning` to
2320
2421
* You can only add and modify alerting rules. You cannot create new recording rules or modify existing recording rules.
2522
26-
* If you modify existing platform alerting rules by using an `AlertRelabelConfig` object, your modifications are not reflected in the Prometheus alerts API.
27-
Therefore, any dropped alerts still appear in the {product-title} web console even though they are no longer forwarded to Alertmanager.
23+
* If you modify existing platform alerting rules by using an `AlertRelabelConfig` object, your modifications are not reflected in the Prometheus alerts API.
24+
Therefore, any dropped alerts still appear in the {product-title} web console even though they are no longer forwarded to Alertmanager.
2825
Additionally, any modifications to alerts, such as a changed `severity` label, do not appear in the web console.

modules/monitoring-modifying-core-platform-alerting-rules.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="modifying-core-platform-alerting-rules_{context}"]
77
= Modifying core platform alerting rules
88

9-
As a cluster administrator, you can modify core platform alerts before Alertmanager routes them to a receiver.
9+
As a cluster administrator, you can modify core platform alerts before Alertmanager routes them to a receiver.
1010
For example, you can change the severity label of an alert, add a custom label, or exclude an alert from being sent to Alertmanager.
1111

1212
.Prerequisites
@@ -20,12 +20,12 @@ For example, you can change the severity label of an alert, add a custom label,
2020

2121
. Create a new YAML configuration file named `example-modified-alerting-rule.yaml` in the `openshift-monitoring` namespace.
2222

23-
. Add an `AlertRelabelConfig` resource to the YAML file.
24-
The following example modifies the `severity` setting to `critical` for the default platform `watchdog` alerting rule:
23+
. Add an `AlertRelabelConfig` resource to the YAML file.
24+
The following example modifies the `severity` setting to `critical` for the default platform `watchdog` alerting rule:
2525
+
2626
[source,yaml]
2727
----
28-
apiVersion: monitoring.openshift.io/v1alpha1
28+
apiVersion: monitoring.openshift.io/v1
2929
kind: AlertRelabelConfig
3030
metadata:
3131
name: watchdog
@@ -42,7 +42,7 @@ spec:
4242
<2> The regular expression against which the value of `sourceLabels` is matched.
4343
<3> The target label of the value you want to modify.
4444
<4> The new value to replace the target label.
45-
<5> The relabel action that replaces the old value based on regex matching.
45+
<5> The relabel action that replaces the old value based on regex matching.
4646
The default action is `Replace`.
4747
Other possible values are `Keep`, `Drop`, `HashMod`, `LabelMap`, `LabelDrop`, and `LabelKeep`.
4848

0 commit comments

Comments
 (0)