Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: wireguard metrics #5278

Merged
merged 7 commits into from
Dec 19, 2024
Merged

feature: wireguard metrics #5278

merged 7 commits into from
Dec 19, 2024

Conversation

jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Dec 17, 2024

with this PR on each peer controller update the following global metrics information are also updated:

  • total bytes tx
  • total bytes rx
  • current active peers
  • total peers registered

the former two are exposed with REST endpoints /api/v1/metrics/wireguard-stats, while the rest will be accessible via prometheus (soon ™️ ). the wireguard stats are also logged to the console (assuming they're non-zero)


This change is Reviewable

@jstuczyn jstuczyn added this to the Hu milestone Dec 17, 2024
@jstuczyn jstuczyn requested a review from octol December 17, 2024 18:46
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-nextra ⬜️ Ignored (Inspect) Visit Preview Dec 17, 2024 6:53pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Dec 17, 2024 6:53pm

@jstuczyn jstuczyn merged commit 67976b1 into develop Dec 19, 2024
19 checks passed
@jstuczyn jstuczyn deleted the feature/wg-metrics branch December 19, 2024 10:49
jstuczyn added a commit that referenced this pull request Jan 7, 2025
* experimental log

* introduce wireguard metrics updates

* add wireguard traffic rates to console logger

* missing import

* changed order of displayed values

* expose bytes information via rest endpoint

* clippy
@tommyv1987 tommyv1987 modified the milestones: Hu, Reeses Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants