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

Statistics Period configuration #24

Open
bengivre opened this issue Aug 12, 2021 · 3 comments
Open

Statistics Period configuration #24

bengivre opened this issue Aug 12, 2021 · 3 comments

Comments

@bengivre
Copy link

Hello ,

just wondering if there is a way to configure the time frame when visualizing the statistics or to adjust the Timezone of selection in config file or code?

The zmta-webadmin interface counter get reset a some point during the evening (i'm in Canada, EST time )
I would like to know if that is something i can adjust or if those information are cleared from zmta itself ?

So I can have statistics from a full day (24H) on my timezone.

Or maybe, working on a way to keep those data longer (somewhere in the BD ?) and have a way to pick a time-frame like :

  • last hour
  • last 6 hours
  • last 12 hours
  • last 24 hours
  • last xxx days

Thanks!

@andris9
Copy link
Member

andris9 commented Aug 12, 2021

Currently webadmin uses daily "buckets" where day is UTC based. For more detailed numbers at least hourly buckets would be needed. It would work in a way where you always increment the counter of current hour and when you need the stats you calculate the buckets you would need data from, fetch the counters from these buckets and then add the values together to get the final number. Current implementation does not support it though.

@bengivre
Copy link
Author

Thanks @andris9 for the detail.
Does webadmin pull the data from zone-mta into his own "buckets" or zone-mta push it to webadmin ?

@andris9
Copy link
Member

andris9 commented Aug 12, 2021

Counters are updated here and retrieved here. "Bucket" key is year + '/' + month + '/' + day

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

No branches or pull requests

2 participants