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

compactor" track number of times table compactions were skipped consecutively #11604

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
Earlier we had a counter for the number of times tables were skipped by compaction due to them being locked by retention. Counter makes it hard to reliably write an alert without making it noisy. I am changing the counter to gauge which would count the number of times tables were consecutively skipped by compaction. This would make it easier to write alerts.

Checklist

  • Tests updated

@sandeepsukhani sandeepsukhani requested a review from a team as a code owner January 8, 2024 09:38
Copy link
Contributor

github-actions bot commented Jan 8, 2024

Trivy scan found the following vulnerabilities:

  • HIGH, Target: docker.io/grafana/loki:main-cd3cf62 (alpine 3.18.4), Type: alpine openssl: Incorrect cipher key and IV length processing in libcrypto3 v3.1.3-r0. Fixed in v3.1.4-r0
  • HIGH, Target: docker.io/grafana/loki:main-cd3cf62 (alpine 3.18.4), Type: alpine openssl: Incorrect cipher key and IV length processing in libssl3 v3.1.3-r0. Fixed in v3.1.4-r0
    \nTo see more details on these vulnerabilities, and how/where to fix them, please run docker build -t grafana/loki:main-cd3cf62 -f cmd/loki/Dockerfile .
    trivy i grafana/loki:main-cd3cf62 on your branch. If these were not introduced by your PR, please considering fixing them in via a subsequent PR. Thanks!

Copy link
Contributor

@ashwanthgoli ashwanthgoli left a comment

Choose a reason for hiding this comment

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

lgtm. minor naming suggestion

@sandeepsukhani sandeepsukhani enabled auto-merge (squash) January 8, 2024 10:10
@sandeepsukhani sandeepsukhani merged commit 3a7940a into grafana:main Jan 8, 2024
7 checks passed
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…cutively (grafana#11604)

**What this PR does / why we need it**:
Earlier we had a counter for the number of times tables were skipped by
compaction due to them being locked by retention. Counter makes it hard
to reliably write an alert without making it noisy. I am changing the
counter to gauge which would count the number of times tables were
consecutively skipped by compaction. This would make it easier to write
alerts.

**Checklist**
- [x] Tests updated

---------

Co-authored-by: Ashwanth <[email protected]>
JoaoBraveCoding added a commit to JoaoBraveCoding/loki that referenced this pull request Oct 25, 2024
JoaoBraveCoding added a commit to JoaoBraveCoding/loki that referenced this pull request Oct 25, 2024
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