Skip to content

Commit

Permalink
comment edits
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Aug 22, 2024
1 parent 7aa3f77 commit 90f950a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gateway/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct Metrics {
pub struct MetricsConfig {
/// Collection interval to request from Oximeter, in seconds.
///
/// This is the frequency with which Oximeter will collect samples the
/// This is the frequency with which Oximeter will collect samples from the
/// metrics producer endpoint, *not* the frequency with which sensor
/// measurements are polled from service processors.
oximeter_collection_interval_secs: usize,
Expand Down Expand Up @@ -420,7 +420,6 @@ async fn start_pollers(
&log,
"still waiting for SP discovery to complete...";
"elapsed" => ?elapsed,

"error" => err,
)
} else {
Expand All @@ -439,7 +438,7 @@ async fn start_pollers(

slog::info!(
&log,
"starting to polling SP sensor data every {poll_interval:?}";
"starting to poll SP sensor data every {poll_interval:?}"
);

for (spid, _) in sps {
Expand Down Expand Up @@ -706,7 +705,7 @@ impl SpPoller {
samples.reserve(self.components.len());
for (c, metrics) in &mut self.components {
// Metrics samples *should* always be well-formed. If we ever emit a
// messed up one, this is a programmer error, and therefore should
// messed up one, this is a programmer error, and therefore should
// fail in test, but should probably *not* take down the whole
// management gateway in a real-life rack, especially because it's
// probably going to happen again if we were to get restarted.
Expand Down

0 comments on commit 90f950a

Please sign in to comment.