diff --git a/src/exporters/mod.rs b/src/exporters/mod.rs index 9ca12c7b..6cc26d9e 100644 --- a/src/exporters/mod.rs +++ b/src/exporters/mod.rs @@ -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(); } }