Triggering email alerts for your workload views
You can trigger daily email alerts for your Workload Views, based on your defined service-level agreement (SLA) performance threshold and/or your workload job or query failures. When a Workload View’s SLA reaches or exceeds the defined threshold, or the workload jobs or queries reach or exceed the failure percentage, an email alert is triggered for you to take action upon its receipt.
-
Verify that you are logged in to the Cloudera Observability On-Premises web UI.
- In the URL field of a supported web browser, enter the Cloudera Observability On-Premises URL that you were given by your system administrator and press Enter.
- When the Cloudera Observability On-Premises Log in page opens, enter your Cloudera Observability On-Premises user name and password access credentials.
-
Click Log in.
The Cloudera Observability On-Premises web user interface landing page opens, which by default displays the Analytics Environments page that lists your Workload cluster environments.
-
From the Environment Name column in the
Environment's table, select the environment required for analysis.
The Environments navigation panel opens, which hierarchically lists the environment's cluster, engines, and if applicable the Hive Metastore category.
-
Depending on the environment selected, verify that the Cluster
Summary page is displayed for the environment's cluster required
as a workload view.
To display the Cluster Summary page for a Data Hub, Virtual Cluster, and Virtual Warehouse environment type, do one of the following:
- From the Environment panel, expand the service's category and depending on the service, locate and select the Data Hub's cluster, Virtual Cluster, or Virtual Warehouse that is required for analysis.
- In the Data Services table, drill-down through the service links to locate and select the Data Hub's cluster, Virtual Cluster, or Virtual Warehouse that is required for analysis.
- Select the Workloads tab.
-
Do one of the following:
- If no other Workload Views exist, in the Workloads page, click Manual.
- If other Workload Views exist, from the Define New list, select Manual Definition.
The Criteria Definition widget opens, where you define the criteria for the Workload View that will alert you when the SLA or specific workload jobs or queries reach or exceed the defined threshold or failure percentage.
-
In the Name field, enter a unique name that is easily
identifiable.
-
From the Engine list, select the engine in which the job
or query is run. For example, Impala.
-
Specify the Criteria condition by doing the following:
- From the Criteria list, select a criteria filter item from the available
options.You can set multiple conditions for the selected filter item. For example,
- If you selected User, you can include ANY or NONE of the available users in the Select user list.
- If you selected Pool, you can include ANY or NONE of the available pools in the Select pool list.
- If you selected Query Start Time, you can include IN RANGE or NOT IN RANGE of your selected time period.
- From the Criteria list, select a criteria filter item from the available
options.
-
In the SLA field, enter the threshold unit for the
completion of a job or query, using the following abbreviations as the time
units:
- h = hours
- m = minutes
- s = seconds
- ms = milliseconds
The time units must be in chronological order, where hours come before minutes, minutes come before seconds, and seconds come before milliseconds, and cannot have a space between the threshold number value and the time unit. For example, 2h 20m 3s. The threshold time value can also be entered as a whole time unit, where instead of entering 1h 10m you can enter 70m.
-
In the Warning Threshold field, enter a percentage value
that when exceeded by either the number of jobs or queries failing the SLA value
or failing execution completion, triggers a Warning status and if applicable
triggers an email alert notification.
- Optional:
For users with the Cloudera Observability On-Premises Premium license tier, you can enable
the email alert notification when the threshold or the number of failed jobs or
queries is exceeded.
- On the Workloads page, select the Workload View and from its Actions list, select Manage Email Alerts.
- On the Manage Email Alerts window, in the
Alert Email field, enter the email address to
which alert notification must be enabled, and press
Enter or click the plus icon. The specified email address is displayed in the Current Alert Emails list. You can enter multiple email addresses. When enabled, a maximum of one email for each calendar day is sent to the specified email address notifying them of the exceeded threshold.
- Click Save to enable email alerts.
- Optional: To display a summary of the jobs or queries matching your criteria, click Preview. The date range, the number of jobs or queries that match the criteria, and the number of jobs or queries that missed the SLA condition or failed completion are displayed.
-
Click Save.
The Workloads page opens and your workload view appears in the Workload column.
- Optional: To view more information about the workloads using the view's formula, open its Summary page by clicking the name of the Workload View in the Workload column, which displays the view's details as chart widgets that you can use to further analyze the results.
- Optional:
To delete an existing Workload View, do the following:
- In the Workloads page, locate and select the Workload View that requires deletion.
- From the Actions list, select Delete.
- In the confirmation message, click OK to confirm. The view is permanently removed.
- Optional:
To create a new view do the following:
-
Verify that the Cluster Summary page is displayed
for the environment's cluster required as a workload view.
- Select the Workloads tab.
-
From the Define New menu in the Workloads page,
select one of the following:
- To create a new manual view, select Manual Definition, in the Criteria Definition widget define a set of criteria for the view, and then click Save.
- To automatically generate a new view, select Auto-generate Definition.
The Workloads page reopens and your workload view appears in the Workload column.
-
Verify that the Cluster Summary page is displayed
for the environment's cluster required as a workload view.
-
Workload Views cannot be edited directly. If you require changes to an existing
Workload View do the following:
- In the Workloads page, Locate the Workload View that requires changes.
- From its Action list, select Clone.
-
In the Criteria Definition widget make the
changes you require, and then click Save.
The Workloads page reopens and your workload view appears in the Workload column.
- Locate the Workload View that required changes and from its Action list, select Delete and then in the Confirm message, confirm its deletion by clicking OK.