This commit is contained in:
2025-10-13 08:38:57 +02:00
parent 5e8a0ce108
commit 859df2dec1
3 changed files with 22 additions and 47 deletions

View File

@@ -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)]