[PR #33] Adding metrics #34

Open
opened 2026-10-13 21:12:40 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-exporter/pull/33
Author: @ImmLupus
Created: 10/26/2025
Status: 🔄 Open

Base: main ← Head: adding_metrics


📝 Commits (2)

  • 7053b3d Enhance peer traffic tracking and metrics reporting
  • b9a524a Add new metrics for absolute monthly active users and peer traffic

📊 Changes

2 files changed (+77 additions, -11 deletions)

View changed files

📝 README.md (+5 -0)
📝 exporter.py (+72 -11)

📄 Description

Enhance peer traffic tracking and metrics reporting

  • Updated update_peer method to include bytes sent and received for each peer.
  • Modified recalculate method to aggregate total bytes sent and received.
  • Adjusted set_metric to handle new peer-specific metrics.
  • Enhanced AwgShowWrapper to parse traffic data from peer information.
  • Added new metrics for total bytes sent and received by all peers.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-exporter/pull/33 **Author:** [@ImmLupus](https://github.com/ImmLupus) **Created:** 10/26/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `adding_metrics` --- ### 📝 Commits (2) - [`7053b3d`](https://github.com/amnezia-vpn/amneziawg-exporter/commit/7053b3df728775ccf0a017a48b4995f73ad82b6e) Enhance peer traffic tracking and metrics reporting - [`b9a524a`](https://github.com/amnezia-vpn/amneziawg-exporter/commit/b9a524a12cf98f918a255689bbe88e81fc99598d) Add new metrics for absolute monthly active users and peer traffic ### 📊 Changes **2 files changed** (+77 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+5 -0) 📝 `exporter.py` (+72 -11) </details> ### 📄 Description Enhance peer traffic tracking and metrics reporting - Updated `update_peer` method to include bytes sent and received for each peer. - Modified `recalculate` method to aggregate total bytes sent and received. - Adjusted `set_metric` to handle new peer-specific metrics. - Enhanced `AwgShowWrapper` to parse traffic data from peer information. - Added new metrics for total bytes sent and received by all peers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
minor
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-exporter#34
No description provided.