-
Notifications
You must be signed in to change notification settings - Fork 142
fix(engine): update metrics to prometheus #3757
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
fix(engine): update metrics to prometheus #3757
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Merge activity
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code ReviewSummaryThis PR updates metrics to use Prometheus conventions properly by migrating from OpenTelemetry-style metrics to native Prometheus metric types. Changes Reviewed1. gasoline/metrics.rs - New FIND_WORKFLOWS_BATCH_DURATION metric✅ Good: Added a new Histogram metric without labels for batch workflow finding operations. 2. gasoline/db/kv/mod.rs - Metric usage update✅ Good: Migrated from OpenTelemetry's .record() with KeyValue to Prometheus's .observe(). Note: The old code had workflow_name: batch as a label, which wasn't particularly useful for cardinality. The new approach of using a separate metric without labels is cleaner. 3. pegboard/ops/runner/drain.rs - Metric usage update✅ Good: Migrated from OpenTelemetry's .add() with KeyValue array to Prometheus's .with_label_values() + .inc_by(). Overall Assessment✅ Code Quality: Clean migration following Prometheus conventions Minor Observations
VerdictLGTM ✅ - This is a straightforward metrics migration that correctly updates the API calls to match Prometheus conventions. The changes are minimal, focused, and maintain the same observability capabilities. |

No description provided.