Container map metrics and status
Customizing the chart metrics
The property of the default chart provided by the WhaTap Kubernetes monitoring service's Container Map menu is the state of container or pod. The metric name is ConState (Container State). However, it is required to construct the map based on the criteria other than the default state. For example, it may be required to determine the states of each target based on the CPU usage (millicore), memory usage (%), network usage (byte), and such rather than the default state.
WhaTap provides the function to change the container's chart metrics. Changeable chart metrics values are the same ones that WhaTap Kubernetes collects.

The grouping settings (including the attribute fields and filtering options) on the screen are stored in the user browser. To initialize the stored settings, select Reset.
Metrics threshold settings and state colors
The states of each target can be classified by color by setting the threshold values of the metrics given to the targets. Thresholds can be set when the units of metrics are for numbers (pct, bps, millicore).
The colors and meanings for states such as Normal, Warning, Critical, and such are as follows:

| Status | Description |
|---|---|
| Normal | Displays the normal section (three divisions under Warning). |
| Warning | Indicates it is within the Warning threshold (more than Warning to Critical or more). |
| Critical | Indicates it is within the Critical threshold (more than Critical). |
| Dead | Container exit state |
| Wait | Container startup state |
| Pause | Container's suspended state |
Event-based container state
In Container Map, the container view provides a state value called EventConState. EventConState is the event-based container state, which represents the container state where the event is reflected. The event types reflected to EventConState are as follows:
| Event | Level |
|---|---|
| Kubernetes Event | Warning |
| WhaTap Event | Warning, Critical |
-
Kubernetes Eventis the event data provided by Kubernetes. It is the same as the event data that can be found in the user's Kubernetes environment through thekubectl get eventscommand. -
WhaTap Eventis set through the WhaTap event function.
EventConState is determined by the following methods:
| Status | State value | Cause |
|---|---|---|
| Critical | 50 | Critical event caused by the WhaTap microagent Critical event caused by the WhaTap node agent Toggle container state OOMKILLED |
| Warning | 30 | Warning event caused by Kubernetes WhaTap microagent-caused Warning event WhaTap node agent-caused Warning event Container state RESTARTING transition |
| Dead | 23 | Transition of the container state to DEAD |
| Pause | 22 | Transition of the container state to PAUSE |
| Waiting | 21 | Transition of the container state to WAITING |
| Normal | 10 | Transition of the container state to Normal |
Among the WhaTap events, there are events that have set Additional notifications when the event state is resolved.. Internally, two types of events are distinguished as follows:
-
Events that do not trace the state resolution:
statelessevents -
Events that set additional notifications when the state is resolved:
statefulevents
The stateless and stateful events generated by the container are used to determine the EventConState state as follows:
-
statelessevents: Reflectsstatelessevents that occurred in the container within the last minute to theEventConStatestate. -
statefulevents: Reflectsstatefulevents from occurrence to termination to theEventConStatestate.