sync hostname

This commit is contained in:
Robin Appelman 2021-03-27 23:36:45 +01:00
commit 61261ca227
4 changed files with 26 additions and 5 deletions

View file

@ -11,13 +11,13 @@ use std::collections::HashSet;
use std::fmt::Write;
pub async fn get_metrics() -> Result<String> {
let (hostname, cpu, network, disks, disk_usage) = try_join! {
hostname(),
let (cpu, network, disks, disk_usage) = try_join! {
cpu_time(),
network_stats(),
disk_stats(),
disk_usage(),
}?;
let hostname = hostname()?;
let memory = memory()?;
let temperatures = temperatures()?;
let pools = pools();