Asset Data Filter Outputs

Asset Data Filter Outputs

Certified

Display a flow output file in a dashboard chart.

Displays a compact or pre-aggregated dataset ION file (one object per line) written by a flow. The flow does the heavy aggregation work, and the dashboard shows the result. The file is read sequentially, so keep the file small and already shaped for the chart.

It reads the output file of the latest successful execution of the flow, from the Kestra internal storage. Each execution output must be a full snapshot, so the chart shows the dataset of that execution only.

The dashboard time window filters the rows on dateColumn. Without dateColumn, there is no time filter. An AVG column can set weight to the name of a file column holding the weight of each row, to compute a weighted average. A row without that column counts for 0.

Limits

Two settings keep the display time short and the server load low. Tune them to your use case and to your storage backend (a remote backend such as S3 reads slower than a local disk), in the Kestra configuration:

kestra: 
  ee: 
    dashboard: 
      outputs: 
        max-rows: 10000
        max-file-size: 100MB
  • max-rows (default 10000): the number of rows read from the file to draw a chart, counted before the chart filters apply. The chart tells you when the file holds more rows.
  • max-file-size (default 100MB): the file size a chart reads. The chart tells you when a file is bigger.
yaml
type: io.kestra.plugin.ee.dashboard.data.Outputs

Display the weighted average latency of the latest run of a flow.

yaml
charts:
  - id: latency
    type: io.kestra.plugin.core.dashboard.chart.Bar
    chartOptions:
      displayName: Average latency by service
    data:
      type: io.kestra.plugin.ee.dashboard.data.Outputs
      namespace: company.monitoring
      flowId: latency
      output: stats
      columns:
        service:
          key: service
        latency:
          key: avg_latency
          agg: AVG
          weight: requests

Display the orders rejected by the latest run of a flow.

yaml
charts:
  - id: rejected_orders
    type: io.kestra.plugin.core.dashboard.chart.Table
    chartOptions:
      displayName: Rejected orders
    data:
      type: io.kestra.plugin.ee.dashboard.data.Outputs
      namespace: company.ingest
      flowId: orders
      output: rejected
      dateColumn: received_at
      columns:
        orderId:
          key: order_id
          displayName: Order
        reason:
          key: reason
          displayName: Reason
        amount:
          key: amount
          displayName: Amount
          agg: SUM
      where:
        - field: COLUMN
          key: reason
          type: NOT_EQUAL_TO
          value: DUPLICATE
Properties
Definitions
aggstring
Possible Values
AVGMAXMINSUMCOUNT
displayNamestring
fieldstring
keystring
weightstring
Min length1

The identifier of the flow.

Min length1

The namespace of the flow.

Min length1

The name of the flow output holding the ION file.

The file column holding the date of each row, used to apply the dashboard time window.

Definitions
column*string
Min length1
orderstring
DefaultASC
Possible Values
ASCDESC
Definitions
field*string
value*numberstring
keystring
typeobject
field*string
value*string
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
values*array
Min items1
keystring
typeobject
field*string
keystring
typeobject
field*string
keystring
typeobject
field*string
keystring
typeobject
field*string
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
value*numberstring
keystring
typeobject
field*string
values*array
Min items1
keystring
typeobject
field*string
values*
Min items1
keystring
typeobject
field*string
value*string
keystring
typeobject
field*string
value*string
keystring
typeobject

Matches namespace prefix (namespace.equals(value) or namespace.startsWith(value + '.'))

field*string
value*string
keystring
typeobject