*View a list of monitoring indicators and details
Requests
HTTP request
GET /v2/metrics/{cluster}/indicators
List cpaas indicator
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| cluster | string | True | Cluster name |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| kind | string | False | return indicators with specified kind |
| alertEnabled | string | False | return indicators only about alerting |
Responses
Content-Type
application/json
Status code: 200
OK
Sample response
Indicator list.
[
{
"alertEnabled": true,
"annotations": {
"cn": "集群内的处于告警状态的告警数",
"en": "The total number of firing alerts"
},
"displayName": "集群内的处于告警状态的告警数",
"kind": "cluster",
"legend": "",
"name": "cluster.alerts.firing",
"query": "(sum(ALERTS{alertstate=\"firing\",alertname!=\"DeadMansSwitch\"}) or on() vector(0))",
"summary": "",
"type": "metric",
"unit": "",
"variables": []
}
]Parameters
| Name | Type | Description |
|---|---|---|
| [] | object |
Indicator items
Path: [] |
| [].kind | string |
Indicator kind, cluster/node/workload...
Path: [].kind |
| [].name | string |
Indicator name.
Path: [].name |
| [].query | string |
Indicator query expression.
Path: [].query |
| [].unit | string |
Indicator unit.
Path: [].unit |
| [].variables | array |
Indicator variables.
Path: [].variables |