1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/monitoring-removing-alerting-rules-for-user-defined-projects.adoc
2025-08-05 08:12:40 +00:00

25 lines
768 B
Plaintext

// Module included in the following assemblies:
//
// * observability/monitoring/managing-alerts.adoc
:_mod-docs-content-type: PROCEDURE
[id="removing-alerting-rules-for-user-defined-projects_{context}"]
= Removing alerting rules for user-defined projects
You can remove alerting rules for user-defined projects.
.Prerequisites
* You have enabled monitoring for user-defined projects.
* You are logged in as a cluster administrator or as a user that has the `monitoring-rules-edit` cluster role for the project where you want to create an alerting rule.
* You have installed the {oc-first}.
.Procedure
* To remove rule `<alerting_rule>` in `<namespace>`, run the following:
+
[source,terminal]
----
$ oc -n <namespace> delete prometheusrule <alerting_rule>
----