Skip to content

Performance Metrics

ksqlDB uses MetricCollectors to manage MetricCollectors and collect performance metrics.

Runtime metrics are reported regularly for a KsqlEngine and available using JMX (in io.confluent.ksql.metrics JMX namespace).

Runtime metrics in jconsole

LIST [STREAMS|TABLES] EXTENDED and DESCRIBE [sourceName] EXTENDED commands can be used to show the metrics.

Metric Name Description
num-active-queries The current number of active queries running in this engine
num-persistent-queries Number of persistent queries running in this engine

KsqlMetricsExtension

KsqlMetricsExtension is for developers to provide custom metrics that will be emitted along with the default KSQL engine JMX metrics.