Enhanced alarms and monitoring capabilities in OCI Database Management

August 25, 2022 | 7 minute read
Jayaprakash Subramanian
Product Management, Strategic Customer Program for OCI Observability & Management / Enterprise Manager
Sriram Vrinda
Director of Product Management
Text Size 100%:

Oracle Cloud Infrastructure (OCI) Database Management Service (Database Management) now enables monitoring of the number of alarms by severity for a fleet of managed databases in a compartment or database group, or a single managed database.

Previously, you could only monitor the alarms on the Fleet summary page but now you can also monitor the alarms for the databases in a database group on the Database group details page and a single managed database on the Managed database details page.

Database Fleet Management Summary with Alarms Section
Figure 1:  Alarm Summary on Database Fleet Summary

The Alarms feature in the Oracle Cloud Infrastructure Monitoring service monitors cloud resources using metrics and notifies you when these metrics meet alarm-specified triggers.

For the open database alarms to be displayed in Database Management, ensure that:

Database Management is enabled for the Oracle Database. For information, see Enable Database Management.

An alarm is created and either one or both of the following dimensions are specified when creating the alarm:

  • resourceId: The OCID of the Oracle Database.
  • resourceName: The name of the Oracle Database.

Creating an alarm in the O&M OCI console 

Here’s a scenario in which an alarm is created for the CpuUtilization metric of an Oracle Database, which is being monitored by Database Management.

1. In the OCI console, open the navigation menu, and click Observability & Management. Under Monitoring, click Alarm Definitions.

2. On the Alarm Definitions page, click Create Alarm.

Create Alarm
Figure 2:  Create an Alarm

3. On the Create Alarm page, under Define alarm:

  1. Enter a user-friendly name for the alarm in the Alarm name field.
  2. Select Critical in the Alarm severity field.
  3. Specify guidance on how to resolve the alarm in the Alarm body field.
  4. Enter optional tags in the Tags fields.
Alarm Definition
Figure 3:  Define Alarm

4. In the Metric description section:

  1. Select the compartment in which Database Management is discovered in the Compartment field.
  2. Select oracle_oci_database in the Metric namespace field.
  3. Optionally, select the resource group to which the metric belongs in the Resource group field.
  4. Select CpuUtilization in the Metric name field.
  5. Specify 1m as the frequency at which data points are aggregated in the Interval field.
  6. Select Mean as the aggregation function applied for converting a set of data points, in the Statistic field.

5. In the Metric dimensions section:

  1. Select resourceId or resourceName in the Dimension name field.
  2. Depending on the dimension selected in the previous step, select the OCID or name of the Oracle Database.
Metric Disctription
Figure 4:  Metric Description and metric dimensions

6. In the Trigger rule section, select the trigger value, which is the condition to put the alarm in a firing state.

Trigger Rule
Figure 5:  Alarm Trigger Rule

7. The metric chart for the specified dimensions and the associated query are displayed.

Metric Query
Figure 6:  View Metric Query

8. Optionally, customize the definition of the alarm using Metric Query Language (MQL) by clicking the view query in Metrics Explorer and clicking Edit query.

Metric Query Editor
Figure 7:  Metric Query Editor (MQL)

9. In the Notifications section, select the notification service to deliver the alarm notification. Create or use an existing "Topic" to send a notification when it reaches the firing state.  A few of the endpoints available are email addresses, Slack channels, SMS, and custom URLs enabling users to receive critical messages to act upon quickly.

Finish Alarm Creation
Figure 8:  Alarm Notification Configuration

10. Click Save alarm to create the new alarm for the database and this will be displayed on the Database Management pages when it’s in the firing state

Investigate Alarms in Database Management

The open database alarms created with the resourceId or resourceName dimensions are listed on the Fleet summary, Database group details, and Managed database details pages. For example, in the screenshot below, the Alarm information for a particular Database Group is displayed.

Click the number of alarms to access detailed information about the alarms in the Alarms slider.

Alarms on Database Groups
Figure 9:  Alarms on Database Groups

In the Alarms slider:

Select the Show suppressed alarms check box to view suppressed alarms.

Use the options in the Severity drop-down list to filter the list of alarms by severity or search for a specific Oracle Database or alarm by entering the name in the Search by Database/alarm field.

Alarms Slider
Figure 10: Suppressed Alarms on Alarm Slider

 

Alarm Slider
Figure 11:  Filter Alarms by Severity

Click the name of the alarm to view or edit the alarm on the Alarm Definitions page. To edit or delete the alarm, click Actions and select the appropriate option. You can also suppress the alarm by clicking Suppress alarm.

View / Edit Alarm
Figure 12:  View / Edit Alarms

Click the name of the database to go to the Managed database details page of the database and only view the open alarms for that database.

Navigate to Managed Database
Figure 13:  Links on Alarm Slider
Managed Database Home Page
Figure 14:  Managed Database Home

Note that the Database column is not displayed in the Alarms slider if it’s accessed from the Managed database details page.

Managed Database Alarms
Figure 15:  Alarms on Managed Database Home

Here is the sample email notification for the configured critical event.

Sample Notification Email
Figure 16:  Sample Alarm Notification E-Mail

Conclusion

Database Management Service Alarms enables you to quickly view and act upon the issues on your database fleet. It also helps prioritize the metrics that are critical for your infrastructure and monitor them in a single pane.

Additional Resources

Learn more about OCI Database Management Cloud Service
Explore the documentation and get more details on metrics, alarms, and notifications
Read the release notes

Jayaprakash Subramanian

Product Management, Strategic Customer Program for OCI Observability & Management / Enterprise Manager

Sriram Vrinda

Director of Product Management

Sriram Vrinda is an experienced Product Manager with a demonstrated history of working in the information technology and services industry. Strong product management professional skilled in Oracle Database, Autonomous Databases, MySQL Databases, IT Service Management, Solution Architect, and Pre-sales. He has helped various customers with Oracle solutions specifically around performance, availability, and scalability aspects for about 20 years.


Previous Post

TCPS support for cloud databases for OCI Database Management

Murtaza Husain | 9 min read

Next Post


Automate and scale database security with efficient vulnerability checks

Shiva Prasad | 4 min read