Do not start output with a '# metrics snapshot' etc prelude

This commit is contained in:
Deirdre Connolly 2021-10-08 20:52:14 -04:00
parent 971133128e
commit d10286ff1e
1 changed files with 1 additions and 9 deletions

View File

@ -180,15 +180,7 @@ impl Inner {
mut distributions,
} = self.get_recent_metrics();
let ts = SystemTime::now()
.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 mut output = String::new();
let descriptions = self.descriptions.read();