Browse Source
Fix: Add trailing newline to Prometheus metrics output (#2573)
Fix prometheus metrics
pull/2597/head
Evgeniy
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/server/routes/metrics/prometheus.get.ts
|
|
|
@ -62,6 +62,7 @@ async function getPrometheusResponse() { |
|
|
|
'# HELP wireguard_latest_handshake_seconds UNIX timestamp seconds of the last handshake', |
|
|
|
'# TYPE wireguard_latest_handshake_seconds gauge', |
|
|
|
`${wireguardLatestHandshakeSeconds.join('\n')}`, |
|
|
|
'', |
|
|
|
]; |
|
|
|
|
|
|
|
return returnText.join('\n'); |
|
|
|
|