Metrics
Metrics are data exposed by tasks after execution.
A chart using Metrics could display the number of rows loaded in a bigQuery task or an output count from a SQL Query; anything exposed by an execution.
yaml
type: "io.kestra.plugin.core.dashboard.data.Metrics"Examples
Display a chart with rows inserted by Namespace.
yaml
charts:
- id: table_metrics
type: io.kestra.plugin.core.dashboard.chart.Table
chartOptions:
displayName: Rows Inserted by Namespace
data:
type: io.kestra.plugin.core.dashboard.data.Metrics
columns:
namespace:
field: NAMESPACE
inserted_rows:
field: VALUE
agg: SUM
where:
- field: NAME
type: EQUAL_TO
value: rows
orderBy:
- column: inserted_rows
order: DESC
Properties
Definitions
GREATER_THAN
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
GREATER_THAN_OR_EQUAL_TO
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
IN
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
values *Requiredarray
Min items
1labelKey string
EQUAL_TO
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
IS_FALSE
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
labelKey string
ENDS_WITH
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requiredstring
labelKey string
io.kestra.core.models.dashboards.ColumnDescriptor
agg string
Possible Values
AVGMAXMINSUMCOUNTdisplayName string
field string
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATElabelKey string
NOT_IN
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
values *Requiredarray
Min items
1labelKey string
STARTS_WITH
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requiredstring
labelKey string
IS_TRUE
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
labelKey string
REGEX
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requiredstring
labelKey string
LESS_THAN
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
LESS_THAN_OR_EQUAL_TO
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
IS_NOT_NULL
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
labelKey string
CONTAINS
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
io.kestra.core.models.dashboards.OrderBy
column *Requiredstring
Min length
1order string
Default
ASC Possible Values
ASCDESCNOT_EQUAL_TO
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
value *Requirednumberstring
labelKey string
IS_NULL
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
labelKey string
OR
field *Requiredstring
Possible Values
NAMESPACEFLOW_IDTASK_IDEXECUTION_IDTASK_RUN_IDTYPENAMEVALUEDATEtype *Requiredobject
values *RequiredContainsEndsWithEqualToGreaterThanGreaterThanOrEqualToInIsFalseIsNotNullIsNullIsTrueLessThanLessThanOrEqualToNotEqualToNotInOrRegexStartsWith
Min items
1