Updated on 2024-11-12 GMT+08:00

Event Monitoring

Kubernetes events show the cluster running status and resource scheduling status, helping O&M personnel observe resource changes and locate faults. To enable this function, you need to install the log-agent add-on in the cluster. log-agent can collect Kubernetes events and display them on the Monitoring Center > Events page.

Navigation Path

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Monitoring Center. Then, click Events.

    There are Overview and Events tabs on Events. On the Overview tab, you can view the total number, trend, and sorting of events in the cluster. On the Events tab, you can view event details, such as the event name, type, content, and information about the resource that triggers the event.

Overview

By default, the Overview tab displays the event statistics of all namespaces in the cluster. You can also select a specified namespace from the drop-down list in the upper right corner to view its event data.

Figure 1 displays the Total Events doughnut chart that shows the distribution of normal and warning events, the Top 5 Warning Events by Resource chart that shows the resource information corresponding to the top 5 warning events, and the Warning Events by Resource Type chart that shows the comparison between the number of warning events and the number of warning events in the last 24 hours.

Figure 1 Event statistics

The bar charts in Figure 2 display the trend of the number of normal events and warning events in the last 24 hours.

Figure 2 Warning/Normal event trend

Figure 3 displays the names of top 10 events in the last 24 hours.

Figure 3 Top 10 events in 24 hours

Events

Searching for Events

On the Events tab, you can search for a specified resource based on certain criteria to conveniently view its event information, including the trend and details of normal and warning events.

Search for events in any of the following ways:

  • Enter the name of the event to be searched for in the text box, select a namespace or event type, and click Search.
  • Click Advanced Search and enter the desired workload, node, pod, event content, resource type, or resource name.
  • Select a time interval in the upper left corner to view the events generated in that period, including last hour, last day, last week, and a custom interval.
Figure 4 Searching for events

Event List

You can view details about events that meet your search criteria in the list. The details include the last occurrence time, event name, resource type, resource name, event content, event type, and occurrence times. Click Historical Events in the Operation column. A dialog box is displayed to show all events of the current resource type and resource.

Figure 5 Event list