Skip to content

util/metric: make Rate into a real metric #37248

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

Merged
merged 1 commit into from
May 2, 2019

Conversation

ajwerner
Copy link
Contributor

@ajwerner ajwerner commented May 1, 2019

The metric package had a Rate type to track an exponential weighted moving
average for a Rate but it was unclear how a caller would use it as a metric
in a metric struct. This PR makes that Rate type into a real metric in
anticipation of using it to track throughputs.

Release note: None

@ajwerner ajwerner requested a review from a team May 1, 2019 18:32
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The metric package had a Rate type to track an exponential weighted moving
average for a Rate but it was unclear how a caller would use it as a metric
in a metric struct. This PR makes that Rate type into a real metric in
anticipation of using it to track throughputs.

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/rate-metric branch from 04f6be2 to 68f0bb7 Compare May 1, 2019 18:58
@ajwerner ajwerner requested a review from nvanbenschoten May 1, 2019 18:58
Copy link
Contributor

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@ajwerner
Copy link
Contributor Author

ajwerner commented May 2, 2019

bors r+

craig bot pushed a commit that referenced this pull request May 2, 2019
37248: util/metric: make Rate into a real metric r=ajwerner a=ajwerner

The metric package had a Rate type to track an exponential weighted moving
average for a Rate but it was unclear how a caller would use it as a metric
in a metric struct. This PR makes that Rate type into a real metric in
anticipation of using it to track throughputs.

Release note: None

Co-authored-by: Andrew Werner <[email protected]>
@craig
Copy link
Contributor

craig bot commented May 2, 2019

Build succeeded

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