Asset Data Filter Outputs
Certified
Display a flow output file in a dashboard chart.
Asset Data Filter Outputs
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(default10000): 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(default100MB): the file size a chart reads. The chart tells you when a file is bigger.
type: io.kestra.plugin.ee.dashboard.data.OutputsExamples
Display the weighted average latency of the latest run of a flow.
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.
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
columns *object
io.kestra.core.models.dashboards.ColumnDescriptor
AVGMAXMINSUMCOUNTflowId *string
1The identifier of the flow.
namespace *string
1The namespace of the flow.
output *string
1The name of the flow output holding the ION file.
dateColumn string
The file column holding the date of each row, used to apply the dashboard time window.
orderBy array
io.kestra.core.models.dashboards.OrderBy
1ASCASCDESCwhere
CONTAINS
ENDS_WITH
EQUAL_TO
GREATER_THAN
GREATER_THAN_OR_EQUAL_TO
IN
1IS_FALSE
IS_NOT_NULL
IS_NULL
IS_TRUE
LESS_THAN
LESS_THAN_OR_EQUAL_TO
NOT_CONTAINS
NOT_EQUAL_TO
NOT_IN
1OR
1REGEX
STARTS_WITH
PREFIX
Matches namespace prefix (namespace.equals(value) or namespace.startsWith(value + '.'))