Add visualization querying cn

Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
This commit is contained in:
Sherlock113 2021-01-28 14:44:36 +08:00
parent 8c57e23a5d
commit ca81e7213f
6 changed files with 10 additions and 10 deletions

View File

@ -27,7 +27,7 @@ A graph is preferable for displaying multiple metric values. The editing window
- **Chart Colors**: Change line colors.
- **Chart Name**: The name of the chart.
- **Description**: The chart description.
- **Add**: Add a new metric in the chart.
- **Add**: Add a new query editor.
- **Metric Name**: Legend for the line. It supports variables. For example, `{{pod}}` means using the value of the Prometheus metric label `pod` to name this line.
- **Interval**: The step value between two data points.
- **Monitoring Metrics**: A list of available Prometheus metrics.

View File

@ -1,6 +1,6 @@
---
title: "Querying"
keywords: 'monitoring, prometheus, prometheus operator, querying'
keywords: 'monitoring, Prometheus, Prometheus Operator, querying'
description: 'Querying'
linkTitle: "Querying"
weight: 10817

View File

@ -27,7 +27,7 @@ KubeSphere 当前支持两种图表:文本图表和图形图表。
- **图表配色**:修改图表各个指标的颜色。
- **图表名称**:图表的名称。
- **描述信息**:图表描述。
- **添加**在图表中新增指标
- **添加**新增查询编辑器
- **图例名称**:图表中线条的图例名称,支持参数。例如 `{{pod}}` 表示使用 Prometheus 指标标签 `pod` 来给图表中的线条命名。
- **间隔**:两个数据点间的步骤值 (Step Value)。
- **监控指标**:包含可用的 Prometheus 指标。

View File

@ -1,13 +1,13 @@
---
title: "Querying"
keywords: 'monitoring, prometheus, prometheus operator, querying'
description: 'Querying'
linkTitle: "Querying"
title: "查询"
keywords: '监控, Prometheus, Prometheus Operator, 查询'
description: '查询'
linkTitle: "查询"
weight: 10817
---
In the query editor, you can input PromQL expressions to process and fetch metrics. To learn how to write PromQL, read [Query Examples](https://prometheus.io/docs/prometheus/latest/querying/examples/).
在查询编辑器中,您可以输入 PromQL 表达式以处理和获取指标。若要了解如何编写 PromQL请参阅 [Query Examples](https://prometheus.io/docs/prometheus/latest/querying/examples/)。
![query-editor-1](/images/docs/project-user-guide/custom-application-monitoring/query-editor-1.jpg)
![查询编辑器-文本图表](/images/docs/zh-cn/project-user-guide/custom-application-monitoring/visualization/querying/查询编辑器-文本图表.jpg)
![query-editor-2](/images/docs/project-user-guide/custom-application-monitoring/query-editor-2.jpg)
![查询编辑器-图形图表](/images/docs/zh-cn/project-user-guide/custom-application-monitoring/visualization/querying/查询编辑器-图形图表.jpg)