Update docs: Event query

Signed-off-by: adakisme <serenashe@yunify.com>
This commit is contained in:
adakisme 2021-07-28 11:52:23 +08:00
parent e3ef21e49e
commit ee79a896eb
20 changed files with 15 additions and 37 deletions

View File

@ -16,38 +16,27 @@ This guide demonstrates how you can do multi-level, fine-grained event queries t
## Query Events
1. The event query function is available for all users. Log in to the console with any account, hover over the **Toolbox** in the lower-right corner and select **Event Search**.
1. The event query function is available for all users. Log in to the console with any account, hover over <img src="/images/docs/toolbox/event-query/toolbox.png" width='20' /> in the lower-right corner and select **Event Search**.
![events_query_guide](/images/docs/events/events_query_guide.png)
2. In the displayed dialog box, you can view the number of events that the account has permission to view.
2. As shown in the pop-up window, you can see the number of events that the account has permission to view.
![events_query_home](/images/docs/events/events_query_home.png)
![event-search](/images/docs/toolbox/event-query/event-search.png)
{{< notice note >}}
- KubeSphere supports event queries on each cluster separately if you have enabled the multi-cluster feature. You can switch the target cluster using the drop-down list next to the search bar.
- KubeSphere supports event queries on each cluster separately if you have enabled the [multi-cluster feature](../../multicluster-management/). You can click <img src="/images/docs/toolbox/event-query/drop-down-list.png" width='20' /> on the left of the search box and select a target cluster.
- Supported fields in the search bar:
- **Workspace**
- **Project**
- **Resource Type**
- **Resource Name**
- **Reason**
- **Message**
- **Category**
- **Time Range**
- You can customize the query time range by selecting **Time Range** in the search bar. KubeSphere stores events for last seven days by default.
- KubeSphere stores events for last seven days by default.
{{</ notice >}}
3. Here is an example to query events in the project `test` whose **Message** contains `container` within last 1 hour as shown in the following screenshot. It returns 84 rows of results with the corresponding time, project, and message all displayed.
3. You can click the search box and enter a condition to search for events by message, workspace, project, resource type, resource name, reason, category, or time range (for example, use `Time Range:Last 10 minutes` to search for events within the last 10 minutes).
![events_query_list](/images/docs/events/events_query_list.png)
![event-search-list](/images/docs/toolbox/event-query/event-search-list.png)
4. Click any one of the results from the list, and you can see raw information of it. It is convenient for developers in terms of debugging and analyzing.
![events_query_detail](/images/docs/events/events_query_detail.png)
![event-details](/images/docs/toolbox/event-query/event-details.png)
{{< notice note >}}

View File

@ -16,38 +16,27 @@ Kubernetes 事件系统用于深入了解集群内部发生的事件KubeSpher
## 查询事件
1. 所有用户都可以使用事件查询功能。使用任意帐户登录控制台,在右下角的**工具箱**图标上悬停,然后在弹出菜单中选择**事件查询**。
![工具箱](/images/docs/zh-cn/toolbox/event-query/events-query-guide.png)
1. 所有用户都可以使用事件查询功能。使用任意帐户登录控制台,在右下角的 <img src="/images/docs/zh-cn/toolbox/event-query/toolbox.png" width="20" /> 上悬停,然后在弹出菜单中选择**事件查询**。
2. 在弹出窗口中,您可以看到该帐户有权限查看的事件数量。
![事件查询主界面](/images/docs/zh-cn/toolbox/event-query/events-query-home.png)
![event-search](/images/docs/zh-cn/toolbox/event-query/event-search.png)
{{< notice note >}}
- 如果您启用了多集群功能KubeSphere 支持对每个集群分别进行事件查询。您可以使用搜索栏旁边的下拉列表切换目标集群。
- 如果您启用了[多集群功能](../../multicluster-management/)KubeSphere 支持对每个集群分别进行事件查询。您可以点击搜索栏左侧的 <img src="/images/docs/zh-cn/toolbox/event-query/drop-down-list.png" width='20' />,然后选择一个目标集群。
- 搜索栏中支持以下字段:
- **企业空间**
- **项目**
- **资源类型**
- **资源名称**
- **原因**
- **消息**
- **类别**
- **时间范围**
- 您可以在搜索栏中选择**时间范围**自定义查询时间范围。KubeSphere 默认存储最近七天的事件。
- KubeSphere 默认存储最近七天的事件。
{{</ notice >}}
3. 以查询项目 `test` 最近 1 小时内**消息**中包含 `container` 的事件作为示例,如下方截图所示。查询返回 84 行结果,并显示了相应的时间、项目和消息
3. 您可以点击搜索栏并输入搜索条件,可以按照消息、企业空间、项目、资源类型、资源名称、原因、类别或时间范围搜索事件(例如,输入`时间范围:最近 10 分钟`来搜索最近 10 分钟的事件)。
![事件查询结果列表](/images/docs/zh-cn/toolbox/event-query/events-query-list.PNG)
![event-search-list](/images/docs/zh-cn/toolbox/event-query/event-search-list.png)
4. 点击列表中的任一查询结果,可以查看该结果的原始信息,便于开发者分析和排除故障。
![事件查询结果详情](/images/docs/zh-cn/toolbox/event-query/events-query-detail.PNG)
![event-details](/images/docs/zh-cn/toolbox/event-query/event-details.png)
{{< notice note >}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB