feat(observability): add Prometheus/Grafana/Loki/Alertmanager/Alloy stack and remove legacy Monitoring UI
This commit is contained in:
@@ -75,14 +75,10 @@ class RemoteSSHClient:
|
||||
client = paramiko.SSHClient()
|
||||
client.load_system_host_keys()
|
||||
known_hosts_file = Path(self.known_hosts_path) if self.known_hosts_path else None
|
||||
trusted_before = bool(
|
||||
known_hosts_file and has_known_host(self.host, self.port, known_hosts_file)
|
||||
)
|
||||
trusted_before = bool(known_hosts_file and has_known_host(self.host, self.port, known_hosts_file))
|
||||
if known_hosts_file and known_hosts_file.is_file():
|
||||
client.load_host_keys(str(known_hosts_file))
|
||||
client.set_missing_host_key_policy(
|
||||
paramiko.RejectPolicy() if trusted_before else paramiko.AutoAddPolicy()
|
||||
)
|
||||
client.set_missing_host_key_policy(paramiko.RejectPolicy() if trusted_before else paramiko.AutoAddPolicy())
|
||||
connect_kwargs: dict[str, Any] = {
|
||||
"hostname": self.host,
|
||||
"port": self.port,
|
||||
|
||||
Reference in New Issue
Block a user