Query Cloud Monitoring metrics.
yaml
type: "io.kestra.plugin.gcp.monitoring.Query"Examples
Query CPU utilization over the last 5 minutes
yaml
id: "query"
type: "io.kestra.plugin.gcp.monitoring.Query"
id: gcp_monitoring_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.gcp.monitoring.Query
projectId: "my-project"
filter: metric.type="compute.googleapis.com/instance/cpu/utilization"
window: PT5M
Properties
filter *Requiredstring
Filter expression
impersonatedServiceAccount string
The GCP service account to impersonate.
projectId string
The GCP project ID.
scopes array
SubType string
Default
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccount string
The GCP service account.
window string
Default
PT5M Format
durationQuery window size – default to 5 minutes
Outputs
count integer
Total number of time series fetched
series array
SubType object
List of time series