
Query
Query Cloud Monitoring metrics.
Query
Query Cloud Monitoring metrics.
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
impersonatedServiceAccountstring
The GCP service account to impersonate.
projectIdstring
The GCP project ID.
scopesarray
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccountstring
The GCP service account.
windowstring
Default
PT5MFormat
durationQuery window size – default to 5 minutes
Outputs
countinteger
Total number of time series fetched
seriesarray
SubTypeobject
List of time series