Skip to content

cloudforet-io/plugin-google-cloud-inven-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Collector



Version License: Apache 2.0

Plugin to collect Google Cloud

SpaceONE's plugin-google-cloud-inven-collector is a convenient tool to get cloud service data from Google Cloud platform.

Find us also at Dockerhub

Please contact us if you need any further information. ([email protected])




Google Service Endpoint (in use)

There is an endpoints used to collect resources information of GCP. Endpoint of served GCP is a URL consisting of a service code.

https://[service-code].googleapis.com

We use dozens of endpoints because we collect information from many services.



Service list

The following is a list of services being collected and service code information.

No. Service name Service Code
1 Compute Engine compute
2 Networking compute
3 Cloud SQL sqladmin
4 Storage storage
5 BigQuery bigquery
6 Cloud Pub/Sub pubsub
7 Cloud Functions cloudfunctions
8 Recommender recommender

If you want to know the detailed service endpoint, please check the content details below.



Content details



Authentication Overview

Registered service account on SpaceONE must have certain permissions to collect cloud service data Please, set authentication privilege for followings:


Options

Cloud Service Type : Specify what to collect

If cloud_service_types is added to the list elements in options, only the specified cloud service type is collected. By default, if cloud_service_types is not specified in options, all services are collected.

The cloud_service_types items that can be specified are as follows.


{
    "cloud_service_types": [
    'ComputeEngine'
    'CloudSQL',
    'BigQuery',
    'CloudStorage',
    'Networking'
    ]
}

How to update plugin information using spacectl is as follows. First, create a yaml file to set options.


> cat update_collector.yaml
---
collector_id: collector-xxxxxxx
options:
  cloud_service_types:
    - CloudSQL
    - VPCNetwork

Update plugin through spacectl command with the created yaml file.


> spacectl exec update_plugin inventory.Collector -f update_collector.yaml

Service Code Mapper : Update service code in Cloud Service Type.

If service_code_mapper is in options, You can replace the existed service code into new value one. The default service code is listed below service code list


{
    "service_code_mappers": {
        "Compute Engine": "Your new service code",
        "Cloud SQL": "Your new service code",
    }
}

Custom Asset URL : Update ASSET_URL in Cloud Service Type.

If custom_asset_url is in options, You can change it to an asset_url that users will use instead of the default asset_url.
The default ASSET_URL in cloud_service_conf is https://spaceone-custom-assets.s3.ap-northeast-2.amazonaws.com/console-assets/icons/cloud-services/google_cloud.


{
    "custom_asset_url": "https://xxxxx.spaceone.dev/icon/google"
}


About

Google Cloud Asset Plugin for SpaceONE Inventory Collector

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages