This version is still in development and is not considered stable yet. For the latest stable version, please use Korvet 0.12.5!

Metrics

Korvet exposes metrics in Prometheus format via Spring Boot Actuator.

The metrics reference is split by concern so follow-on changes can stay module-local:

The existing Korvet metric families remain stable for this rollout. New metrics must follow the additive-only policy in Metrics contract.

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

Messages produced per topic:

sum by (topic) (korvet_produce_messages_total)

Produce latency (p99) per topic:

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

Fetch latency (p95) per topic:

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

Broker request rate by API key and result:

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

Hot Redis timeout rate by operation:

sum by (operation) (rate(korvet_storage_redis_pool_timeouts_total[5m]))

Tiered read-path mix by tier:

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

Error rate by operation:

sum by (operation) (rate(korvet_errors_total[5m]))

Redis command latency (p99) by command:

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