
Push
Push metrics to Cloud Monitoring.
Push metrics to Cloud Monitoring.
Push metrics to Cloud Monitoring.
type: "io.kestra.plugin.gcp.monitoring.Push"Examples
Push a custom metric to Cloud Monitoring
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
impersonatedServiceAccountstring
The GCP service account to impersonate.
metricsarray
List of metrics to push
Each entry includes a metricType and value.
io.kestra.plugin.gcp.monitoring.Push-MetricValue
Metric labels
Optional key/value labels attached to the metric
GAUGEGAUGECUMULATIVEDELTAThe 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
projectIdstring
The GCP project ID.
scopesarray
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccountstring
The GCP service account.
windowstring
PT1MdurationThe duration window for the metric interval
Outputs
countinteger
Total number of metrics pushed