Skip to content

Commit

Permalink
test add jemalloc metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Feb 11, 2021
1 parent 1d1fc6a commit abf5cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions common/warp_utils/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn scrape_health_metrics() {
let e = epoch::mib().unwrap();
e.advance().unwrap();
let allocated = stats::allocated::mib().unwrap();
set_gauge(&JEMALLOC_ALLOCATED, allocated as i64);
set_gauge(&JEMALLOC_ALLOCATED, allocated);
let resident = stats::resident::mib().unwrap();
set_gauge(&JEMALLOC_RESIDENT, resident as i64);
set_gauge(&JEMALLOC_RESIDENT, resident);
}

0 comments on commit abf5cac

Please sign in to comment.