Skip to content

Expose number of entries in refcache as a metric. #3135

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

Closed
wants to merge 1 commit into from
Closed

Expose number of entries in refcache as a metric. #3135

wants to merge 1 commit into from

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Sep 4, 2020

What this PR does: Blocks-ingester uses RefCache to remember "ref" for each pushed series. RefCache is purged periodically (every 5 minutes, hardcoded), and removes series that were not used in last 10 minutes (hardcoded too). This means that number entries in the refcache roughly corresponds to active series for a user.

This PR exposes number of entries in refcache as a per-user metric.

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>
@pstibrany
Copy link
Contributor Author

Closing in favor of #3153.

@pstibrany pstibrany closed this Sep 10, 2020
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.

1 participant