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
To list the configuration of an alerting rule, run:
$ oc -n <project> get prometheusrule <rule> -oyaml