Skip to main content
Previous sectionNext section

GET /api/sam/admin/alertrule/{clusterid}/

Get alert rules for specific cluster


This method returns the Prometheus alert settings for the given cluster.

To use this endpoint, you must log in as a user with access to the %SAM.Admin resource.

Request Example

GET /api/sam/admin/alertrule/1/

clusterid Required path variable. The id of the cluster.

Response Example

        "expr":"iris_cpu_usage{cluster="local"} > 80",
        "labels": {
        "annotations": {
            "description":"iris_cpu_usage Critical: iris_cpu_usage = {{ $value }} (Critical value is 80)."
Copy code to clipboard
FeedbackOpens in a new window