Creates a Managed Service for Prometheus instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:CreatePrometheusInstance |
create |
*Prometheus
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The actual region ID. |
cn-shanghai |
| ClusterType |
string |
Yes |
The instance type. Valid values:
|
remote-write |
| VpcId |
string |
No |
The VPC ID. This parameter is required when ClusterType is set to ecs or aliyun-cs for a managed ASK cluster. |
vpc-rpn********** |
| VSwitchId |
string |
No |
The vSwitch ID. This parameter is required when ClusterType is set to ecs or aliyun-cs for a managed ASK cluster. |
vsw-bp1********* |
| SecurityGroupId |
string |
No |
The Network Security group ID. This parameter is required when ClusterType is set to ecs or aliyun-cs for a managed ASK cluster. |
sg-bp1******** |
| ClusterId |
string |
No |
The Container Service cluster ID. This parameter is required when ClusterType is set to aliyun-cs. |
cc7a37ee31aea4ed1a059eff8034b**** |
| ClusterName |
string |
No |
The name of the cluster to create. This parameter is required when ClusterType is set to remote-write, ecs, or global-view. For ecs instances, the ClusterName must follow the format "name-vpc-id", and the name part cannot exceed 24 characters. Example: "mytest1-vpc-xxxxxxxxxxx". |
clusterNameOfTest |
| SubClustersJson |
string |
No |
The JSON string of sub-instances for the GlobalView instance. |
当clusterType为global-view时,需要传此参数:需要聚合的集群的信息列表;示例: [ { "headers":{ }, "regionId":"cn-hangzhou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c39a1048921e04f***********", "sourceName":"arms-luyao-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-beijing", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c6b6485496d5b40***********", "sourceName":"agent-321-测试", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-zhangjiakou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c261a4f3200c446***********", "sourceName":"zaifeng-cardinality-01", "dataSource":"", "userId":"1672753***********" } ] |
| AllSubClustersSuccess |
boolean |
No |
Specifies whether all sub-instances must pass validation before the GlobalView instance is created. Default value: false, which indicates that partial success is allowed. |
true |
| GrafanaInstanceId |
string |
No |
The ID of the bound Grafana workspace. Set this parameter to "free" when you use the shared Grafana edition. |
grafana-bp1***** |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxyexli2**** |
| Tags |
array<object> |
No |
The custom tags. |
[ { "labelName":"labelValue" }, { "testName":"clusterA" } ] |
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
TestKey |
| Value |
string |
No |
The tag value. |
TestValue |
| Duration |
integer |
No |
The data storage duration, in days. |
90 |
| ArchiveDuration |
integer |
No |
The number of days to automatically archive data after the storage period expires. Valid values: 60, 90, 180, and 365. A value of 0 indicates that data is not archived. |
90 |
| PaymentType |
string |
No |
The Billable methods. Valid values: POSTPAY: pay-as-you-go based on the number of reported metrics. POSTPAY_GB: pay-as-you-go based on the volume of written metrics. Empty: uses the default billing method configured by the user. If no default is configured, the system defaults to billing based on the number of reported metrics. |
POSTPAY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
string |
The instance ID returned after the instance is created.
|
qduukd**** |
| RequestId |
string |
The request ID. |
70675725-8F11-4817-8106-CFE0AD71**** |
| Message |
string |
The returned message. |
message |
| Code |
integer |
The HTTP status code. Valid values:
|
200 |
Examples
Success response
JSON format
{
"Data": "qduukd****",
"RequestId": "70675725-8F11-4817-8106-CFE0AD71****",
"Message": "message",
"Code": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.