Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
service: don't track metrics of all processes in system
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Aug 3, 2020
1 parent de8a0d5 commit c52cafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/service/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl MetricsService {

Self {
metrics,
system: sysinfo::System::new_with_specifics(sysinfo::RefreshKind::new().with_processes()),
system: sysinfo::System::new(),
pid: Some(process.pid),
}
}
Expand Down Expand Up @@ -234,7 +234,7 @@ impl MetricsService {
fn inner_new(metrics: Option<PrometheusMetrics>) -> Self {
Self {
metrics,
system: sysinfo::System::new_with_specifics(sysinfo::RefreshKind::new().with_processes()),
system: sysinfo::System::new(),
pid: sysinfo::get_current_pid().ok(),
}
}
Expand Down

0 comments on commit c52cafd

Please sign in to comment.