Skip to content

Commit

Permalink
fix: Always set last pods check timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
rossf7 authored and bpetit committed Jun 15, 2022
1 parent 25889fb commit a7ccdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exporters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,13 +598,13 @@ impl MetricGenerator {
if let Ok(pods_result) = kubernetes.list_pods("".to_string()) {
self.pods = pods_result;
debug!("Found {} pods", &self.pods.len());
self.pods_last_check = current_system_time_since_epoch().as_secs().to_string();
} else {
info!("Failed getting pods list, despite client seems ok.");
}
} else {
debug!("Kubernetes socket is not some.");
}
self.pods_last_check = current_system_time_since_epoch().as_secs().to_string();
}
}

Expand Down

0 comments on commit a7ccdc2

Please sign in to comment.