Skip to content

Commit

Permalink
Expose process swap metrics and fix it in graphite export
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Aug 30, 2018
1 parent 5cfbeee commit b0dc6cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scan/processes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ pub fn write_tip(tip: &mut Tip, processes: &Vec<MinimalProcess>,
Integer(p.vsize as i64));
tip.add(key("rss", &pid, cgroup),
Integer(p.rss as i64));
tip.add(key("swap", &pid, cgroup),
Integer(p.swap as i64));
tip.add(key("num_threads", &pid, cgroup),
Integer(p.num_threads as i64));
tip.add(key("user_time", &pid, cgroup),
Expand Down

0 comments on commit b0dc6cf

Please sign in to comment.