Do not start output with a '# metrics snapshot' etc prelude
This commit is contained in:
parent
971133128e
commit
d10286ff1e
|
@ -180,15 +180,7 @@ impl Inner {
|
||||||
mut distributions,
|
mut distributions,
|
||||||
} = self.get_recent_metrics();
|
} = self.get_recent_metrics();
|
||||||
|
|
||||||
let ts = SystemTime::now()
|
let mut output = String::new();
|
||||||
.duration_since(SystemTime::UNIX_EPOCH)
|
|
||||||
.map(|d| d.as_secs())
|
|
||||||
.unwrap_or(0);
|
|
||||||
|
|
||||||
let mut output = format!(
|
|
||||||
"# metrics snapshot (ts={}) (prometheus exposition format)\n",
|
|
||||||
ts
|
|
||||||
);
|
|
||||||
|
|
||||||
let descriptions = self.descriptions.read();
|
let descriptions = self.descriptions.read();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue