From 0f0a9a17eddf76f8e3ec190520fc6c9e9d569857 Mon Sep 17 00:00:00 2001 From: Felixnoo Date: Thu, 21 Jan 2021 16:57:27 +0800 Subject: [PATCH] Monitoring and Index translated. Signed-off-by: Felixnoo --- content/zh/docs/api-reference/_index.md | 20 +++++------ .../api-reference/api-changes/monitoring.md | 34 +++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/content/zh/docs/api-reference/_index.md b/content/zh/docs/api-reference/_index.md index dde17a313..ee6060ed5 100644 --- a/content/zh/docs/api-reference/_index.md +++ b/content/zh/docs/api-reference/_index.md @@ -1,6 +1,6 @@ --- title: "参考" -description: "The glossary used by KubeSphere and how to use the KubeSphere API to build your own application" +description: "KubeSphere 使用的词汇表以及如何使用 KubeSphere API 构建您自己的应用程序" layout: "single" linkTitle: "参考" @@ -11,22 +11,22 @@ icon: "/images/docs/docs.svg" --- -This chapter contains the glossary that is often used in KubeSphere and the information about the KubeSphere API. +本章包含 KubeSphere 中的常用词汇表和有关 KubeSphere API 的信息。 -## [Glossary](../api-reference/glossary/) +## [词汇表](../api-reference/glossary/) -The glossary used in KubeSphere. +KubeSphere 中使用的词汇表。 ## [KubeSphere API](../api-reference/api-docs) -The REST API is the fundamental fabric of KubeSphere. This guide shows you how to access the KubeSphere API server. +REST API 是 KubeSphere 的基本结构。本指南向您展示如何访问 KubeSphere API 服务器。 -## API Changes +## API 变更 -### [Logging](../api-reference/api-changes/logging/) +### [日志系统](../api-reference/api-changes/logging/) -The API changes of the component **logging** in KubeSphere v3.0.0. +KubeSphere 3.0 中**日志系统**(服务组件)的 API 变更。 -### [Monitoring](../api-reference/api-changes/monitoring/) +### [监控系统](../api-reference/api-changes/monitoring/) -The API changes of the component **monitoring** in KubeSphere v3.0.0. +KubeSphere 3.0 中**监控系统**(服务组件)的 API 变更。 diff --git a/content/zh/docs/api-reference/api-changes/monitoring.md b/content/zh/docs/api-reference/api-changes/monitoring.md index 458aa097d..7ae8a187a 100644 --- a/content/zh/docs/api-reference/api-changes/monitoring.md +++ b/content/zh/docs/api-reference/api-changes/monitoring.md @@ -1,22 +1,22 @@ --- -title: "Monitoring" -keywords: 'Kubernetes, KubeSphere, API, Monitoring' -description: 'Monitoring API changes' -linkTitle: "Monitoring" +title: "监控系统" +keywords: 'Kubernetes, KubeSphere, API, 监控系统' +description: '监控系统 API 变更' +linkTitle: "监控系统" weight: 17320 --- -## API Version +## API 版本 -The monitoring API version is bumped to `v1alpha3`. +监控系统 API 版本已提升至 `v1alpha3`。 -## Time Format +## 时间格式 -The time format of query parameters must be in Unix timestamps (the number of seconds that has elapsed since the Unix epoch). Decimals are no longer allowed. The change affects the parameters `start`, `end` and `time`. +查询参数的时间格式必须是 Unix 时间戳(自 Unix Epoch 以来已经过去的秒数)。不再支持使用小数。该变更影响 `start`、`end` 和 `time` 参数。 -## Deprecated Metrics +## 已弃用的指标 -In KubeSphere 3.0.0, the metrics on the left have been renamed to the ones on the right. +在 KubeSphere 3.0 中,下表左侧的指标已重命名为右侧的指标。 |V2.0|V3.0| |---|---| @@ -26,9 +26,9 @@ In KubeSphere 3.0.0, the metrics on the left have been renamed to the ones on th |workload_pod_net_bytes_transmitted | workload_net_bytes_transmitted| |workload_pod_net_bytes_received | workload_net_bytes_received| -The following metrics have been deprecated and removed. +下列指标已被弃用并移除。 -|Deprecated Metrics| +|已弃用的指标| |---| |cluster_workspace_count| |cluster_account_count| @@ -48,20 +48,20 @@ The following metrics have been deprecated and removed. |prometheus_up_sum| |prometheus_tsdb_head_samples_appended_rate| -New metrics are introduced in KubeSphere 3.0.0. +KubeSphere 3.0 中引入的新指标。 -|New Metrics| +|新指标| |---| |kubesphere_workspace_count| |kubesphere_user_count| |kubesphere_cluser_count| |kubesphere_app_template_count| -## Response Fields +## 响应字段 -In KubeSphere 3.0.0, the response fields `metrics_level`, `status` and `errorType` are removed. +在 KubeSphere 3.0 中,已移除响应字段 `metrics_level`、`status` 和 `errorType`。 -In addition, the field name `resource_name` has been replaced with the specific resource type names. These types are `node`, `workspace`, `namespace`, `workload`, `pod`, `container` and `persistentvolumeclaim`. For example, instead of `resource_name: node1`, you will get `node: node1`. See the example response below: +另外,字段名称 `resource_name` 已替换为具体资源类型名称。这些类型是 `node`、`workspace`、`namespace`、`workload`、`pod`、`container` 和 `persistentvolumeclaim`。例如,您将获取 `node: node1`,而不是 `resource_name: node1`。请参见以下示例响应: ```json {