Volcengine Managed Service for Prometheus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | GetAlertingRuleTemplate | The API name. The API name is GetAlertingRuleTemplate. |
Version | String | Yes | 2021-03-03 | The API version. The API version is 2021-03-03. |
Id | String | Yes | 421d-****-6037**** | The ID of the alert rule template. |
Version | String | No | 1.0.1 | The version of the alert rule template. If this parameter is not specified, the latest version is returned. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | The ID of an alerting rule template. |
Version | String | 1.0.1 | The version of the alert rule template. |
Name | String | test | The name of an alerting rule template. |
Description | String | - | Descriptions of alerting rule templates. |
CreateTime | String | 2020-01-01T00:00:00Z | The time when the alert rule template was created. |
UpdateTime | String | 2020-01-01T00:00:00Z | The time when the alert rule template was updated. |
Category | String | VKE | The name of the category to which the template belongs. |
Items | - | A list of alert rule templates. | |
Variables | - | The variable list. | |
Labels | - | Global labels of alerting rule templates. They can be attached to alerts and have a higher priority than that configured for an individual rule in templates. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | Long | 1 | The serial number of the alert rule template item. |
Name | String | test5 | The items' names in alerting rule templates. |
Labels | - | labels attached to alerting rules. | |
Levels | - | Alerting level. | |
PromQL | String | my_metrics{cluster=~"$Cluster"} | PromQL statements based on alerting rules. |
Annotations | - | Annotations attached to alering rules. | |
Description | String | - | The description of an alerting rule. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Id | Long | 1 | ID of variable. |
Name | String | Cluster | The variable name that will be used in PromQL. tip
|
Type | String | Query | Variable type. Available values:
|
Alias | String | test6 | Aliases of variables that will be displayed in the variable selector. |
Multi | Boolean | true | Whether the variable can have multiple options enabled at the same time. Available values:
|
Query | String | kube_pod_info | A query by variables' values. The variables that are only applicable to the type Query. |
Regex | String | /.pod="(.?)".* | A regular expression used to extract variables' values. The variables that are only applicable to the type Query. |
Values | Array of String | Deployment | Predefined values of variables. The variables that are only applicable to the type Custom. |
Default | Array of String | demo | Default value of variable. If the value is left empty:
|
QueryType | String | queryResult | The query types for Query variables. The variables that are only applicable to the type Query. |
IncludeAll | Boolean | true | Whether the variable has the option Select all. Values:
|
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Name | String | key1 | Tag key. |
Value | String | value1 | Value of the label. If the configuration is empty, it means the key will be deleted. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
Level | String | P0 | Alerting rule level. Level P0, P1, and P2 are available currently. |
For | String | 5 minutes | Alert duration, value:
|
Comparator | String | > | Operators used in alert rules:
|
Threshold | Double | 1.0 | Threshold of the alert rule. |
HTTP status codes | Error codes | Error messages | Description |
HTTP status codes | Error codes | Error messages | Description |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | The current account is not subscribed to the VMP service. |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | The input is invalid. For example, the workspace name does not meet the requirements. |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | A required parameter is missing. |