This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.8. Accessing alerting rules for your project
You can list existing alerting rules for your project.
Prerequisites
-
Log in as a user with the
monitoring-rules-view
role against your project.
Procedure
To list alerting rules in a project, run:
oc -n <project> get prometheusrule
$ oc -n <project> get prometheusrule
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To list the configuration of an alerting rule, run:
oc -n <project> get prometheusrule <rule> -oyaml
$ oc -n <project> get prometheusrule <rule> -oyaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow