Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.39k stars 1.36k forks source link

Data Usage Display Incorrect #1894

Open ph0b14 opened 3 years ago

ph0b14 commented 3 years ago

Hello,

I'm using Outline for 4 months now. I wonder why Outline Manager displays the data usage of the previous 30 days. So, it does not synchronize with the actual data usage from the server-side. There is no problem if the (server) provider can display the data usage like Vultr. But, DigitalOcean cannot provide the actual data usage per month from the droplets. So, it is hard to tell which Outline server has used which amount of data in a certain month. Is there a way to reset data usage in the Outline Manager? If so, I can reset it on the first day of every month, and thus, it could match with the actual usage with Droplets (Servers). You can view the following photos as examples. The server says only 0.29GB of 1000GB is used for this month but Outline Manager is still showing the usage of the previous 30 days which doesn't match with actual usage from the server. It's hard to view the actual data usage when it comes to DigitalOcean Droplets.

Screen Shot 2021-05-01 at 12 12 17 pm Screen Shot 2021-05-01 at 12 13 51 pm
JonathanDCohen commented 3 years ago

There's no way to reset the usage in the manager.

Data usage is measured from Prometheus by adding the individual transfer amounts from each access key. I'll take a look into how this may be happening, thanks for the report!

JonathanDCohen commented 3 years ago

It looks like you sent this right around the beginning of the month. It might be the case that what you're seeing is that Outline tracks usage over 30 days whereas vultr bills per month.

Separately, Outline Manager will overestimate for Vultr anyways since Vultr uses max(incoming, outgoing) as opposed to other cloud providers which use the total network traffic.