Elastic Algorithm Service (EAS) defines the ServiceInstance event type in CloudMonitor to help you monitor the events of each EAS service instance. The EAS event controller pushes ServiceInstance events to CloudMonitor in real time. You can view ServiceInstance events, perform O&M or audits on the events, and configure alert rules for the events in the CloudMonitor console or by calling API operations. This topic describes how to view ServiceInstance events, and how to create and enable alert rules for the events.
View ServiceInstance events
In the CloudMonitor console
To view ServiceInstance events in the CloudMonitor console, you can perform the following steps:
- Log on to the CloudMonitor console.
- In the left-side navigation pane, choose .
On the Event Monitoring tab, select PAI from the product selection drop-down list and click Search to view system events of EAS.
Find the system event that you want to view and click Details in the Actions column.
The following figure shows an example of the event details.
API operation
You can also call an API operation to view ServiceInstance events. For more information, see DescribeSystemEventAttribute.
Create and enable an event-triggered alert rule
In the CloudMonitor console
Create a system event-triggered alert rule. For more information, see Create a system event-triggered alert rule. Take note of the following parameters:
Product Type: Select PAI.
Event Type: Select ServiceInstance. You can set this parameter only to ServiceInstance. This value specifies the type of events that are related to EAS service instances.
Event Level: Select one or more severity levels based on your business requirements.
Event Name: Select the name of the event that you want to monitor. The available names are listed in the Event name column of the table in the Appendix section. You can select one or more event names.
Keyword Filtering: Specify the keywords and condition that are used to filter the events.
Enable the system event-triggered alert rule. For more information, see Enable system event-triggered alert rules.
API operation
You can also call an API operation to create and enable an event-triggered alert rule. For more information, see Create a system event-triggered alert rule and Enable system event-triggered alert rules.
Appendix: Supported ServiceInstance events
The following table describes the ServiceInstance events that are defined by EAS based on the lifecycle of a service instance.
Event type | Event name | Event level | Event status |
ServiceInstance | EAS:ServiceInstance:Running | INFO | Running |
EAS:ServiceInstance:Pending | INFO | Pending | |
EAS:ServiceInstance:Completed | INFO | Completed | |
EAS:ServiceInstance:Terminating | INFO | Terminating | |
EAS:ServiceInstance:Terminated | INFO | Terminated | |
EAS:ServiceInstance:Unknown | WARN | Unknown | |
EAS:ServiceInstance:Evicted | WARN | Evicted | |
EAS:ServiceInstance:ErrImagePull | WARN | ErrImagePull | |
EAS:ServiceInstance:ImagePullBackOff | WARN | ImagePullBackOff | |
EAS:ServiceInstance:CrashLoopBackOff | CRITICAL | CrashLoopBackOff | |
EAS:ServiceInstance:Error | CRITICAL | Error | |
EAS:ServiceInstance:Failed | CRITICAL | Failed |