Push metrics to Cloud Monitoring.

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

Push a custom metric to Cloud Monitoring

yaml
id: gcp_monitoring_push
namespace: company.team

tasks:
  - id: push_metric
    type: io.kestra.plugin.gcp.monitoring.Push
    projectId: "demo-project"
    metrics:
      - metricType: "custom.googleapis.com/demo/requests_count"
        value: 42.0
      - metricType: "custom.googleapis.com/demo/latency_ms"
        value: 123.4
Properties

The GCP service account to impersonate.

List of metrics to push

Each entry includes a metricType and value.

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 PT1M
Format duration

The duration window for the metric interval

Total number of metrics pushed

SubType string

Metric labels

Optional key/value labels attached to the metric

Default GAUGE
Possible Values
GAUGECUMULATIVEDELTA

The metric kind

The kind of metric to push

The metric type name

Fully qualified Cloud Monitoring metric type – for example custom.googleapis.com/demo/requests_count

The metric value

Value to push for the metric