This commit is contained in:
Mateusz Gruszczyński committed 2026-10-03 10:05:46 +02:00
1 parent 5e23e9af02
commit 3883a21bc4
56 files changed
+1640 -403

No files matched your search

+4
View File
@@ -38,6 +38,8 @@ impl Cache {
cold_queue_limit_bytes: settings.cold_queue_max_bytes,
cold_entries: cold.entries.len(),
cold_bytes: cold.bytes,
cold_limit_bytes: settings.cold_max_bytes,
cold_limit_entries: settings.cold_max_entries,
cold_hits: n(&self.counters.cold_hits),
cold_promotions: n(&self.counters.cold_promotions),
hot_demotions: n(&self.counters.hot_demotions),
@@ -121,6 +123,8 @@ impl Cache {
),
("cold_entries", "gauge", view.cold_entries as u64),
("cold_bytes", "gauge", view.cold_bytes),
("cold_limit_bytes", "gauge", view.cold_limit_bytes),
("cold_limit_entries", "gauge", view.cold_limit_entries as u64),
("cold_hits_total", "counter", view.cold_hits),
("cold_promotions_total", "counter", view.cold_promotions),
("hot_demotions_total", "counter", view.hot_demotions),