Fix: Add trailing newline to Prometheus metrics output (#2573)

Fix prometheus metrics
This commit is contained in:
Evgeniy
2026-04-27 09:30:03 +03:00
committed by GitHub
parent 9682dedea7
commit be8d24e492
@@ -62,6 +62,7 @@ async function getPrometheusResponse() {
'# HELP wireguard_latest_handshake_seconds UNIX timestamp seconds of the last handshake', '# HELP wireguard_latest_handshake_seconds UNIX timestamp seconds of the last handshake',
'# TYPE wireguard_latest_handshake_seconds gauge', '# TYPE wireguard_latest_handshake_seconds gauge',
`${wireguardLatestHandshakeSeconds.join('\n')}`, `${wireguardLatestHandshakeSeconds.join('\n')}`,
'',
]; ];
return returnText.join('\n'); return returnText.join('\n');