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
Switch pkg/ingester to promauto.With(reg) #2299
Switch pkg/ingester to promauto.With(reg) #2299
Conversation
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.
Not much familiar with the integration code yet, but other parts LGTM
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.
Looks good to me, thanks for doing this cleanup.
44d7a54
to
366f2be
Compare
Can you clarify this? Just curious as I didn't find anything obviously off when I glanced through the code. Is this about the integration tests or something about the WAL metrics themselves? |
@gouthamve I haven't been clear, sorry. My comment is about the change I did to pass the metric instances to some functions ( |
9a9594f
to
0b672f0
Compare
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
…total metric Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
0b672f0
to
50694d1
Compare
What this PR does:
Following the work related to #2204 to get rid of global metrics and registerer, in this PR I've migrated
pkg/ingester
metrics topromauto.With(registerer)
.Few notes:
pkg/ingester/client
which I will address in a separate PRmemorySeries
. The problem is that the initial design doesn't look much clean in regards of global variables and I had to deal with that in order to keep the changeset small (but I admit there's much room for improvement design-wise there)Which issue(s) this PR fixes:
N/A
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]