Skip to main content

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

Get alert rules for specific cluster


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

Request Example

GET http://localhost:8080/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)."
FeedbackOpens in a new tab