You need to enable JavaScript to run this app.
文档中心
托管 Prometheus

托管 Prometheus

复制全文
下载 pdf
工作区
GetWorkspace
复制全文
下载 pdf
GetWorkspace
查询工作区详情。​
请求说明​
托管 Prometheus 已在全球多个地域部署服务,旨在为您提供更稳定、低延迟的访问体验。您可以通过查阅 服务地址 文档,根据业务所在地域,选择最合适的接入点。​
  • 请求方式:POST​
  • 请求地址:https://vmp.cn-beijing.volcengineapi.com?Action=GetWorkspace&Version=2021-03-03​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
GetWorkspace​
接口名称。当前 API 的名称为 GetWorkspace。​
Version​
String​
是​
2021-03-03​
接口版本。当前 API 的版本为 2021-03-03。​
Id​
String​
是​
e28ae750-bbb8-4ff4-abf4***​
工作区 ID。​
可以调用 ListWorkspaces 接口,获取工作区 ID。​
​
请求示例​
​
POST https://vmp.cn-beijing.volcengineapi.com?Action=GetWorkspace&Version=2021-03-03​
Content-Type: application/json​
{​
"Id": "e28ae750-bbb8-4ff4-abf4***"​
}
​
返回参数​
​
参数​
类型​
示例值​
描述​
Id​
String​
e28ae750-bbb8-4ff4-abf4***​
工作区 ID。​
CreateTime​
String​
2022-01-01T00:00:00Z​
工作区创建时间。​
Name​
String​
workspace-demo​
工作区名称。​
Description​
String​
This is a workspace discription​
工作区描述信息。​
Status​
String​
Active​
工作区状态,取值:​
  • Creating:创建中​
  • Active:正常​
  • Updating:更新中​
  • Deleting:删除中​
  • OverdueShutted:欠费关停​
  • Resuming:恢复中​
  • Error:错误​
InstanceTypeId​
String​
vmp.standard.15d​
工作区类型,取值:​
  • vmp.standard.15d:15 天存储时长工作区。​
  • vmp.standard.30d:30 天存储时长工作区。​
  • vmp.standard.90d:90 天存储时长工作区。​
  • vmp.standard.180d:180 天存储时长工作区。​
  • vmp.standard.1y:1 年存储时长工作区。​
OverdueReclaimTime​
String​
2022-01-01T00:00:00Z​
工作区预期欠费回收时间,RFC3339 格式。​
说明​
当账户欠费时,该字段才会有具体的值。​
Username​
String​
admin​
工作区 BasicAuth 用户名。​
PrometheusWriteIntranetEndpoint​
String​
http://query.prometheus-cn-beijing.ivolces.com/workspaces/1d0***​
工作区 RemoteWrite URL 地址。​
PrometheusQueryIntranetEndpoint​
String​
http://write.prometheus-cn-beijing.ivolces.com/workspaces/1d0***​
工作区 Query URL 地址。​
DeleteProtectionEnabled​
Boolean​
true​
是否开启工作区删除保护,取值:​
  • true:开启。​
  • false:关闭。​
Tags​
Array of Tag​
-​
工作区标签。​
ProjectName​
String​
default​
项目名称。​
PrometheusPushIntranetEndpoint​
String​
http://push.prometheus-cn-beijing.ivolces.com/workspaces/***/api/v1/push​
工作区 Pushgateway URL 地址。​
AuthType​
String​
BasicAuth​
工作区的认证类型,取值: ​
  • BasicAuth:基础认证。 ​
  • BearerToken:令牌认证。 ​
  • None:未配置自定义认证,即默认使用火山引擎 AK/SK 认证。​
