New Feature: Detailed Traffic History Graphs for Each Peer #49
Replies: 5 comments 9 replies
-
That's great news. |
Beta Was this translation helpful? Give feedback.
-
Hello @xgusto, it's not included in the main peer list. Click to edit the peer, and the graph will appear. It may take between 10 and 15 minutes for valid information to be displayed on the graphs. This delay is due to how rrdtool works, along with a specific setting designed to prevent graph spikes under certain conditions. I should also note that rrdtool is an extremely robust tool; in the past, I even implemented a traffic billing solution for a vSat ISP's clients using Cacti, rrdtool, and a series of bash scripts. I plan to create dynamic graphs for the peer list in the coming days. Additionally, I need to develop a dedicated peer detail view instead of going straight into edit mode. There's still a lot of work to be done. Cheers! |
Beta Was this translation helpful? Give feedback.
-
@xgusto I could draw the rrd graphs on the peer list, but, I believe that it may have some impact on bigger installations where the peer list is way longer. My idea for the peer list, is to use the same js routine that update the "transfer" information, to feed a small chartjs graph on each peer. This graph would be always empty on the page load, but will receive a new data point every X seconds (defined on the web refresh interval setting). The default is 20 seconds. I'm also looking for extra help to improve wireguard_webadmin. 😉 Cheers! |
Beta Was this translation helpful? Give feedback.
-
I'd love to help, but I'm not a developer. |
Beta Was this translation helpful? Give feedback.
-
Hi, i tried tu update as follows: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I’m excited to announce a new feature in wireguard_webadmin that allows you to view comprehensive traffic history graphs for each individual peer. This enhancement uses rrdtool to store traffic data in a lightweight and efficient manner—without the need for any additional complex services.
What’s New
Traffic Graphs per Peer:
Each peer now has its own traffic history graph displaying detailed statistics over time.
Efficient Data Storage with rrdtool:
I chose rrdtool for its ability to efficiently archive time-series data, ensuring optimal performance even with extensive historical data.
Traffic Data Collection:
Traffic is collected at 5-minute intervals, providing a good level of granularity for monitoring usage trends.
Initial Data Availability:
New graphs might take up to 15 minutes to display relevant data for the first time.
Interface Traffic Computation:
I’m also computing the total traffic for each instance’s interface, although this data isn’t displayed in the UI yet.
Upgrade Notes
Update docker-compose.yml:
Before upgrading, please update your
docker-compose.yml
file as indicated in the upgrade instructions.Configure TIMEZONE:
It’s highly recommended to edit the
.env
file and set theTIMEZONE
variable correctly (see.env.example
for guidance).Follow Upgrade Instructions:
Please refer to the [upgrade instructions] in the README to ensure a smooth transition.
I’m eager to hear your feedback on this new functionality.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions