mirror of https://github.com/telemt/telemt.git
Compare commits
2 Commits
b5d4d5f9f1
...
799f0839ac
| Author | SHA1 | Date |
|---|---|---|
|
|
799f0839ac | |
|
|
9b64d2ee17 |
|
|
@ -234,7 +234,10 @@ 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!(out, "# HELP telemt_build_info Build information for the running telemt binary");
|
let _ = writeln!(
|
||||||
|
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,
|
||||||
|
|
@ -2937,10 +2940,14 @@ mod tests {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.contains("telemt_connections_total 3")
|
.contains("telemt_connections_total 3")
|
||||||
);
|
);
|
||||||
assert!(std::str::from_utf8(body.as_ref()).unwrap().contains(&format!(
|
assert!(
|
||||||
"telemt_build_info{{version=\"{}\"}} 1",
|
std::str::from_utf8(body.as_ref())
|
||||||
env!("CARGO_PKG_VERSION")
|
.unwrap()
|
||||||
)));
|
.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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue