Labels in GCP are the logical equivalent to Tags in AWS and Azure.
The use of “labels (tags)” throughout our documentation is to provide similarity to the CI Sync feature across multiple of our connectors.
For certainty though, this content is referring to GCP Labels as distinct from GCP Security Tags.
Connector Applicability
|
Applies to Source Connectors |
GCP |
|---|---|
|
Applies to Destination Connectors |
All |
Assumptions
These instructions assume you have already setup a source connection in CI Sync for GCP using the CI Sync instructions here: Add GCP to SaaS Agent.
Pre-Read
Syncfish recommend customers read the following documentation before changing the Connection Setting/s described below.
Locating and Amending the Connection Setting in the CI Sync UI
-
Navigate to the Settings page
-
Under the Source Connections heading (list), locate your GCP connection.
-
Click the Update link on the right hand side of the GCP connection.
-
Scroll down and locate the Section Heading and view the Individual Settings.
The screen shot is provided only as sample to assist when reading this page. The state of your own CI Sync UI will depend on whether you are starting from the CI Sync default position or if you have already amended one/more of the settings.
-
Tick the Override default box/boxes and then use the sliders related to the individual settings. The following table elaborates any further information about these particular settings.
|
Setting |
Type |
Additional Notes |
|
Enable for Cost Center |
Slider |
If enabled, defined Labels (Tags) will be synchronized to the cost_center field against CIs in the CMDB. When enabled, the Cost Center Label RegEx field will be exposed (see below). |
|
Cost Center Label RegEx |
RegEx |
Enter a Regular Expression that matches one or more label (tag) names in GCP (i.e. one or more lables (tags) that represent the Cost Centre associated with the GCP resource). Example RegEx /^CostCenter$|^Cost Center$|^CostCenterLabel$/ RegEx Explained This RegEx will identify labels (tags) named “CostCenter”, “Cost Center” or “CostCenterLabel” (i.e. three variations) and sync’d the associated values into ServiceNow. Sync Behaviour and ServiceNow Data Explained
By populating both the specific field on the CI (e.g. the cost_center attribute, the environrment attribute or the owned_by attribute) and the cmdb_key_value table (i.e. the related list against the CI), customers can identify CIs where the specific field is not populated but the related list of labels (tags) contains a near match. This approach allows customers to identify data quality issues in the source system using simple reports, dashboards or workflows within ServiceNow. |
-
After modify the settings, scroll to the bottom of the page, tick the “I consent…” checkbox and finally click the Save connection button.
-
You can now run a sync job and the amended settings will be applied causing the CI Sync Data Sync rules to be modified accordingly.
Importantly
Make sure you consciously override the setting against either your TEST or PROD environment (i.e. your TEST vs PROD sync jobs).
For more information on how to use TEST vs PROD Connection Settings please read Understanding the use of CI Sync Connection Settings.
Syncfish strongly recommend making changes for TEST environment/sync jobs first. Only modify PROD related settings after thoroughly validating the intended results in TEST.