For the latest stable version, please use Korvet 0.19!

Metrics

Korvet exposes metrics in Prometheus format via Spring Boot Actuator.

The metrics reference is organized by module:

See Tags and families for the tag vocabulary and top-level metric families.

Platform Metrics

Micrometer also exports standard JVM and system metrics.

Metric Description

jvm.memory.used

JVM memory used

jvm.memory.max

JVM maximum memory

jvm.gc.pause

Garbage collection pause time

jvm.threads.live

Live threads

process.cpu.usage

Process CPU usage

system.cpu.usage

System CPU usage

Querying Metrics

Prometheus Queries

Produce latency (p99) per topic:

histogram_quantile(0.99, sum by (topic, le) (rate(korvet_broker_produce_seconds_bucket[5m])))

Fetch latency (p95) per topic:

histogram_quantile(0.95, sum by (topic, le) (rate(korvet_broker_fetch_seconds_bucket[5m])))

Broker request rate by API key and result:

sum by (api_key, result) (rate(korvet_broker_request_seconds_count[5m]))

Local Redis pool timeout rate:

rate(korvet_storage_local_pool_acquire_seconds_count{result="timeout"}[5m])

Read mix by tier:

sum by (tier, result) (rate(korvet_storage_read_seconds_count[5m]))

Broker failure rate by operation and error type:

sum by (operation, error_type) (rate(korvet_broker_failures_total[5m]))

Redis command latency (p99) by command:

histogram_quantile(0.99, sum by (command, le) (rate(lettuce_command_completion_seconds_bucket[5m])))