托管 Prometheus
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | CreateIntegrationTask | 接口名称。当前 API 的名称为 CreateIntegrationTask。 |
Version | String | 是 | 2021-03-03 | 接口版本。当前 API 的版本为 2021-03-03。 |
Name | String | 是 | integration-demo | 接入任务名称。
|
WorkspaceId | String | 否 | e28ae750-bbb8-4ff4-abf4*** | 工作区 ID。当Environment为Managed时必填。 |
Type | String | 是 | CloudMonitor | 接入任务类型。取值为CloudMonitor时,表示云监控接入任务。 |
Environment | String | 否 | Managed | 接入任务部署环境,取值:
说明 当配置云监控接入任务时,仅支持选择 Managed 环境。 |
Params | String | 是 | - | 接入任务相关参数,需填写为 JSON 转义后的字符串。 |
VkeClusterId | String | 否 | cd2i3c1beif8n1*** | 接入任务部署的 VKE 集群 ID。当Environment为Vke时必填。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
JobName | String | 是 | test | 云监控接入任务名称。 |
ScrapeInterval | String | 是 | 1m | 指标采集间隔时间。
|
Regions | Object | 是 | {"cn-beijing": {"VCM_ALB": {}}} | 云产品与地域的映射关系,键为地域(例如cn-beijing)。 |
MetaLabelWithNewMetric | Boolean | 否 | false | 元信息 Label 导出方式,取值:
说明 |
ExportedTags | Array of String | 否 | demo | 配置需要注入云产品指标的标签键。 |
RelabelConfigs | String | 否 | - action: drop\n source_labels:\n - __name__\n regex: metricA|metricB |
参数 | 类型 | 示例值 | 描述 |
参数 | 类型 | 示例值 | 描述 |
Id | String | fcbc7eef-2f6c-4247-bce1*** | 接入任务 ID。 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
403 | ProductUnsubscribed | You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service | 当前账号未订阅 VMP 服务。 |
400 | InvalidParameter.{{parameter}} | The specified parameter {{parameter}} is invalid. | 输入不合法,如工作区名称不合法等。 |
400 | MissingParameter.{{parameter}} | The required parameter {{parameter}} is missing. | 缺少必要的参数。 |