Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(job-processor): report attempts metrics (#448)
## What ❔ Every component implementing JobProcessor now exposes two metrics: `job_attempts` -- heatmaps in grafana will be added displaying this metric. `max_attempts_reached` -- alert will fire when this metric is increased (alert rules not added yet). Also, `attempts` columns in DB were increased in both `get_next*` methods and `requeue_stuck_jobs`, so it was basically `attempts += 2` on retry. I removed `attempts` update in `requeue_stuck_jobs`. ## Why ❔ Better monitoring and alerting ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`.
- Loading branch information