-
Notifications
You must be signed in to change notification settings - Fork 218
feat: now possible to only output non-resource related metrics #1823
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
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
4e5794f
feat: bounded cache for informers (#1718)
csviri 6c5fafa
fix: typo caffein -> caffeine (#1795)
metacosm 0ae01d1
feat: now possible to only output non-resource related metrics
metacosm f761dbc
refactor: extract abstract test fixture to add tests with variations
metacosm 0d75b87
fix: add missing annotation
metacosm 805fbe0
tests: add more test variations
metacosm 76d25f9
fix: make operator non-static so it's registered once per test subclass
metacosm dd2d360
feat: introduce builder for MicrometerMetrics, fix test
metacosm 57cf246
fix: exclude more tags when not collecting per resource
metacosm b51ea84
fix: registry should be per-instance to ensure test independence
metacosm 9b14151
fix: make sure we wait a little to ensure event is properly processed
metacosm 54ddeec
fix: make things work on Java 11, format
metacosm feb8b06
fix: also clean metrics on finalizer removal
metacosm edc9530
fix: format
metacosm 6d14663
refactor: extract common tags
metacosm 916d849
feat: make per-resource collecting finer-grained
metacosm bc5b5f4
fix: do not create tag for group if not present
metacosm 445c891
fix: remove unreliable no-delay implementation, defaulting to 1s delay
metacosm 7565e1b
refactor: renamed & documented factory methods to make things clearer
metacosm e22dc75
docs: updated metrics section for code changes
metacosm 9c8d77e
feat: avoid emitting tag on empty value
metacosm 2624f7b
docs: update
metacosm 3fd613e
fix: format
metacosm ee88028
refactor: use Tag more directly, avoid unneeded work, use constants
metacosm 40441f0
fix: change will happen instead of might
metacosm 3bf2045
docs: add missing timer
metacosm 70462a8
docs: fix wrong & missing information
metacosm 4505761
refactor: add constants
metacosm 31d1326
fix: wording
metacosm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't builder pattern be consistent so we have only one entry point to the configuration ?
MicrometerMetrics.builder()
and then be self documented with javadoc. By default, the builder is not configuring per resource and you can switch to the per resource builder if needed.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.
Having several entry points allows to provide often used configurations without users having to create them with the builder. It also allows to have stable API calls since these factory method implementations can be changed if we change the default behavior while the semantics of the method won't so I'd be in favor of keeping things like they are for now.