Fix: Add trailing newline to Prometheus metrics output (#2573)
Fix prometheus metrics
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user