Documentation is now available for the Fall 2020 Update release!

Process Google Cloud Events

Describes how to configure Google Cloud Events.

Leave Feedback

OpsRamp consumes GCP events through Pub/Sub. Pub/Sub is an asynchronous messaging service from GCP that decouples services that produce events and process events. You can use Pub/Sub as messaging-oriented middleware or event ingestion and delivery for streaming analytics pipelines. OpsRamp supports the instant discovery of Google Cloud Platform (GCP) events, as and when the events are created. Unlike scheduled discovery, where you need to schedule discovery of create/update/delete events from GCP, the event-based discovery helps you discover resources in real-time.

This document outlines the configurations required in GCP and OpsRamp to discover and stream the events.

Prerequisites

  1. Create a project.
  2. Enable cloud Pub/Sub API for the project.

Procedure

Events are the occurrences that happen in your cloud environment and requires your action.

To configure events:

  1. Log in to your Google Cloud account as an administrator.
  2. From the navigation menu in the left pane, go to the Big Data section and click Pub/Sub.
  3. On the Pub/Sub screen, click CREATE TOPIC.
    For instructions, see Google Cloud documentation on creating a topic.
  4. Add a subscription to the topic you just created.
    For instructions, see Adding a subscription. You need the subscription name while creating a discovery profile to allow OpsRamp to consume events.
  5. Enter Acknowledgment Deadline as 600 (Recommended). The subscription is created.
  6. From the navigation menu on the left pane, go to the Stack Driver section and click Logging.
  7. On the Stack Driver Logging page, click CREATE EXPORT.
  8. Expand the filter options and select Convert to advanced filter.
  9. Provide the following details and click Create Sink:
    • Sink Service: pub/sub
    • Sink destination: Name of the topic you created
    • Filter: severity=NOTICE (Mandatory)

GCP is now configured to send you events on OpsRamp.