Skip to main content

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

Get alert rules for specific cluster

Description

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

Request Example

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