Skip to content

Cleanup metrics exported by distributor for inactive tenants #3784

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 7 commits into from
Feb 5, 2021
Merged

Cleanup metrics exported by distributor for inactive tenants #3784

merged 7 commits into from
Feb 5, 2021

Conversation

pstibrany
Copy link
Contributor

What this PR does: This PR adds tracking of active tenants to distributor. Inactive tenants will have their metrics unexported by distributor. Inactivity limit is currently hardcoded to 15 mins.

(I plan to use same technique in querier and query-frontend, but that will be separate PR)

Checklist

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

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@pstibrany
Copy link
Contributor Author

Thanks for review @pracucci. I've addressed your feedback, please take a look again.

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

I think HA tracker metrics cleanup is still missing.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Feb 5, 2021
@pstibrany
Copy link
Contributor Author

I think HA tracker metrics cleanup is still missing.

You are correct. It should be fixed now. Thanks!

Copy link
Contributor

@pracucci pracucci 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!

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.

2 participants