Configure the Google Cloud Logging service to auto-update the CMDB
You can activate the Google Cloud Logging (formerly Stackdriver Logging) service to auto-update Configuration Management Database (CMDB) configuration items (CI) data whenever Google Cloud Connector or your Google account makes a life-cycle state or configuration change to a Google Cloud Platform (GCP) resource. As a result, the CI data in the CMDB is updated without having to wait for Discovery to run.
Avant de commencer
- Activate Discovery and Service Mapping Patterns. For more information, see Google Cloud Platform Discovery.
- Verify that Discovery has successfully discovered logical datacenters of the Google Cloud project. For more information, see Set up a cloud account and service account for Google Cloud Platform.Remarque :Verify that you have selected the Should pull events check box in the Google Service Account page before you execute datacenter discovery.
- discovery_admin for Cloud Discovery and
sn_cmp.cloud_event_integrationif authentication to cloud event endpoint is required. This role is required to set up an Alert Rule in the instance. - Google Cloud Platform administrator for configuration steps in the GCP console.
Logging Role for the Google Cloud Platform integration user that would allow OAuth scopes for the following
https://www.googleapis.com/auth/logging.adminhttps://www.googleapis.com/auth/cloud-platform.read-onlyhttps://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/logging.read
Pourquoi et quand exécuter cette tâche
- Centralized log collection for Google Cloud resources.
- APIs to query and export logs for operational workflows.
When configured, Discovery pulls the Cloud Logging API at regular intervals to detect updates and synchronize them with the CMDB.
Procédure
Résultats
Once the Google Cloud Platform generates an event and Discovery receives the event information, the 'GCP-Events-job' scheduled jobs execute in the background.
The scheduled job passes the event payload to the Identification and Reconciliation Engine (IRE). The IRE then takes the necessary actions to modify the state of the resources based on the event.