Send OCI Alerts Notifications To 3rd Party Systems (Object Storage)

Photo by Lucas van Oort on Unsplash

Hi there!

In this blog, I want to show how you can send an OCI Alert Notification to a 3rd party system. The way I describe this tutorial is by sending the notification to an OCI Storage bucket so you can ingest it using the tool of preference.

First of all I would describe the services used:

  • OCI Monitoring Service
  • OCI Streams Service
  • OCI Connector Hub
  • OCI Storage Service

Let’s go an create a Storage bucket in order to hold these notifications.
Create a Storage bucket

Once you have the Storage bucket ready, go ahead and create a Stream pool and a Stream.
Create a Stream Pool

Don’t forget to create the Stream.

Now is time to create an alarm and send the notification to the Stream we just created.
Create an Alarm

During the alarm creation, be sure to select the Stream as a destination.

At this point every single time the alarm generates a notification, it will be send to the Streaming service. Now we need to send this notification from the Streaming service to our Storage bucket. We need to create a Connector Hub for that.
Create a Connector Hub

The Connector Hub configuration will look like below.

After this, the notification that was stored in the Streaming service will be moved to your Storage bucket.

Keep in mind that you need to set several policies for this to work.
Connector Hub policies

Another important consideration is the fact that the Streaming service encrypts the data at rest. So when you open one of those files inside your Storage bucket, you will find them encrypted. You could decrypt them using base64 functions.

Thanks,
Alfredo