Google Cloud PlatformDescribes how to setup an integration to discover and monitor Google Cloud Platform (GCP).Leave FeedbackIntroductionGoogle Cloud Platform (GCP), is a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products.NoteMetric timestamps in OpsRamp may differ from those reported in the cloud console.PrerequisitesService Account Management Certificate (JSON or P12 key/credentials)Management Certificate PassPhraseGCP configuration for event-based discovery (optional)OpsRamp supports the instant discovery of Google Cloud Platform (GCP) events, as and when the events are created.Event-based discovery helps discover resources in real-time by streaming create and delete event actions between GCP and OpsRamp.Event-based discovery is implemented by subscribing to the events. Once subscribed, event notification occurs.Configuring event discovery involves:Creating topics that correspond to events.Creating subscriptions for topics.Creating exportsImportantAfter subscription, the event subscription name is provided to OpsRamp in the GCP integration’s discovery profile. The configuration setting is located in the Google integration’s Discovery Profile > Stream Google Events > Google Event Subscription Name.Prerequisites and considerationsA project must be created in GCP.The Cloud Pub/Sub API must be enabled for the project.A subscription created for an event must be used for only one Google Cloud integration in OpsRamp.Step 1: Create a topicTopics receive messages sent by publishers corresponding to the events.To create a topic:Log into GCP as administrator.From Navigation Menu, go to Big Data > Pub/Sub, and click Create TopicProvide a topic name and click CREATE. The topic you created appears in the topics list.Create a TopicStep 2: Create a subscriptionSubscription represents the stream of messages from a single, specific topic, to be delivered to the subscribing application.To create a subscription for the topic:From the Topics list, click the topic you created.From Subscriptions, click CREATE SUBSCRIPTION.Provide the following details and click Create.Subscription name: Provide a nameDelivery Type: PullAcknowledgment Deadline: 600 (Recommended)Create a SubscriptionStep 3: Create an exportTo create an export:Go to Stack Driver > Logging and click CREATE EXPORT.Expand the Filter options and select Convert to advanced filter.Provide the following:Sink Service: pub/subSink destination: Name of the topic you created Filter: severity=NOTICE (Mandatory)Click Create Sink. Events matching the filter criteria are sent to the sink (pub/sub topic).Create an ExportOpsRamp configurationConfiguration involves:Configuring the integration.Adding a discovery profile.Step 1: Configure the integrationTo integrate:From All Clients, select a client.Go to Setup > Integrations > Integrations.From Available Integrations, select Public Cloud > Google and click Install.Provide the following:NameService Account EmailProject IdService Account Management CertificateManagement Certificate PassPhraseClick Install.Step 2: Add a discovery profileTo add a discovery profile:From the integration, click Add.Provide the following:Profile Details.Profile nameFilter CriteriaSmart filters: Use to filter resources based on the resource type.Resource filters: Use to filter resources based on certain resource attributes.Perform Actions:Manage DeviceCollect Cost Analytics: Provide GCP bucket name.This option collects project cost details for the services and resources utilized.GCP Bucket Name for Collect Cost AnalyticsStream Google Events.Assign Gateway Management ProfilePerform Agent ActionAgent Type: Direct or Proxy. If Proxy, select gateway profile.Install Agent (Linux only)Discovery schedule. Based on the settings, discovery is triggered based on the scheduled time. New resources added to the environment are automatically discovered.Click Save.From the Discovery Profiles section, click Scan Now for the associated profile.