-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix statsd scale for duration based metrics #6054
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
Conversation
This comment has been minimized.
This comment has been minimized.
b4c5a60 to
2e07980
Compare
2e07980 to
02bfa0e
Compare
164697f to
2f84900
Compare
mpl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you forgot to fix something related in the tests: SimpleSuite.TestMetricsPrometheusDefaultEntryPoint is panicking, according to Travis CI.
ldez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
jbdoumenjou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
5115ede to
5d8bcb0
Compare
What does this PR do?
Fixes #5944
Motivation
StatsD assumes that duration based metric values are in Milliseconds.
Currently Traefik always calls the
Observefunction converting thetime.Durationto seconds. With this change we can set the scale in the metric provider implementation, on statsD case Milliseconds, while keeping the current value as the default for those that don't specify it.More
Added/updated documentationAdditional Notes