
Core Plugins and tasks publish
CertifiedPublish custom metrics from a Flow execution.
Core Plugins and tasks publish
Certified
Publish custom metrics from a Flow execution.
Renders and emits the provided list of metrics (counters, timers, etc.) during the Flow. Tags can include Flow or Namespace metadata for later filtering.
Use when downstream monitoring/alerting depends on execution-time signals beyond built-in metrics.
yaml
type: io.kestra.plugin.core.metric.publishExamples
yaml
id: publish_metrics
namespace: company.team
tasks:
- id: metric
type: io.kestra.plugin.core.metric.Publish
metrics:
- type: timer
name: duration
value: PT10M
tags:
flow: "{{flow.id}}"
project: kestra
- type: counter
name: number
value: 42
tags:
flow: "{{flow.id}}"
project: kestra
Properties
metrics
List of metrics to publish
Definitions
io.kestra.core.models.tasks.metrics.CounterMetric
name*Requiredstring
type*Requiredobject
value*Requirednumberstring
descriptionstring
tagsobject
SubTypestring
io.kestra.core.models.tasks.metrics.TimerMetric
name*Requiredstring
type*Requiredobject
value*Requiredstring
descriptionstring
tagsobject
SubTypestring
io.kestra.core.models.tasks.metrics.GaugeMetric
name*Requiredstring
type*Requiredobject
value*Requirednumberstring
descriptionstring
tagsobject
SubTypestring