KPI​K​P​I

Track a specific value.

KPI charts are used to display a single value, such as a count or percentage, often used to track performance indicators.

yaml
type: "io.kestra.plugin.core.dashboard.chart.KPI"

Display a Success Ratio per Flow

yaml
charts:
  - id: KPI_SUCCESS_PERCENTAGE
    type: io.kestra.plugin.core.dashboard.chart.KPI # io.kestra.plugin.core.dashboard.chart.Trends
    chartOptions:
      displayName: Success Ratio
      numberType: PERCENTAGE
      width: 3
    data:
      type: io.kestra.plugin.core.dashboard.data.ExecutionsKPI # io.kestra.plugin.core.dashboard.data.ExecutionsTrends
      columns:
        field: FLOW_ID
        agg: COUNT
      numerator:
        - field: STATE
          type: IN
          values:
            - SUCCESS
      where: # optional if you filter by namespace
        - field: NAMESPACE
          type: EQUAL_TO
          value: "company.team"
Properties
Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1
Min length 1
Default FLAT
Possible Values
FLATPERCENTAGE
Default 6
Minimum >= 1
Maximum <= 12
Min items 1
Possible Values
AVGMAXMINSUMCOUNT
Min items 1
Min items 1