Core Plugins and tasks publish

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.publish
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

List of metrics to publish

Definitions
name*Requiredstring
type*Requiredobject
value*Requirednumberstring
descriptionstring
tagsobject
SubTypestring
name*Requiredstring
type*Requiredobject
value*Requiredstring
descriptionstring
tagsobject
SubTypestring
name*Requiredstring
type*Requiredobject
value*Requirednumberstring
descriptionstring
tagsobject
SubTypestring