Skip to content

Conversation

damnever
Copy link
Contributor

@damnever damnever commented Dec 18, 2023

What this PR does:
Currently, there are no metrics that include rate-limited samples. I am considering counting the number of rate-limited samples in distributor_samples_in_total. Alternatively, we could add a separate metric.

Which issue(s) this PR fixes:

Checklist

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

@yeya24
Copy link
Contributor

yeya24 commented Jan 25, 2024

@danielblando @wenxu1024 Can you guys help review this pr?

@yeya24
Copy link
Contributor

yeya24 commented Jan 28, 2024

Hi @damnever, for your usecase, do you need to differentiate how many samples are rate-limited?

It is probably fine to add those samples to be counted in distributor_samples_in_total as it says to count The total number of samples that have come in to the distributor, including rejected or deduped samples.

I am unsure why current implementation doesn't count those rate limited samples though

@wenxu1024
Copy link
Contributor

LGTM

@damnever
Copy link
Contributor Author

@yeya24 distributor_samples_in_total works fine for me as it gives me a sense of the total number of samples.

Signed-off-by: Xiaochao Dong (@damnever) <[email protected]>
Copy link
Contributor

@danielblando danielblando left a comment

Choose a reason for hiding this comment

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

LGTM.

@yeya24 yeya24 merged commit 7d79cf0 into cortexproject:master Jan 30, 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.

4 participants