根据标签和资源组查询Prometheus实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| ResourceGroupId |
string |
否 |
资源组 ID。 |
rg-acfmxyexli2**** |
| Tag |
array<object> |
否 |
标签列表。 |
|
|
object |
否 |
资源的标签。 |
||
| Key |
string |
否 |
标签键。 |
fpx-tag |
| Value |
string |
否 |
标签值。 |
fvt-tag-value |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
4789C3E9-A85A-524B-B97B-9D2B14BA06BC |
| Data |
object |
返回结构体。 |
|
| PrometheusInstances |
array<object> |
Prometheus 实例列表。 |
|
|
array<object> |
|||
| ClusterId |
string |
Prometheus 实例 ID。 |
c9d5dda1aeca64220853ace304baeb03d |
| RegionId |
string |
地域 ID。 |
cn-shanghai |
| UserId |
string |
用户 ID。 |
1672753017899*** |
| ClusterName |
string |
Prometheus 实例名。 |
prom1 |
| ClusterType |
string |
remote-write(Prometheus for Remote Write)
|
ecs |
| VpcId |
string |
VPC ID。 |
vpc-8vbtp1fsm8mir18l8rl0u |
| VSwitchId |
string |
交换机 ID。 |
vsw-f8z73vcja1tqnw90aav5a |
| SecurityGroupId |
string |
安全组 ID。 |
sg-f8zd1toc10wmbi1v5rom |
| SubClustersJson |
string |
globalView 实例的子实例 json 串。 |
[ { "headers": {}, "regionId": "cn-hangzhou", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c39a1048921e04fceb039db2fb****", "sourceName": "arms-luyao-test", "dataSource": "", "userId": "167275301789****" }, { "headers": {}, "regionId": "cn-beijing", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c6b6485496d5b400abde22cb47b5****", "sourceName": "agent-321-测试", "dataSource": "", "userId": "167275301789****" }, { "headers": {}, "regionId": "cn-zhangjiakou", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c261a4f3200c446659133f1ade78****", "sourceName": "zaifeng-cardinality-01", "dataSource": "", "userId": "167275301789****" } ] |
| RemoteReadIntraUrl |
string |
Remote Read 内网地址。 |
http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read |
| RemoteReadInterUrl |
string |
Remote Read 公网地址。 |
http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read |
| RemoteWriteIntraUrl |
string |
Remote Write 内网地址。 |
http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write |
| RemoteWriteInterUrl |
string |
Remote Write 公网地址。 |
https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write |
| PushGatewayIntraUrl |
string |
Push Gateway 内网地址。 |
http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2 |
| PushGatewayInterUrl |
string |
Push Gateway 公网地址。 |
https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2 |
| HttpApiIntraUrl |
string |
HTTP API 内网地址。 |
http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx |
| HttpApiInterUrl |
string |
HTTP API 公网地址。 |
https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx |
| AuthToken |
string |
授权 Token 串。 |
GciOiJIUzI1NiJ9*** |
| PaymentType |
string |
付费类型。
|
POSTPAY |
| GrafanaInstanceId |
string |
Grafana 工作区 ID。 |
grafana-rnggfvhlcdl6m71l** |
| ResourceGroupId |
string |
Prometheus 实例的资源组 ID。 |
rg-acfmz7nocpeidcy |
| ResourceType |
string |
资源类型 |
PROMETHEUS |
| Tags |
array<object> |
标签列表。 |
|
|
object |
实例的标签值。 |
||
| TagKey |
string |
标签键。 |
ac-cus-tag-3 |
| TagValue |
string |
标签值。 |
asg-2vc8qq7x89o11rus9uvu |
| Code |
string |
状态码。200 为成功,其他状态码为异常。 |
200 |
| Message |
string |
返回结果的提示信息。 |
message |
示例
正常返回示例
JSON格式
{
"RequestId": "4789C3E9-A85A-524B-B97B-9D2B14BA06BC",
"Data": {
"PrometheusInstances": [
{
"ClusterId": "c9d5dda1aeca64220853ace304baeb03d",
"RegionId": "cn-shanghai",
"UserId": "1672753017899***",
"ClusterName": "prom1",
"ClusterType": "ecs",
"VpcId": "vpc-8vbtp1fsm8mir18l8rl0u",
"VSwitchId": "vsw-f8z73vcja1tqnw90aav5a",
"SecurityGroupId": "sg-f8zd1toc10wmbi1v5rom",
"SubClustersJson": "[\n {\n \"headers\": {},\n \"regionId\": \"cn-hangzhou\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c39a1048921e04fceb039db2fb****\",\n \"sourceName\": \"arms-luyao-test\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n },\n {\n \"headers\": {},\n \"regionId\": \"cn-beijing\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c6b6485496d5b400abde22cb47b5****\",\n \"sourceName\": \"agent-321-测试\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n },\n {\n \"headers\": {},\n \"regionId\": \"cn-zhangjiakou\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c261a4f3200c446659133f1ade78****\",\n \"sourceName\": \"zaifeng-cardinality-01\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n }\n]",
"RemoteReadIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteReadInterUrl": "http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteWriteIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"RemoteWriteInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"PushGatewayIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2",
"PushGatewayInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2",
"HttpApiIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx\n",
"HttpApiInterUrl": "https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx",
"AuthToken": "GciOiJIUzI1NiJ9***",
"PaymentType": "POSTPAY",
"GrafanaInstanceId": "grafana-rnggfvhlcdl6m71l**",
"ResourceGroupId": "rg-acfmz7nocpeidcy",
"ResourceType": "PROMETHEUS",
"Tags": [
{
"TagKey": "ac-cus-tag-3",
"TagValue": "asg-2vc8qq7x89o11rus9uvu"
}
]
}
]
},
"Code": "200",
"Message": "message"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。