-
Notifications
You must be signed in to change notification settings - Fork 820
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ý <peter.stibrany@grafana.com> * Increment number of users when creating new TSDB. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Use length of slices to update metrics. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Update CHANGELOG.md Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Removed memUsers.Inc() in favor of PR #1982. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Removed mention of cortex_ingester_memory_users from CHANGELOG.md Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * One more small fix to CHANGELOG.md. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
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 <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
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]