thebigpotatoe
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
2 deletions
-
src/server/routes/metrics/prometheus.get.ts
|
|
@ -39,8 +39,6 @@ async function getPrometheusResponse() { |
|
|
const id = `interface="${wgInterface.name}"`; |
|
|
const id = `interface="${wgInterface.name}"`; |
|
|
|
|
|
|
|
|
const returnText = [ |
|
|
const returnText = [ |
|
|
'# HELP wg-easy and wireguard metrics', |
|
|
|
|
|
'', |
|
|
|
|
|
'# HELP wireguard_configured_peers', |
|
|
'# HELP wireguard_configured_peers', |
|
|
'# TYPE wireguard_configured_peers gauge', |
|
|
'# TYPE wireguard_configured_peers gauge', |
|
|
`wireguard_configured_peers{${id}} ${wireguardPeerCount}`, |
|
|
`wireguard_configured_peers{${id}} ${wireguardPeerCount}`, |
|
|
|