Notifications and Monitoring
The purpose of this chapter is to provide information on two Oracle Cloud Infrastructure Services tightly related, Notifications and Monitoring services. We have seen, so far, great Oracle Cloud Infrastructure Services, going from Compute, Autonomous Data
- PDF / 1,060,218 Bytes
- 17 Pages / 504 x 720 pts Page_size
- 38 Downloads / 176 Views
Notifications and Monitoring The purpose of this chapter is to provide information on two Oracle Cloud Infrastructure Services tightly related, Notifications and Monitoring services. We have seen, so far, great Oracle Cloud Infrastructure Services, going from Compute, Autonomous Database (ADB), Block Volume, Object Storage, and so on. Now we will see the monitoring and notification mechanisms Oracle Cloud Infrastructure uses to manage your system. This helps you to react as quickly as possible when a particular situation happens. We will see how the Monitoring service monitors cloud resources and has the ability to publish messages using the Notification service.
Notifications In order to use the Notification service, we have to understand three concepts: •
Topic: The channel used to publish messages.
•
Subscription: Messages will be sent to endpoints subscribed to the topic.
•
Message: The content to be published.
When a situation needs to notify an individual or a process, a published message will be transmitted to the subscribers through the notification topic. On a paid account, notifications can be sent in three ways: when event rules are triggered, alarms are breached, or messages are manually published. Unfortunately, Oracle Cloud Free Tier supports only notifications from alarms and manually published messages.
© Adrian Png and Luc Demanche 2020 A. Png and L. Demanche, Getting Started with Oracle Cloud Free Tier, https://doi.org/10.1007/978-1-4842-6011-1_9
157
Chapter 9
Notifications and Monitoring
Note Oracle Cloud Free Tier does not support the Events service. There are five types of subscriptions: •
Email: The service will send an email.
•
Function: The service will send a message to run a function.
•
HTTPS: The service will send a message to an endpoint (URL using HTTPS protocol).
•
PagerDuty: Create a PagerDuty incident by sending to an endpoint (URL).
•
Slack: The service will send a message to a Slack channel.
Note Oracle Functions is not supported on Oracle Cloud Free Tier. First task we have to do is the creation of the Notification Topic. Let’s imagine we would like to use a topic for the monitoring of your Compute and your Autonomous Database. Typically, DBA will subscribe to the topic.
Creating Topics Click the navigation icon and select Application Integration and Notifications. For the creation of the topic, make sure you are in the right compartment and click the Create Topic button. You will have to provide the topic name and a description. For the example let’s use FreeTier_Monitoring as the name and Topic been used for Free Tier Monitoring for the description. Then click Create. Once created, you will be back to the Topics main page. You will see the list of Topics for this compartment as we can see in Figure 9-1.
158
Chapter 9
Notifications and Monitoring
Figure 9-1. List of Topics
Subscribing to a Topic To receive the message published using a topic, the individual, utility, or process should be subscribed to this topic. We will demonstrate the
Data Loading...