mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-04 02:34:09 +02:00
fix cpu time again
This commit is contained in:
parent
bfda9ac1bb
commit
76b34af04f
2 changed files with 15 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ pub fn get_metrics() -> Result<String> {
|
|||
let pools = pools();
|
||||
let networks = network_stats()?;
|
||||
let mut result = String::with_capacity(256);
|
||||
writeln!(&mut result, "cpu_time{{host=\"{}\"}} {:.1}", hostname, cpu).ok();
|
||||
writeln!(&mut result, "cpu_time{{host=\"{}\"}} {:.3}", hostname, cpu).ok();
|
||||
writeln!(
|
||||
&mut result,
|
||||
"memory_total{{host=\"{}\"}} {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue