Query Cloud Monitoring metrics.

yaml
type: "io.kestra.plugin.gcp.monitoring.Query"

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 expression

The GCP service account to impersonate.

The GCP project ID.

SubType string
Default ["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used.

The GCP service account.

Default PT5M
Format duration

Query window size – default to 5 minutes

Total number of time series fetched

SubType object

List of time series