Testing
This commit is contained in:
@@ -114,7 +114,7 @@ impl ServiceCollector {
|
||||
sandbox_limit: None, // TODO: Implement sandbox limit detection
|
||||
disk_used_gb,
|
||||
description,
|
||||
sub_service: false,
|
||||
sub_service: None,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -834,7 +834,7 @@ impl Collector for ServiceCollector {
|
||||
sandbox_limit: None,
|
||||
disk_used_gb: 0.0,
|
||||
description: None,
|
||||
sub_service: true,
|
||||
sub_service: Some("nginx".to_string()),
|
||||
});
|
||||
healthy += 1;
|
||||
}
|
||||
@@ -855,7 +855,7 @@ impl Collector for ServiceCollector {
|
||||
sandbox_limit: None,
|
||||
disk_used_gb: 0.0,
|
||||
description: None,
|
||||
sub_service: false,
|
||||
sub_service: None,
|
||||
});
|
||||
tracing::warn!("Failed to collect metrics for service {}: {}", service, e);
|
||||
}
|
||||
@@ -915,7 +915,7 @@ struct ServiceData {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
description: Option<Vec<String>>,
|
||||
#[serde(default)]
|
||||
sub_service: bool,
|
||||
sub_service: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user