Browse Source

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

Fix prometheus metrics
pull/2597/head
Evgeniy 1 month ago
committed by GitHub
parent
commit
be8d24e492
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/server/routes/metrics/prometheus.get.ts

1
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');

Loading…
Cancel
Save