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

Add retry count metric #178

Merged
merged 3 commits into from
Dec 16, 2022
Merged

Add retry count metric #178

merged 3 commits into from
Dec 16, 2022

Conversation

mosmeh
Copy link
Contributor

@mosmeh mosmeh commented Dec 16, 2022

Motivation

In our use cases, we try to detect repeated failures of task processing by logging when tasks are retried.
However, frequent repeated logs tend to be ignored, so we may not notice repeated processing failures for a long time.
Instead, this PR introduces a retry count metric, which can be used for alerting based on thresholds.

@CLAassistant
Copy link

CLAassistant commented Dec 16, 2022

CLA assistant check
All committers have signed the CLA.

@mosmeh mosmeh force-pushed the retry-count-metric branch from bc8a8ce to 0db74ac Compare December 16, 2022 02:23
@mosmeh mosmeh marked this pull request as ready for review December 16, 2022 02:47
@mosmeh mosmeh force-pushed the retry-count-metric branch from 4e704e7 to edc1b44 Compare December 16, 2022 02:59
Copy link
Contributor

@ocadaruma ocadaruma left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!
The motivation sounds make sense.

Left minor question but overall looks good.

@mosmeh mosmeh requested a review from ocadaruma December 16, 2022 06:18
@ocadaruma ocadaruma merged commit f7febfe into line:master Dec 16, 2022
@ocadaruma ocadaruma added the new feature Add a new feature label Dec 16, 2022
@mosmeh mosmeh deleted the retry-count-metric branch December 16, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants