1
0

Fix prometheus export syntax

This commit is contained in:
clerie 2023-01-02 19:05:16 +01:00
parent 48dcaa93e8
commit 698f36518d

View File

@ -78,6 +78,6 @@ async fn metrics() -> Response {
(
StatusCode::OK,
format!("nixos_nixos_current_system_hash{{hash=\"{}\"}}\nnixos_current_system_name{{name=\"{}\"}}", hash, name)
format!("nixos_nixos_current_system_hash{{hash=\"{}\"}} 1\nnixos_current_system_name{{name=\"{}\"}} 1\n", hash, name)
).into_response()
}