Skip to main content
************* PRERELEASE CONTENT *************
Previous sectionNext section

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

Get alert rules for specific cluster

Description

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/

Parameters
clusterid Required path variable. The id of the cluster.

Response Example

[
    {
        "alert":"iris_cpu_usage",
        "expr":"iris_cpu_usage{cluster="local"} > 80",
        "labels": {
            "severity":"critical"
        },
        "annotations": {
            "description":"iris_cpu_usage Critical: iris_cpu_usage = {{ $value }} (Critical value is 80)."
        }
    }
]
Copy code to clipboard