8.2. API 端点
可用的 API 端点如下:
/apis/monitoring.coreos.com/v1/prometheuses-
GET: 列出类型为 Prometheus 的对象
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheuses-
DELETE:删除 Prometheus 集合 -
GET: 列出类型为 Prometheus 的对象 -
POST:创建 Prometheus
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheuses/{name}-
DELETE:删除 Prometheus -
GET:读取指定的 Prometheus -
PATCH: 部分更新指定的 Prometheus -
PUT:替换指定的 Prometheus
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheuses/{name}/scale-
GET:指定 Prometheus 的读取规模 -
PATCH: 部分更新指定 Prometheus 扩展 -
PUT:替换指定 Prometheus 的规模
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheuses/{name}/status-
GET:指定 Prometheus 的读取状态 -
PATCH: 部分更新指定 Prometheus 的状态 -
PUT:替换指定 Prometheus 的状态
-
8.2.1. /apis/monitoring.coreos.com/v1/prometheuses 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- HTTP 方法
-
GET - 描述
- 列出 Prometheus 类型的对象
| HTTP 代码 | 响应正文 |
|---|---|
| 200 - OK | |
| 401 - Unauthorized | 空 |