PushPush
PushCertified

Push metrics to Cloud Monitoring.

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.

Definitions
labelsobject
SubTypestring

Metric labels

Optional key/value labels attached to the metric

metricKindstring
DefaultGAUGE
Possible Values
GAUGECUMULATIVEDELTA

The metric kind

The kind of metric to push

metricTypestring

The metric type name

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

valuenumberstring

The metric value

Value to push for the metric

The GCP project ID.

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

The GCP scopes to be used.

The GCP service account.

DefaultPT1M
Formatduration

The duration window for the metric interval

Total number of metrics pushed