Skip to content

Commit 551d7ca

Browse files
authored
Merge pull request #51335 from michaelryanmcneill/OSDOCS-4296
OSDOCS-4296: Adding information on user-defined alerting
2 parents bcadabe + 6e19703 commit 551d7ca

15 files changed

+384
-10
lines changed

_topic_maps/_topic_map_osd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ Topics:
138138
File: osd-accessing-monitoring-for-user-defined-projects
139139
- Name: Configuring the monitoring stack
140140
File: osd-configuring-the-monitoring-stack
141+
- Name: Enabling alert routing for user-defined projects
142+
File: osd-enabling-alert-routing-for-user-defined-projects
141143
- Name: Managing metrics
142144
File: osd-managing-metrics
143145
- Name: Managing alerts

_topic_maps/_topic_map_rosa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ Topics:
230230
File: rosa-accessing-monitoring-for-user-defined-projects
231231
- Name: Configuring the monitoring stack
232232
File: rosa-configuring-the-monitoring-stack
233+
- Name: Enabling alert routing for user-defined projects
234+
File: rosa-enabling-alert-routing-for-user-defined-projects
233235
- Name: Managing metrics
234236
File: rosa-managing-metrics
235237
- Name: Managing alerts

modules/monitoring-applying-a-custom-configuration-to-alertmanager-for-user-defined-alert-routing.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Module included in the following assemblies:
22
//
33
// * monitoring/managing-alerts.adoc
4+
// * monitoring/osd-managing-alerts.adoc
5+
// * osd_cluster_admin/osd_monitoring/osd-managing-alerts.adoc
6+
// * rosa_cluster_admin/rosa_monitoring/rosa-managing-alerts.adoc
47

58
:_content-type: PROCEDURE
69
[id="applying-a-custom-configuration-to-alertmanager-for-user-defined-alert-routing_{context}"]
@@ -10,7 +13,12 @@ If you have enabled a separate instance of Alertmanager dedicated to user-define
1013

1114
.Prerequisites
1215

16+
ifdef::openshift-rosa,openshift-dedicated[]
17+
* You have access to the cluster as a user with the `cluster-admin` or `dedicated-admin` role.
18+
endif::[]
19+
ifndef::openshift-rosa,openshift-dedicated[]
1320
* You have access to the cluster as a user with the `cluster-admin` role.
21+
endif::[]
1422

1523
.Procedure
1624

modules/monitoring-enabling-a-separate-alertmanager-instance-for-user-defined-alert-routing.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
// Module included in the following assemblies:
22
//
33
// * monitoring/enabling-alert-routing-for-user-defined-projects.adoc
4+
// * monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
5+
// * osd_cluster_admin/osd_monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
6+
// * rosa_cluster_admin/rosa_monitoring/rosa-enabling-alert-routing-for-user-defined-projects.adoc
47

58
:_content-type: PROCEDURE
69
[id="enabling-a-separate-alertmanager-instance-for-user-defined-alert-routing_{context}"]
710
= Enabling a separate Alertmanager instance for user-defined alert routing
811

12+
ifndef::openshift-rosa,openshift-dedicated[]
913
In some clusters, you might want to deploy a dedicated Alertmanager instance for user-defined projects, which can help reduce the load on the default platform Alertmanager instance and can better separate user-defined alerts from default platform alerts.
10-
In these cases, you can optionally enable a separate instance of Alertmanager to send alerts only for user-defined projects.
14+
endif::[]
15+
ifdef::openshift-rosa,openshift-dedicated[]
16+
In {product-title}, you may want to deploy a dedicated Alertmanager instance for user-defined projects, which provides user-defined alerts separate from default platform alerts.
17+
endif::[]
18+
In these cases, you can optionally enable a separate instance of Alertmanager to send alerts for user-defined projects only.
1119

1220
.Prerequisites
1321