InstanceType​
-​
工作区规格详情。​
Quota​
Object of WorkspaceQuota​
-​
工作区配额详情。​
​
Tag​
​
参数​
类型​
示例值​
描述​
Key​
String​
doc​
标签的 Key。​
Value​
String​
demo​
标签的 Value。​
​
WorkspaceInstanceType​
​
参数​
类型​
示例值​
描述​
Id​
String​
vmp.standard.15d​
工作区类型。​
ActiveSeries​
Integer​
10000000​
最大活跃时序数。​
QueryPerSecond​
Integer​
100​
最大查询 QPS。​
ReplicasPerZone​
Integer​
2​
每个可用区(az)的数据副本数。​
RetentionPeriod​
String​
360h​
最长数据保留时间。​
QueryConcurrency​
Integer​
10​
最大查询并发数。​
DownsamplingPeriods​
Array of String​
["90d:5m"]​
降采样策略。​
ScanSeriesPerSecond​
Integer​
20000​
最大每秒扫描时序数。​
ScanSamplesPerSecond​
Long​
200000000​
最大每秒扫描样本数。​
IngestSamplesPerSecond​
Integer​
1000000​
最大每秒写入样本数。​
AvailabilityZoneReplicas​
Integer​
2​
可用区(az)数。​
​
WorkspaceQuota​
​
参数​
类型​
示例值​
描述​
ActiveSeries​
Integer​
1000000​
最大活跃时序数。整数形式,默认取值范围为 1~50000000。​
QueryPerSecond​
Integer​
100​
最大查询 QPS。整数形式,默认取值范围为 1~500。​
ScanSeriesPerSecond​
Integer​
20000​
最大每秒扫描时序数。整数形式,默认取值范围为 1~200000。​
ScanSamplesPerSecond​
Long​
200000000​
最大每秒扫描样本数。整数形式,默认取值范围为 1~1000000000。​
IngestSamplesPerSecond​
Integer​
1000000​
指标摄入速率,即最大每秒写入样本数。整数形式,默认取值范围为 1~5000000。​
​
返回示例​
​
HTTP/1.1: 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31", ​
"Action": "GetWorkspace",​
"Version": "2021-03-03",​
"Service": "vmp",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "e28ae750-bbb8-4ff4-abf4***",​
"CreateTime": "2022-01-01T00:00:00Z", ​
"Name": "workspace-demo",​
"Description": "This is a workspace discription",​
"Status": "Active",​
"InstanceTypeId": "vmp.standard.15d",​
"OverdueReclaimTime": "2022-01-01T00:00:00Z",​
"Username": "admin",​
"PrometheusWriteIntranetEndpoint": "http://query.prometheus-cn-beijing.ivolces.com/workspaces/1d0***",​
"PrometheusQueryIntranetEndpoint": "http://write.prometheus-cn-beijing.ivolces.com/workspaces/1d0***",​
"DeleteProtectionEnabled": true,​
"Tags": [​
{​
"Key": "doc",​
"Value": "demo"​
}​
],​
"ProjectName": "default",​
"PrometheusPushIntranetEndpoint": "http://push.prometheus-cn-beijing.ivolces.com/workspaces/***/api/v1/push",​
"AuthType": "BasicAuth", ​
"Quota": {​
"ActiveSeries": 1000000,​
"QueryPerSecond": 100,​
"ScanSeriesPerSecond": 20000,​
"ScanSamplesPerSecond": 200000000,​
"IngestSamplesPerSecond": 1000000​
},​
"InstanceType": {​
"Id": "vmp.standard.15d",​
"ActiveSeries": 10000000,​
"QueryPerSecond": 100,​
"ReplicasPerZone": 2,​
"RetentionPeriod": "360h",​
"QueryConcurrency": 10,​
"DownsamplingPeriods": [​
"90d:5m"​
],​
"ScanSeriesPerSecond": 20000,​
"ScanSamplesPerSecond": 200000000,​
"IngestSamplesPerSecond": 1000000,​
"AvailabilityZoneReplicas": 2​
}​
}​
}
​
错误码​
本接口无专有错误码,公共错误码请参见 公共错误码。​
最近更新时间:2025.12.26 16:17:13
这个页面对您有帮助吗?
有用
有用
无用
无用