Creating an auto action event
The steps to create a Cloudera Observability auto action definition, which is triggered when a workload application, job, or query matches the auto action’s definition threshold. For example, when a job is taking too long to run it may delay other jobs waiting in the queue. With Auto Actions, you can create an auto action alert that informs you through an email when a job is exceeding its usual runtime so that you can decide whether to manually take steps to alleviate the problem or have an auto action that will terminate the job or query process for you.
-
Verify that you are logged in to the Cloudera Observability web UI and that you
selected an environment from the Analytics
Environments page.
-
Log in to Cloudera in a supported
browser.
The Cloudera web interface landing page opens.
-
From the Your Enterprise Data Cloud landing
page, select the Observability tile.
The Cloudera Observability landing page opens to the main navigation panel.
-
From the Cloudera Observability
Environments page, select the environment required
for analysis.
The Environment navigation panel opens.
-
Log in to Cloudera in a supported
browser.
-
Depending on the environment selected, verify that the Cluster
Summary page is displayed for the environment's cluster required
for analysis.
- Select the Auto Actions tab.
-
Do one of the following:
- If no other auto actions exist, select the Management tab and then click Auto Actions Setup.
- If other auto actions exist, click Create Auto Action.
The Auto Actions Create page opens.
- In the Auto Action Name field, enter a unique name that is easily identifiable.
-
From the Scope list, select the workload component
service that is to be monitored by the action.
For example, if you want your action to only evaluate Spark related applications, select Spark Application.
-
Define the conditions for the auto action by doing at least
one of the following:
- Specify the Criteria:
- From the Criteria list, select a criteria item.
- From the Operator list, select the required operator.
- In the Value field, enter the value for this filter.
- Specify the trigger for the auto action by doing the following:
- From the Metric list, select a metric
item.
Triggers (Scope: Spark applications only) Description Additional information Requested Containers The total number of containers the application requests.
For Spark, this includes containers allocated for both the Driver and Executors. Requested Memory
The total amount of memory the application requests across all containers
For Spark, this includes memory allocated for the Driver, Executors, and any additional overhead. Requested VCores The total number of virtual cores (vCores) the application requests across all containers.
For Spark, this includes vCores allocated to the Driver and Executors. - From the Operator list, select the required operator.
- In the Value field, enter the value for this trigger condition.
- From the Metric list, select a metric
item.
- Specify the Criteria:
-
From the Select Action options, select the action that
is to be performed when the condition is met.
-
From the Notification section do the following:
- In the Emails field, enter the email address that you use to log into Cloudera Observability.
- In the Subject field, enter the subject for the email that distinguishes the subject matter from other auto action emails.
- Click Create, which creates the action and its audit log, adds it on the Auto Actions Events and Management pages, and displays its status as Enabled and its most recent event type as Create.