CDL Metrics

Overview

This chapter describes the Key Performance Indicators (KPIs) available to monitor and analyze the performance of the CDL.

The label name and description of the metrics used in CDL are defined in the following table:

Table 1. Metrics Label Description
Metric Label Name Label Description
db The name of the datastore.
operation The name of operation performed on the CDL pods.
errorCode The error code sent in response.
errorMessage The error message sent in response.
slot_shard_id The Slot map or Shard id where the operation is performed.
slot_instance_id The Slot instance id where the operation is performed.
shardId The Slot or Index map or Shard id where the metric is pegged.
instanceId The Slot or Index map or Instance id where the metric is pegged.
session_type The type of session data present in the record.
bucket The bucket represents the bucket under which the session lies. The current buckets are <=1kb, <=2kb, <=4kb,<=8kb, <=16kb, <=32kb, >32kb
notification_type The type of notification sent from CDL. Values: TIMER_EXPIRED, RECORD_CONFLICT, BULK_TASK_NOTIFICATION
topic The topic while publishing to kafka
not_found_in The pod from where the data was not found. Values: Index/Slot

Endpoint Metrics

datastore_requests_total

Description: Provides the total count of the received datastore create requests.

Label: db, operation, errorCode, errorMessage

Type: Counter

Data Type: Float64

datastore_requests_duration_seconds

Description: Provides the time taken for processing the datastore create requests.

Label: db, operation, errorCode, errorMessage

Type: Counter

Data Type: Float64

indexing_operation_total

Description: Provides the total count of indexing operations sent.

Label: db, operation, errorCode, errorMessage

Type: Counter

Data Type: Float64

indexing_operation_duration_seconds

Description: Provides the time taken for sending the response to the indexing operations.

Label: db, operation, errorCode, errorMessage

Type: Counter

Data Type: Float64

slot_operation_total

Description: Provides the total count of operations sent towards the Slot application.

Type: Counter

Data Type: Float64

slot_operation_duration_seconds

Description: Provides the time taken for sending the response to the Slot operations.

Label: db, operation, slot_shard_id, slot_instance_id, errorCode, errorMessage

Type: Counter

Data Type: Float64

db_records_total

Description: Provides the total count of records for the database.

Label: db, session_type

Type: Gauge

Data Type: Float64

find_no_record_total

Description: Provides the total count of find requests for which no records are sent back.

Label: db, session_type,not_found_in

Type: Counter

Data Type: Float64

Index Application Metrics

indexing_requests_total

Description: Provides the total count of records in the Index.

Label: db, operation, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

indexing_requests_duration_seconds

Description: Provides the response time taken for the requests received at the Index application.

Label: db, operation, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

indexing_records_total

Description: Provides the total count of records in the Indexing.

Label: db, shardId

Type: Counter

Data Type: Float64

kafka_producer_pending_publish_total

Description: Provides the total count of Kafka messages that are not published yet.

Label: None

Type: Counter

Data Type: Float64

kafka_producer_requests_total

Description: Provides the total count of requests sent by Kafka producer.

Label: None

Type: Counter

Data Type: Float64

kafka_producer_requests_duration_seconds

Description: Provides the total time taken by Kafka producer to process the requests.

Label: topic, errorMessage

Type: Counter

Data Type: Float64

rolling_q_enq_count

Description: Provides the total requests queued in the rolling queue.

Label: None

Type: Counter

Data Type: Float64

rolling_q_enq_duration

Description: Provides the total time taken to enqueue the requests in the rolling queue.

Label: None

Type: Counter

Data Type: Float64

Slot Application Metrics

slot_requests_total

Description: Provides the total count of the received datastore create request.

Label: db, operation, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

slot_requests_duration_seconds

Description: Provides the response time taken for the requests received at the Slot application.

Label: db, operation, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

slot_records_total

Description: Provides the total count of requests received at the Slot application.

Label: db, shardId, session_type, bucket

Type: Counter

Data Type: Float64

records_notification_total

Description: Provides the total count of notifications sent towards notification endpoint.

Label: db, notification_type, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

records_notification_duration_seconds

Description: Provides the time taken for the notification sent towards the notification endpoint.

Label: db, notification_type, shardId, errorCode, errorMessage

Type: Counter

Data Type: Float64

records_notification_retry_count

Description: Provides the total number of notification retries by the Slot application.

Label: db, shardId

Type: Counter

Data Type: Float64