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
impersonatedServiceAccount string
The GCP service account to impersonate.
projectId string
The GCP project ID.
scopes array
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccount string
The GCP service account.
window string
PT1MdurationThe duration window for the metric interval
Outputs
count integer
Total number of metrics pushed
Definitions
io.kestra.plugin.gcp.monitoring.Push-MetricValue
labels object
Metric labels
Optional key/value labels attached to the metric
metricKind string
GAUGEGAUGECUMULATIVEDELTAThe metric kind
The kind of metric to push
metricType string
The metric type name
Fully qualified Cloud Monitoring metric type – for example custom.googleapis.com/demo/requests_count
value numberstring
The metric value
Value to push for the metric