GCP Storage
Collect GCP Storage Metrics
Configuration¶
Install Func¶
It is recommended to activate Guance Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed. Please proceed with script installation.
If you need to deploy Func yourself, refer to Deploy Func Manually
Install Script¶
-
Log in to the Func console, click [Script Market], enter the Guance Script Market, and search for
integration_gcp_storage. -
Click [Install], then enter the corresponding parameters: Account file name, Target Principal, Account name.
-
Click [Deploy Startup Script], the system will automatically create a
Startupscript set and configure the corresponding startup script. -
After enabling, you can see the corresponding automatic trigger configuration in [Manage / Automatic Trigger Configurations]. Click [Execute] to run it immediately without waiting for the scheduled time. Wait a moment, then you can check the execution task records and corresponding logs.
Verification¶
- In [Manage / Automatic Trigger Configurations], confirm whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions.
- In Guance, check [Infrastructure / Custom] to see if asset information exists.
- In Guance, check [Metrics] to see if there is corresponding monitoring data.
Metrics¶
GCP Storage metrics are under the gcp_storage Measurement. Below are some metric descriptions.
| Metric | Original Metric | Description | Unit |
|---|---|---|---|
| storage_object_count | storage/object_count |
Total number of objects in each bucket | Count |
| storage_total_byte_seconds | storage/total_byte_seconds |
Total storage space used per day for the respective bucket (in byte*seconds) | Byte-seconds |
| storage_total_bytes | storage/total_bytes |
Total size of all objects in the bucket | Bytes |
| storage_v_2_total_byte_seconds | storage/v2/total_byte_seconds |
(v2) Total storage space used per day for the respective bucket (in byte*seconds) | Byte-seconds |
| storage_v_2_total_bytes | storage/v2/total_bytes |
Total number of objects in each bucket (v2) | Bytes |
| storage_v_2_total_count | storage/v2/total_count |
Total number of objects and multipart uploads in each bucket (v2) | Count |
| replication_meeting_rpo | replication/meeting_rpo |
A boolean value indicating whether the object meets the RPO | Boolean |
| replication_missing_rpo_minutes_last_30_d | replication/missing_rpo_minutes_last_30d |
Total minutes the Recovery Point Objective (RPO) was not met in the last 30 days | Count |
| replication_object_replications_last_30_d | replication/object_replications_last_30d |
Total number of object replications in the last 30 days | Count |
| replication_time_since_metrics_updated | replication/time_since_metrics_updated |
Time elapsed (in seconds) since the storage.googleapis.com/replication/* metrics were last calculated | Seconds |
| replication_v_2_object_replications_last_30_d | replication/v2/object_replications_last_30d |
Total number of object replications in the last 30 days (v2) | Count |
| replication_v_2_time_since_metrics_updated | replication/v2/time_since_metrics_updated |
Time elapsed since the replication metrics were updated | Seconds |
| anywhere_cache_request_count | anywhere_cache/request_count |
Increment in API call count | Count |
| anywhere_cache_sent_bytes_count | anywhere_cache/sent_bytes_count |
Increment in bytes sent over the network | Bytes |
| api_request_count | api/request_count |
Increment in API call count | Count |
| network_received_bytes_count | network/received_bytes_count |
Increment in bytes received over the network | Bytes |
| network_sent_bytes_count | network/sent_bytes_count |
Increment in bytes sent over the network | Bytes |