Fix prometheus export syntax
This commit is contained in:
parent
48dcaa93e8
commit
698f36518d
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user