Skip to content

Conversation

sebastiankirsch
Copy link
Contributor

Fixes #4405 in a general way (has nothing to do with DropWizard).
I think there's a strong case to be made that timers are way more appropriate than gauges for these kinds of metrics. Picking one value out of all the requests that are made within 10s (the default flush interval) is absolutely random for production systems.

I've only written one test, since the permutations would be quite a bunch.
I could imagine extracting a class that is responsible for submitting the metrics, which would ease testing, especially the need to test permutations - but maybe you're still fine with the way it is right now, so I didn' bother for now.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 19, 2017
@philwebb philwebb changed the title Fixes #4405 Produce Dropwizard timer metrics instead of gauges in MetricsFilter Jun 26, 2017
@philwebb philwebb added status: on-hold We can't start working on this issue yet and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 26, 2017
@philwebb
Copy link
Member

Thanks for the PR. We're currently pausing all metrics related work whilst we investigate a new top level Spring Metrics project.

@izeye
Copy link
Contributor

izeye commented Sep 18, 2017

This looks superseded by #9970 as this is for #4405 which has been already superseded.

@snicoll
Copy link
Member

snicoll commented Sep 18, 2017

Indeed, thanks.

@snicoll snicoll closed this Sep 18, 2017
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: on-hold We can't start working on this issue yet labels Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: duplicate A duplicate of another issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants