Retrieves the details of a specified Prometheus instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:GetPrometheusInstance |
get |
*Prometheus
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ClusterId |
string |
Yes |
The Prometheus instance ID. |
c77f6f2397ea74672872acf5e31374a27 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
integer |
The status code. A value of 200 indicates success, and other status codes indicate errors. |
200 |
| Data |
object |
The returned data. |
|
| AccessType |
string |
The access type. Valid values: readWrite, readOnly, and httpReadOnly. |
readWrite |
| ArchiveDuration |
integer |
The number of days for automatic archiving after storage expiration. Valid values: 60, 90, 180, and 365. A value of 0 indicates that data is not archived. |
60 |
| AuthFreeReadPolicy |
string |
The read password-free whitelist policy. |
0.0.0.0/0 |
| AuthFreeWritePolicy |
string |
The write password-free whitelist policy. |
0.0.0.0/0 |
| AuthToken |
string |
The authorization token string. |
GciOiJIUzI1NiJ9*** |
| ClusterId |
string |
The Prometheus instance ID. |
c589a1b8db05c4561aefbb898ca8fb1cf |
| ClusterName |
string |
The name of the cluster. |
prom1 |
| ClusterType |
string |
The type of the cluster. Valid values:
|
remote-write |
| DbInstanceStatus |
string |
The status of the backend data storage. |
RUNNING |
| EnableAuthFreeRead |
boolean |
Indicates whether password-free read is enabled. |
|
| EnableAuthFreeWrite |
boolean |
Indicates whether password-free write is enabled. |
|
| EnableAuthToken |
string |
Indicates whether token authentication for access is enabled. |
true |
| ExtraInfo |
object |
The extended information. This parameter is returned only for console requests. |
|
|
string |
The extended information. |
extraKey |
|
| GrafanaInstanceId |
string |
The ID of the Grafana workspace. |
grafana-rnggfvhlcdl6m71*** |
| HttpApiInterUrl |
string |
The public endpoint of the HTTP API. |
https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx |
| HttpApiIntraUrl |
string |
The internal endpoint of the HTTP API. |
http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx |
| OpenTelemetryInterUrl |
string |
proj-xtrace-0123456789abcdef0123456789abcdef-cn-beijing.cn-beijing.log.aliyuncs.com |
|
| OpenTelemetryIntraUrl |
string |
proj-xtrace-0123456789abcdef0123456789abcdef-cn-beijing.cn-beijing-intranet.log.aliyuncs.com |
|
| PaymentType |
string |
The billing method. Valid values:
|
PREPAY |
| PaymentTypeUpdateTime |
string |
The time when the billing method of the instance was updated. |
2025-02-26T06:05:01Z |
| Product |
string |
The product to which the Prometheus instance belongs. Valid values: ARMS and CMS. |
arms |
| PushGatewayInterUrl |
string |
The public endpoint of Pushgateway. |
https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2 |
| PushGatewayIntraUrl |
string |
The internal endpoint of Pushgateway. |
http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2 |
| RegionId |
string |
The region ID. |
cn-beijing |
| RemoteReadInterUrl |
string |
The public endpoint for remote read. |
http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read |
| RemoteReadIntraUrl |
string |
The internal endpoint for remote read. |
http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read |
| RemoteWriteInterUrl |
string |
The public endpoint for remote write. |
https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write |
| RemoteWriteIntraUrl |
string |
The internal endpoint for remote write. |
http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-aek2vezare**** |
| ResourceType |
string |
The resource type. The value is fixed to PROMETHEUS. |
PROMETHEUS |
| SecurityGroupId |
string |
The ID of the security group. This parameter is returned only for Prometheus for ECS. |
sg-8vbdgmf4nraiqa9bx0jo |
| StorageDuration |
integer |
The storage duration in days. |
90 |
| SubClustersJson |
string |
The JSON string of sub-instances for the GlobalView instance. |
[{"headers":{},"regionId":"cn-hangzhou","sourceType":"AlibabaPrometheus","extras":{},"clusterId":"c39a1048921e04fceb039db2fbb73***","sourceName":"arms-luyao-test","dataSource":"","userId":"167275301789***"},{"headers":{},"regionId":"cn-beijing","sourceType":"AlibabaPrometheus","extras":{},"clusterId":"c6b6485496d5b400abde22cb47b5****","sourceName":"agent-321-test","dataSource":"","userId":"1672753017899***"},{"headers":{},"regionId":"cn-zhangjiakou","sourceType":"AlibabaPrometheus","extras":{},"clusterId":"c261a4f3200c446659133f1ade789b15e","sourceName":"zaifeng-cardinality-01","dataSource":"","userId":"167275301789***"}] |
| SupportAuthTypes |
array |
The supported authentication types. |
|
|
string |
The supported authentication types. Valid values:
|
AuthFree |
|
| Tags |
array<object> |
The tags bound to the instance. |
|
|
object |
The tag. |
||
| TagKey |
string |
The tag key. |
tag1 |
| TagValue |
string |
The tag value. |
tagValue1 |
| UserId |
string |
The user ID. |
167275301789**** |
| VSwitchId |
string |
The vSwitch ID. This parameter is returned only for Prometheus for ECS. |
vsw-f8z73vcja1tqnw90aav5a |
| Version |
string |
The version. |
V1 |
| VpcId |
string |
The VPC to which the cluster belongs. This parameter is returned only for Prometheus for ECS. |
vpc-8vb02uk57qbcktqcvqqqj |
| Message |
string |
The message returned in the response. |
message |
| RequestId |
string |
Id of the request |
52C422FD-6B43-524D-B8A1-A4693294318C |
Examples
Success response
JSON format
{
"Code": 200,
"Data": {
"AccessType": "readWrite",
"ArchiveDuration": 60,
"AuthFreeReadPolicy": "0.0.0.0/0",
"AuthFreeWritePolicy": "0.0.0.0/0",
"AuthToken": "GciOiJIUzI1NiJ9***",
"ClusterId": "c589a1b8db05c4561aefbb898ca8fb1cf",
"ClusterName": "prom1",
"ClusterType": "remote-write",
"DbInstanceStatus": "RUNNING",
"EnableAuthFreeRead": false,
"EnableAuthFreeWrite": false,
"EnableAuthToken": "true",
"ExtraInfo": {
"key": "extraKey"
},
"GrafanaInstanceId": "grafana-rnggfvhlcdl6m71***",
"HttpApiInterUrl": "https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx",
"HttpApiIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx",
"OpenTelemetryInterUrl": "proj-xtrace-0123456789abcdef0123456789abcdef-cn-beijing.cn-beijing.log.aliyuncs.com",
"OpenTelemetryIntraUrl": "proj-xtrace-0123456789abcdef0123456789abcdef-cn-beijing.cn-beijing-intranet.log.aliyuncs.com",
"PaymentType": "PREPAY",
"PaymentTypeUpdateTime": "2025-02-26T06:05:01Z",
"Product": "arms",
"PushGatewayInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2",
"PushGatewayIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2",
"RegionId": "cn-beijing",
"RemoteReadInterUrl": "http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteReadIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteWriteInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"RemoteWriteIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"ResourceGroupId": "rg-aek2vezare****",
"ResourceType": "PROMETHEUS",
"SecurityGroupId": "sg-8vbdgmf4nraiqa9bx0jo",
"StorageDuration": 90,
"SubClustersJson": "[{\"headers\":{},\"regionId\":\"cn-hangzhou\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c39a1048921e04fceb039db2fbb73***\",\"sourceName\":\"arms-luyao-test\",\"dataSource\":\"\",\"userId\":\"167275301789***\"},{\"headers\":{},\"regionId\":\"cn-beijing\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c6b6485496d5b400abde22cb47b5****\",\"sourceName\":\"agent-321-test\",\"dataSource\":\"\",\"userId\":\"1672753017899***\"},{\"headers\":{},\"regionId\":\"cn-zhangjiakou\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c261a4f3200c446659133f1ade789b15e\",\"sourceName\":\"zaifeng-cardinality-01\",\"dataSource\":\"\",\"userId\":\"167275301789***\"}]",
"SupportAuthTypes": [
"AuthFree"
],
"Tags": [
{
"TagKey": "tag1",
"TagValue": "tagValue1"
}
],
"UserId": "167275301789****",
"VSwitchId": "vsw-f8z73vcja1tqnw90aav5a",
"Version": "V1",
"VpcId": "vpc-8vb02uk57qbcktqcvqqqj"
},
"Message": "message",
"RequestId": "52C422FD-6B43-524D-B8A1-A4693294318C"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.