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

Fix metrics when a tenant TSDB is closed because idle #3646

Merged

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Jan 5, 2021

What this PR does:
We recently introduced a feature to close idle TSDBs ingester. Today, we realised that we were not correctly updating cortex_ingester_memory_users and cortex_ingester_active_series metrics when a tenant's TSDB is closed because idle. This PR should fix it.

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@pstibrany pstibrany force-pushed the fix-metrics-on-close-idle-tsdb branch from 1f1bc49 to 07b88d0 Compare January 6, 2021 07:57
@pstibrany pstibrany merged commit a034e2e into cortexproject:master Jan 6, 2021
@pracucci pracucci deleted the fix-metrics-on-close-idle-tsdb branch January 7, 2021 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants