Skip to content

Commit

Permalink
cas: add .misses counters
Browse files Browse the repository at this point in the history
Summary:
add .misses counters

They are present for all other storages

Reviewed By: lmvasquezg

Differential Revision: D65083457

fbshipit-source-id: 5c42ae68261e0d68915c2f30b89be2bbfb7025ad
  • Loading branch information
Liubov Dmitrieva authored and facebook-github-bot committed Oct 29, 2024
1 parent 65a7e90 commit 069fb67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions eden/scm/lib/revisionstore/src/scmstore/file/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ impl FetchState {
self.metrics.cas.fetch(keys_fetch_count);
self.metrics.cas.err(error);
self.metrics.cas.hit(keys_found_count);
self.metrics.cas.miss(keys_fetch_count - keys_found_count);
self.metrics
.cas_backend
.zdb_bytes(total_stats.total_bytes_zdb);
Expand Down
1 change: 1 addition & 0 deletions eden/scm/lib/revisionstore/src/scmstore/tree/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ impl FetchState {
self.metrics.cas.fetch(keys_fetch_count);
self.metrics.cas.err(error);
self.metrics.cas.hit(keys_found_count);
self.metrics.cas.miss(keys_fetch_count - keys_found_count);
self.metrics
.cas_backend
.zdb_bytes(total_stats.total_bytes_zdb);
Expand Down

0 comments on commit 069fb67

Please sign in to comment.