-
Notifications
You must be signed in to change notification settings - Fork 816
Fix ingester_memory_series/users metrics for TSDB storage #1982
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
Fix ingester_memory_series/users metrics for TSDB storage #1982
Conversation
307a4bc
to
0648256
Compare
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.
Nice! So we actually can get number of series from TSDB! I missed that.
* Update queriedSeries and queriedSamples metrics in v2Query. Signed-off-by: Peter Štibraný <[email protected]> * Increment number of users when creating new TSDB. Signed-off-by: Peter Štibraný <[email protected]> * Use length of slices to update metrics. Signed-off-by: Peter Štibraný <[email protected]> * Update CHANGELOG.md Signed-off-by: Peter Štibraný <[email protected]> * Removed memUsers.Inc() in favor of PR #1982. Signed-off-by: Peter Štibraný <[email protected]> * Removed mention of cortex_ingester_memory_users from CHANGELOG.md Signed-off-by: Peter Štibraný <[email protected]> * One more small fix to CHANGELOG.md. Signed-off-by: Peter Štibraný <[email protected]>
0648256
to
bfeb4be
Compare
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.
Nice! LGTM
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
bfeb4be
to
b2569e0
Compare
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.
LGTM
What this PR does:
In this PR I've implemented the following two metrics for TSDB storage:
cortex_ingester_memory_series
cortex_ingester_memory_users
I've also moved the 4 metrics globally registered in
user_state.go
to theingesterMetrics
struct to ease testing.This PR complements #1981 by @pstibrany.
Which issue(s) this PR fixes:
N/A
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]