22+
ifdef::openshift-rosa,openshift-dedicated[]
23+
* You have access to the cluster as a user with the `cluster-admin` or `dedicated-admin` role.
24+
endif::[]
25+
ifndef::openshift-rosa,openshift-dedicated[]
1426
* You have access to the cluster as a user with the `cluster-admin` role.
27+
endif::[]
1528
* You have enabled monitoring for user-defined projects in the `cluster-monitoring-config` config map for the `openshift-monitoring` namespace.
1629
* You have installed the OpenShift CLI (`oc`).
1730

modules/monitoring-granting-users-permission-to-configure-alert-routing-for-user-defined-projects.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Module included in the following assemblies:
22
//
33
// * monitoring/enabling-alert-routing-for-user-defined-projects.adoc
4+
// * monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
5+
// * osd_cluster_admin/osd_monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
6+
// * rosa_cluster_admin/rosa_monitoring/rosa-enabling-alert-routing-for-user-defined-projects.adoc
47

58
:_content-type: PROCEDURE
69
[id="granting-users-permission-to-configure-alert-routing-for-user-defined-projects_{context}"]
@@ -11,7 +14,12 @@ You can grant users permission to configure alert routing for user-defined proje
1114

1215
.Prerequisites
1316

17+
ifdef::openshift-rosa,openshift-dedicated[]
18+
* You have access to the cluster as a user with the `cluster-admin` or `dedicated-admin` role.
19+
endif::[]
20+
ifndef::openshift-rosa,openshift-dedicated[]
1421
* You have access to the cluster as a user with the `cluster-admin` role.
22+
endif::[]
1523
* The user account that you are assigning the role to already exists.
1624
* You have installed the OpenShift CLI (`oc`).
1725
* You have enabled monitoring for user-defined projects.

modules/monitoring-listing-alerting-rules-for-all-projects-in-a-single-view.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Module included in the following assemblies:
22
//
33
// * monitoring/managing-alerts.adoc
4+
// * monitoring/osd-managing-alerts.adoc
5+
// * osd_cluster_admin/osd_monitoring/osd-managing-alerts.adoc
6+
// * rosa_cluster_admin/rosa_monitoring/rosa-managing-alerts.adoc
47

58
:_content-type: PROCEDURE
69
[id="listing-alerting-rules-for-all-projects-in-a-single-view_{context}"]
@@ -10,7 +13,12 @@ As a cluster administrator, you can list alerting rules for core {product-title}
1013

1114
.Prerequisites
1215

16+
ifdef::openshift-rosa,openshift-dedicated[]
17+
* You have access to the cluster as a user with the `cluster-admin` or `dedicated-admin` role.
18+
endif::[]
19+
ifndef::openshift-rosa,openshift-dedicated[]
1320
* You have access to the cluster as a user with the `cluster-admin` role.
21+
endif::[]
1422
* You have installed the OpenShift CLI (`oc`).
1523

1624
.Procedure

modules/monitoring-managing-alerting-rules-for-user-defined-projects.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * monitoring/managing-alerts.adoc
4+
//
45

56
:_content-type: CONCEPT
67
[id="managing-alerting-rules-for-user-defined-projects_{context}"]
@@ -10,6 +11,13 @@
1011

1112
In {product-title} {product-version}, you can create, view, edit, and remove alerting rules in user-defined projects.
1213

14+
ifdef::openshift-rosa,openshift-dedicated[]
15+
[IMPORTANT]
16+
====
17+
Managing alerting rules for user-defined projects is only available in {product-title} version 4.11 and up.
18+
====
19+
endif::[]
20+
1321
.Alerting rule considerations
1422

1523
* The default alerting rules are used specifically for the {product-title} cluster.

