Skip to content

Add pickup and duration time metrics for processed jobs#4312

Merged
johha merged 6 commits intomainfrom
job-latency-metrics
Apr 25, 2025
Merged

Add pickup and duration time metrics for processed jobs#4312
johha merged 6 commits intomainfrom
job-latency-metrics

Conversation

@johha
Copy link
Copy Markdown
Contributor

@johha johha commented Apr 16, 2025

This change adds a new delayed job plugin which generates the following metrics after a cc-worker processed a job.

  • cc_job_pickup_delay_seconds: the difference of run_at and locked_at
  • cc_job_duration_seconds: Time difference of locked_at and current time.

Both metrics are labeled with the name of the worker and the queue of the job to allow further aggregation etc.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@johha johha force-pushed the job-latency-metrics branch 3 times, most recently from 9668b40 to 6a6bb42 Compare April 17, 2025 09:01
This change adds a new delayed job plugin which generates the following
metrics after a cc-worker processed a job.
- cc_job_pickup_delay_seconds: the difference of `run_at` and `locked_at`
- cc_job_duration_seconds: Time difference of `locked_at` and current time.

Both metrics are labeled with the name of the worker and the queue of the job to allow further aggregation etc.
@johha johha force-pushed the job-latency-metrics branch 2 times, most recently from 919d9a4 to 1523372 Compare April 17, 2025 11:06
@johha johha force-pushed the job-latency-metrics branch from 1523372 to cf47949 Compare April 17, 2025 13:40
@johha johha force-pushed the job-latency-metrics branch from 06e47a5 to 92ca505 Compare April 24, 2025 09:37
@johha johha force-pushed the job-latency-metrics branch from 92ca505 to aece723 Compare April 24, 2025 09:42
@johha johha merged commit 7fd67a1 into main Apr 25, 2025
8 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Apr 25, 2025
Changes in cloud_controller_ng:

- Add pickup and duration time metrics for processed jobs
    PR: cloudfoundry/cloud_controller_ng#4312
    Author: Johannes Haass <johannes.haass@sap.com>
@moleske moleske deleted the job-latency-metrics branch April 25, 2025 19:33
johha added a commit to sap-contributions/docs-running-cf that referenced this pull request Jun 13, 2025
@johha
Copy link
Copy Markdown
Contributor Author

johha commented Jun 13, 2025

Docs PR: cloudfoundry/docs-running-cf#137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants