Skip to content

FEATURE: Add success label to (sidekiq|scheduled)_job_count #137

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Apr 11, 2025

Before this commit, scheduled_job_count represents the total number of
scheduled jobs executed regardless of its execution status while
sidekiq_job_count represents the total number of sidekiq job executed
successfuly only.

In order to allow the error rate for a particular job, we need to be
able to differentiate between successes and failures. This commit
seeks to do so by adding a success label to the sidekiq_job_count
and scheduled_job_count counters.

Requires discourse/discourse#32307

@tgxworld tgxworld force-pushed the implement_sidekiq_job_error_count branch from 6fa8460 to e0db1b3 Compare April 15, 2025 08:52
Before this commit, `scheduled_job_count` represents the total number of
scheduled jobs executed regardless of its execution status while
`sidekiq_job_count` represents the total number of sidekiq job executed
successfuly only.

In order to allow the error rate for a particular job, we need to be
able to differentiate between successes and failures. This commit
seeks to do so by adding a `success` label to the `sidekiq_job_count`
and `scheduled_job_count` counters.
@tgxworld tgxworld force-pushed the implement_sidekiq_job_error_count branch from e0db1b3 to 1bc8099 Compare April 17, 2025 07:40
@tgxworld tgxworld changed the title FEATURE: Add sidekiq_job_error_count counter metric FEATURE: Add success label to (sidekiq|scheduled)_job_count Apr 17, 2025
@tgxworld tgxworld merged commit e1eeb65 into main Apr 17, 2025
4 checks passed
@tgxworld tgxworld deleted the implement_sidekiq_job_error_count branch April 17, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants