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

metrics/librato: fix incorrect calculation of sumSquares #29621

Closed
wants to merge 2 commits into from

Conversation

AaronChen0
Copy link
Contributor

@AaronChen0 AaronChen0 commented Apr 23, 2024

According to the wikipedia link, https://en.wikipedia.org/wiki/Standard_deviation#Rapid_calculation_methods

sumSquares := math.Pow(count*stDev, 2) + sumSquared/count

should be

sumSquares := (math.Pow(count*stDev, 2) + sumSquared)/count

@holiman
Copy link
Contributor

holiman commented Apr 23, 2024

log.Printf("WARNING: This client has been DEPRECATED! It has been moved to https://github.com/mihasya/go-metrics-librato and will be removed from rcrowley/go-metrics on August 5th 2015")

Heh, this code was deprecated before we vendored it. Perhaps we should just nuke this file ?

@AaronChen0
Copy link
Contributor Author

AaronChen0 commented Apr 23, 2024

You mean delete all files related to librato and edit README, right?

@karalabe
Copy link
Member

Myeah, we have Influx and Prometheus and that's already a huge pain due to incompatible feature sets. We really don't want yet another mertics reporting endpoint. I'd even venture to say we should remove expvar from Go's debug server.

@AaronChen0
Copy link
Contributor Author

I make a PR #29624 to remove librato. Please take a look.

@AaronChen0 AaronChen0 closed this Apr 23, 2024
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

Successfully merging this pull request may close these issues.

3 participants