Collector Configuration Manual for "GoogleCloud-Compute Engine Collection"
Before reading this article, please read the following first:
Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages
1. Configuration Structure
No additional configuration is required; the collector will automatically collect all resources within the scope of permission across all projects.
2. Configuration Example
Collector Configuration
Not required
Configuration Filter (Optional)
This collector script supports user-defined filters, allowing users to filter target resources by object attributes. The filter function returns True or False.
- True: The target resource needs to be collected.
- False: The target resource does not need to be collected.
Supported object properties for filtering:
Property | Description |
---|---|
instanceId | Instance ID |
instanceName | Instance name |
zone | Zone |
publicIPAddress | Public IP address |
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
3. Data Reporting Format
After data synchronization, you can view the data under "TrueWatch" in the "Infrastructure - Resource Catalog".
Example of reported data:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
Fields in tags and fields may change with subsequent updates
The value of tags.name is the instance ID, used as a unique identifier
The following fields are strings after JSON serialization
fields.message
fields.disks
fields.labels
fields.machine_info
fields.network_interfaces
fields.tags
fields.machine_info
X. Appendix
Google Cloud related documentation: