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

PmfStat: do not accumulate values forever #20

Open
gjcarneiro opened this issue Oct 30, 2013 · 1 comment
Open

PmfStat: do not accumulate values forever #20

gjcarneiro opened this issue Oct 30, 2013 · 1 comment

Comments

@gjcarneiro
Copy link

Hi, I love this Scales module, it's been very useful. However, one thing that bothers me is this PmfStat. Suppose I am measuring the login delays on a web site. If I leave the web server running for a week, the pmf stats reported to graphite are a combination of the current login delays but also taking into account all the login delays over the entire week. This means that, if there is an anomaly, and login times shoot up to become 10 times bigger, this change will hardly even be noticed in the mean value reported by PmfStat.

If I am sending data every minute to graphite I would like this data to represent only the last minute interval, not days or weeks of accumulated data. I am not sure how to achieve this with Scales.

@gjcarneiro
Copy link
Author

I misread scales. Apparently it has an array of 1028 samples, and new samples overwrite previous samples in this array. So, in a way old values end up being forgotten.

Still, this is not ideal. Why 1028? In my case 1028 is too much. It should really be a sliding window, with time based cutoff.

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

1 participant