pass through whether Periphery docker daemon connection is ok

This commit is contained in:
mbecker20
2025-10-12 01:08:45 -07:00
parent 48f2f651e1
commit f69c8db3ea
2 changed files with 3 additions and 0 deletions

View File

@@ -238,6 +238,7 @@ impl Resolve<Args> for PollStatus {
container_terminals_disabled: config
.disable_container_terminals,
stats_polling_rate: config.stats_polling_rate,
docker_connected: docker_client().load().is_some(),
},
system_info: stats_client.info.clone(),
system_stats,

View File

@@ -356,6 +356,8 @@ pub struct PeripheryInformation {
pub container_terminals_disabled: bool,
/// The rate the system stats are being polled from the system
pub stats_polling_rate: Timelength,
/// Whether Periphery is successfully connected to docker daemon.
pub docker_connected: bool,
}
/// Info about an active terminal on a server.