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 abf5cac commit 632bff2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/warp_utils/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ pub fn scrape_health_metrics() {

let e = epoch::mib().unwrap();
e.advance().unwrap();
let allocated = stats::allocated::mib().unwrap();
set_gauge(&JEMALLOC_ALLOCATED, allocated);
let resident = stats::resident::mib().unwrap();
set_gauge(&JEMALLOC_RESIDENT, resident);
set_gauge(&JEMALLOC_ALLOCATED, stats::allocated::mib().unwrap().into());
set_gauge(&JEMALLOC_RESIDENT, stats::resident::mib().unwrap().into());
}

0 comments on commit 632bff2

Please sign in to comment.