Skip to content

Disk Cache Metrics

This page documents Prometheus metrics related to disk-based caches within the Yellowbrick platform, which help accelerate query execution by reducing I/O latency for frequently accessed data.

Purpose

These metrics provide visibility into the behavior and efficiency of various internal caches used for temporary storage on disk. They can be used to:

  • Monitor cache size and usage patterns
  • Track hit/miss ratios for performance analysis
  • Identify areas under- or over-utilizing cache space
  • Inform tuning of caching policies for different subsystems

Each cache is identified by its area label, allowing for targeted troubleshooting and monitoring. The area label distinguishes between the types of internal caches. It can have one of the following values:

  • ast – The Abstract Syntax Tree (AST) cache
  • source – The source code cache
  • object – The compiled object code cache

This labeling makes it easy to track the size and health of each cache independently in Prometheus and Grafana dashboards.

Metrics

NameTypeFreqLabelsVersion IntroducedVersion DeprecatedDescription
yb_lime_cache_entriesgauge1marea7.3.0-Number of entries in the corresponding cache
yb_lime_cache_hitsgauge1marea7.3.0-Hit count of the corresponding cache
yb_lime_cache_missesgauge1marea7.3.0-Miss count of the corresponding cache
yb_lime_cache_sizegauge1marea7.3.0-Size in bytes of the corresponding cache