Working with KPIs

Learn multiple scenarios where you can view how to use KPIs to monitor critical parts of your NiFi deployments on the central monitoring dashboard.

Use KPIs to monitor whether flows in your deployment are processing data

Learn how to use KPIs to monitor whether the flows in your deployment are processing data.

You want to track how much data your flows are receiving from external systems or processing to an external system. It is a common use case where you might want to track whether your flows are reading or writing data as expected.
You can achieve your goal by selecting appropriate KPI scope and metric while deploying your flow in Cloudera Data Flow. Select All Flows KPI scope and Data In or Data Out metric to track. Select Data In metric to track how much data your flow is reading and Data Out metric to track how much data your flows are writing to the external system. In this example, Data In metric is selected. The Data In metric tracks rate of data received from an external source in bytes.
You must have reached the Add New KPI screen while deploying your flow in Cloudera Data Flow.
  1. Select All Flows as the KPI scope.
  2. Select Data In as the metric to track.
  3. Configure the alert settings as per your requirement or when you want to be alerted.
  4. Click Add.
    Similarly, you can set other metrics and alerts as per your requirement.

Use KPIs to monitor auto-scaling operations

Learn how to use KPIs to monitor auto-scaling operations.

You want to use KPIs to track auto-scaling operations.
You can achieve your goal by selecting appropriate KPI scope and metric while deploying your flow in Cloudera Data Flow. Select System KPI scope and Core Allocation metric to track. Core Allocation metric tracks the numbers of cores allocated. After the flow deployment, you can view a graph that represents how many cores are used right now and you can also view when it scales up or scales down.
You must have reached the Add New KPI screen while deploying your flow in Cloudera Data Flow.
  1. Select System as the KPI scope.
  2. Select Core Allocation as the metric to track.
  3. Configure the alert settings as per your requirement or when you want to be alerted.
  4. Click Add.

    Similarly, you can set other metrics and alerts as per your requirement.

Use KPIs to track the processing latency of streaming data

Learn how to use KPI to track the processing latency of streaming data.

Your flow starts reading data from an external system and ends writing the data to some other place. In between all processing is done. A common question or a common performance indicator that you want to track might be how long does it take for the data to be processed.
You can achieve your goal by selecting appropriate KPI scope and metric while deploying your flow in Cloudera Data Flow. Select Processor KPI scope and Average Lineage Duration metric to track. The Average Lineage Duration metric tracks the time elapsed between when the original source data was received and the time when the processing event occurred.
You must have reached the Add New KPI screen while deploying your flow in Cloudera Data Flow.
  1. Select Processor as the KPI scope.
  2. Select the processor, you want to monitor, in the Processor Name field.
  3. Select Average Lineage Duration as the metric to track.
  4. Configure the alert settings as per your requirement or when you want to be alerted.
  5. Click Add.
    Similarly, you can set other metrics and alerts as per your requirement.

Use KPIs to monitor connection usage

Learn how to use KPIs to monitor connection usage.

You want to track errors in a failure queue. You read data from a Kafka topic and apply a schema to it. The schema does not fit the message and the operation fails. You do not want to process the message and route it to a failure queue. Now, you want to track data quality in your deployment.
You can achieve your goal by selecting appropriate KPI scope and metric while deploying your flow in Cloudera Data Flow. You need to create a KPI on this queue to track failure. Select Connection KPI scope, connection name, and Percent Full metric to track. The Percent Full metric indicates how much of the queue’s capacity is used for your data flow.
You must have reached the Add New KPI screen while deploying your flow in Cloudera Data Flow.
  1. Select Connection as the KPI scope.
  2. Select Percent Full as the metric to track.
  3. Select the failure queue, you created, in the Connection Name field.
  4. Configure the alert settings as per your requirement or when you want to be alerted.
  5. Click Add.
    Similarly, you can set other metrics and alerts as per your requirement.

Use KPIs to monitor individual processor metrics

Learn how to use KPIs to monitor individual processor metrics.

You want to track a specific metric for a processor in your flow.
You can achieve your goal by selecting appropriate KPI scope and metric while deploying your flow in Cloudera Data Flow. Select Processor KPI scope, the processor you want to monitor in the Processor Name field, and the metric you want to track. In this example, Bytes Sent metric is selected. The Bytes Sent metric tracks number of bytes sent to an external recipient.
You must have reached the Add New KPI screen while deploying your flow in Cloudera Data Flow.
  1. Select Processor as the KPI scope.
  2. Select Bytes Sent as the metric to track.
  3. Configure the alert settings as per your requirement or when you want to be alerted.
  4. Click Add.
    Similarly, you can set other metrics and alerts as per your requirement.