Dostupná řešení
GCP Cloud Storage Bucket by HTTP
Overview
This template is designed to monitor Google Cloud Platform Cloud Storage buckets using Zabbix.
Requirements
Zabbix version: 8.0 and higher.
Tested versions
This template has been tested on:
- GCP Cloud Storage
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
This template will be automatically connected to discovered entities with all their required parameters pre-defined.
Macros used
| Name | Description | Default |
|---|---|---|
| {$GCP.PROJECT.ID} | GCP project ID. |
|
| {$GCP.DATA.TIMEOUT} | Response timeout for API. |
15s |
| {$GCP.TIME.WINDOW} | Time interval for data requests. Supported usage types: - Default update interval for most items. - Minimal time window for data requested in Monitoring Query Language REST API request. |
1h |
| {$GCP.PROXY} | Sets HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$GCS.BUCKET.SIZE.MAX} | GCP Cloud Storage bucket size threshold (in bytes). Default is 1TB. |
1T |
| {$GCS.BUCKET.SIZE.GROWTH.MAX} | GCP Cloud Storage bucket size growth threshold (in bytes per hour). Default is 10GB. |
10G |
| {$GCS.OBJECT.COUNT.MAX} | GCP Cloud Storage bucket object count threshold. Default is 1M objects. |
1000000 |
| {$GCS.EGRESS.MAX} | GCP Cloud Storage bucket egress traffic threshold (in bytes per 5m). Default is 100MB. |
104857600 |
| {$GCS.INGRESS.MAX} | GCP Cloud Storage bucket ingress traffic threshold (in bytes per 5m). Default is 100MB. |
104857600 |
| {$GCS.API.ERROR.MAX} | GCP Cloud Storage bucket API error rate threshold (per 5m). Default is 50. |
50 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get bucket storage info | GCP Cloud Storage bucket raw metric data. |
HTTP agent | gcp.storage.bucket.metrics.get Preprocessing
|
| Bucket size | GCP Cloud Storage bucket total size. |
Dependent item | gcp.storage.bucket.size Preprocessing
|
| Bucket objects total count | Cloud Storage bucket total object count. |
Dependent item | gcp.storage.bucket.objects.count Preprocessing
|
| Get bucket network traffic | GCP Cloud Storage bucket raw traffic data. |
HTTP agent | gcp.storage.bucket.network.get Preprocessing
|
| Bucket sent bytes | Outgoing network traffic from the bucket. |
Dependent item | gcp.storage.bucket.network.sent_bytes Preprocessing
|
| Bucket received bytes | Incoming network traffic to the bucket. |
Dependent item | gcp.storage.bucket.network.received_bytes Preprocessing
|
| Get bucket API metric | GCP Cloud Storage bucket API raw metric data. |
HTTP agent | gcp.storage.bucket.requests.get Preprocessing
|
| Successful request count | Number of |
Dependent item | gcp.storage.bucket.request.2xx Preprocessing
|
| Client error request count | Number of |
Dependent item | gcp.storage.bucket.request.4xx Preprocessing
|
| Server error request count | Number of |
Dependent item | gcp.storage.bucket.request.5xx Preprocessing
|
| Total requests | Number of all requests reaching the service. |
Calculated | gcp.storage.bucket.request.total Preprocessing
|
| Error rate | Rate of failed requests reaching the service. |
Calculated | gcp.storage.bucket.request.error.rate Preprocessing
|
| Success rate | Rate of successful requests reaching the service. |
Calculated | gcp.storage.bucket.request.success.rate Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| GCP Cloud Storage: GCP API is failing (bucket metrics) | No data received from GCP API for the last 30 minutes. Possible query error or API failure. |
nodata(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.metrics.get,30m)=1 |
High | Manual close: Yes |
| GCP Cloud Storage: Bucket size is too large | Bucket size exceeds the configured threshold. |
min(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.size,1h)>{$GCS.BUCKET.SIZE.MAX} |
Warning | |
| GCP Cloud Storage: Rapid storage growth detected | Bucket size growth rate exceeds the configured threshold. |
change(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.size)>{$GCS.BUCKET.SIZE.GROWTH.MAX} |
Warning | Manual close: Yes |
| GCP Cloud Storage: Bucket object count is too high | Number of objects in the bucket exceeds the configured limit. |
min(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.objects.count,1h)>{$GCS.OBJECT.COUNT.MAX} |
Warning | |
| GCP Cloud Storage: No objects in bucket | No objects have been stored in the bucket for the last 24 hours. |
max(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.objects.count,24h)=0 |
Info | Manual close: Yes |
| GCP Cloud Storage: GCP API is failing (bucket network traffic) | No data received from GCP API for the last 30 minutes. Possible query error or API failure. |
nodata(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.network.get,30m)=1 |
High | Manual close: Yes |
| GCP Cloud Storage: High egress traffic | Outgoing network traffic from the bucket exceeds the threshold. |
min(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.network.sent_bytes,5m)>{$GCS.EGRESS.MAX} |
Warning | |
| GCP Cloud Storage: High ingress traffic | Incoming network traffic to the bucket exceeds the threshold. |
min(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.network.received_bytes,5m)>{$GCS.INGRESS.MAX} |
Info | |
| GCP Cloud Storage: GCP API is failing (bucket requests) | No data received from GCP API for the last 30 minutes. Possible query error or API failure. |
nodata(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.requests.get,30m)=1 |
High | Manual close: Yes |
| GCP Cloud Storage: High API error rate | GCP Cloud Storage bucket API error rate exceeds the configured threshold. |
min(/GCP Cloud Storage Bucket by HTTP/gcp.storage.bucket.request.error.rate,5m)>{$GCS.API.ERROR.MAX} |
Average |