modules/monitoring-understanding-alert-routing-for-user-defined-projects.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ After a user has defined alert routing for a user-defined project, user-defined
1919
2020
* To the `alertmanager-user-workload` pods in the `openshift-user-workload-monitoring` namespace if you have enabled a separate instance of Alertmanager for user-defined projects.
2121
22-
Note the following limitations and features of alert routing for user-defined projects:
22+
[NOTE]
23+
====
24+
The following are limitations of alert routing for user-defined projects:
2325
2426
* For user-defined alerting rules, user-defined routing is scoped to the namespace in which the resource is defined.
2527
For example, a routing configuration in namespace `ns1` only applies to `PrometheusRules` resources in the same namespace.
2628
27-
* If the user-defined Alertmanager instance is enabled, cluster administrators can also define the main configuration of the user-defined Alertmanager instance.
28-
2929
* When a namespace is excluded from user-defined monitoring, `AlertmanagerConfig` resources in the namespace cease to be part of the Alertmanager configuration.
30+
====
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
4+
// * osd_cluster_admin/osd_monitoring/osd-enabling-alert-routing-for-user-defined-projects.adoc
5+
// * rosa_cluster_admin/rosa_monitoring/rosa-enabling-alert-routing-for-user-defined-projects.adoc
6+
7+
:_content-type: CONCEPT
8+
[id="osd-understanding-alert-routing-for-user-defined-projects_{context}"]
9+
= Understanding alert routing for user-defined projects
10+
11+
[role="_abstract"]
12+
As a cluster administrator, you can enable alert routing for user-defined projects.
13+
With this feature, you can allow users with the **alert-routing-edit** role to configure alert notification routing and receivers for user-defined projects.
14+
These notifications are routed by an Alertmanager instance dedicated to user-defined monitoring.
15+
16+
Users can then create and configure user-defined alert routing by creating or editing the `AlertmanagerConfig` objects for their user-defined projects without the help of an administrator.
17+
18+
After a user has defined alert routing for a user-defined project, user-defined alert notifications are routed to the `alertmanager-user-workload` pods in the `openshift-user-workload-monitoring` namespace.
19+
20+
[NOTE]
21+
====
22+
The following are limitations of alert routing for user-defined projects:
23+
24+
* For user-defined alerting rules, user-defined routing is scoped to the namespace in which the resource is defined.
25+
For example, a routing configuration in namespace `ns1` only applies to `PrometheusRules` resources in the same namespace.
26+
27+
* When a namespace is excluded from user-defined monitoring, `AlertmanagerConfig` resources in the namespace cease to be part of the Alertmanager configuration.
28+
====
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:_content-type: ASSEMBLY
2+
[id="osd-enabling-alert-routing-for-user-defined-projects"]
3+
= Enabling alert routing for user-defined projects
4+
include::_attributes/attributes-openshift-dedicated.adoc[]
5+
:context: osd-enabling-alert-routing-for-user-defined-projects
6+
7+
toc::[]
8+
9+
[role="_abstract"]
10+
In {product-title}, a cluster administrator can enable alert routing for user-defined projects. This process consists of two general steps:
11+
12+
* Enable alert routing for user-defined projects to use a separate Alertmanager instance.
13+
* Grant additional users permission to configure alert routing for user-defined projects.
14+
15+
After you complete these steps, developers and other users can configure custom alerts and alert routing for their user-defined projects.
16+
17+
//Overview of setting up alert routing for user-defined projects
18+
include::modules/osd-monitoring-understanding-alert-routing-for-user-defined-projects.adoc[leveloffset=+1]
19+
20+
// Enabling a dedicated Alertmanager instance for use in user-defined projects
21+
include::modules/monitoring-enabling-a-separate-alertmanager-instance-for-user-defined-alert-routing.adoc[leveloffset=+1]
22+
23+
// Granting users permission to configure alert routing for user-defined projects
24+
include::modules/monitoring-granting-users-permission-to-configure-alert-routing-for-user-defined-projects.adoc[leveloffset=+1]
25+
26+
[role="_additional-resources"]
27+
.Additional resources
28+
29+
* xref:../monitoring/osd-accessing-monitoring-for-user-defined-projects.adoc[Accessing monitoring for user-defined projects]
30+
* xref:../monitoring/osd-managing-alerts.adoc#creating-alert-routing-for-user-defined-projects_managing-alerts.adoc#creating-alerting-rules-for-user-defined-projects_osd-managing-alerts[Creating alert routing for user-defined projects]

0 commit comments

Comments
 (0)