Compare commits

..

1 Commits

Author SHA1 Message Date
mammuthus b5d4d5f9f1
Merge 873618ce53 into 8ac1a0017d 2026-04-03 03:21:55 +03:00
1 changed files with 5 additions and 12 deletions

View File

@ -234,10 +234,7 @@ async fn render_metrics(stats: &Stats, config: &ProxyConfig, ip_tracker: &UserIp
let me_allows_normal = telemetry.me_level.allows_normal(); let me_allows_normal = telemetry.me_level.allows_normal();
let me_allows_debug = telemetry.me_level.allows_debug(); let me_allows_debug = telemetry.me_level.allows_debug();
let _ = writeln!( let _ = writeln!(out, "# HELP telemt_build_info Build information for the running telemt binary");
out,
"# HELP telemt_build_info Build information for the running telemt binary"
);
let _ = writeln!(out, "# TYPE telemt_build_info gauge"); let _ = writeln!(out, "# TYPE telemt_build_info gauge");
let _ = writeln!( let _ = writeln!(
out, out,
@ -2940,14 +2937,10 @@ mod tests {
.unwrap() .unwrap()
.contains("telemt_connections_total 3") .contains("telemt_connections_total 3")
); );
assert!( assert!(std::str::from_utf8(body.as_ref()).unwrap().contains(&format!(
std::str::from_utf8(body.as_ref()) "telemt_build_info{{version=\"{}\"}} 1",
.unwrap() env!("CARGO_PKG_VERSION")
.contains(&format!( )));
"telemt_build_info{{version=\"{}\"}} 1",
env!("CARGO_PKG_VERSION")
))
);
config.general.beobachten = true; config.general.beobachten = true;
config.general.beobachten_minutes = 10; config.general.beobachten_minutes = 10;