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

make loki_ingester_memory_streams Gauge per tenant. #2019

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

slim-bean
Copy link
Collaborator

We currently approximate this by subtracting loki_ingester_streams_created_total-loki_ingester_streams_removed_total (which have a tenanat label) however you can only do this if you don't use a rate, and if you don't use a rate you don't handle counter resets properly.
Separately the rate of streams created vs streams removed is useful to track churn per tenant, but it would be good to have a per tenant way of tracking active streams

Signed-off-by: Ed Welch edward.welch@grafana.com

Signed-off-by: Ed Welch <edward.welch@grafana.com>
Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

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

LGTM

@slim-bean slim-bean merged commit 872a998 into master Apr 30, 2020
@slim-bean slim-bean deleted the memory_streams_per_tenant branch April 30, 2020 13:00
slim-bean added a commit that referenced this pull request Apr 30, 2020
Signed-off-by: Ed Welch <edward.welch@grafana.com>
(cherry picked from commit 872a998)
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