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

Add method to SimpleMeterRegistry for outputting all meters #2946

Conversation

jonatan-ivanov
Copy link
Member

@jonatan-ivanov jonatan-ivanov commented Jan 7, 2022

You can see the output in the test, it should look like this:

answers.count(COUNTER)[correct='true'] 2.0
answers.count(COUNTER)[correct='false'] 1.0
cache.latency.count.seconds(TIMER)[] 5.0
cache.latency.total_time.seconds(TIMER)[] 0.1
cache.miss.count(COUNTER)[] 42.0
custom.meter.value(OTHER)[] 42.0
custom.meter.unknown(OTHER)[] 21.0
handler.active_tasks.seconds(LONG_TASK_TIMER)[] 1.0
handler.duration.seconds(LONG_TASK_TIMER)[] 3.0
latency.count.seconds(TIMER)[method='GET', service='test', uri='/api/people'] 10.0
latency.total_time.seconds(TIMER)[method='GET', service='test', uri='/api/people'] 0.29
latency.max.seconds(TIMER)[method='GET', service='test', uri='/api/people'] 0.038
processing.time.value.seconds(GAUGE)[] 0.3
request.size.count.bytes(DISTRIBUTION_SUMMARY)[] 10.0
request.size.total.bytes(DISTRIBUTION_SUMMARY)[] 1450.0
request.size.max.bytes(DISTRIBUTION_SUMMARY)[] 190.0
temperature.value.celsius(GAUGE)[] 24.0

@shakuzen shakuzen added enhancement A general enhancement module: micrometer-core An issue that is related to our core module labels Jan 7, 2022
@shakuzen shakuzen added this to the 1.9.0-M2 milestone Jan 7, 2022
@shakuzen shakuzen changed the title Add simple toString implementation to SimpleMeterRegistry Add method to SimpleMeterRegistry for outputting all meters Jan 7, 2022
@jonatan-ivanov jonatan-ivanov merged commit fe5bfeb into micrometer-metrics:main Jan 7, 2022
@jonatan-ivanov jonatan-ivanov deleted the simplemeterregistry-tostring branch January 7, 2022 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general enhancement module: micrometer-core An issue that is related to our core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants