Repository navigation
chore: drop quantiles from user transform summaries - #5767
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5767 +/- ##
========================================
Coverage 92.44% 92.44%
========================================
Files 741 741
Lines 41119 41121 +2
Branches 9675 9590 -85
========================================
+ Hits 38013 38015 +2
- Misses 2845 2923 +78
+ Partials 261 183 -78 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the targeted changes to per-transformation quantile exports.
No open issues 🎉
What changed in this PR
Reduces monitoring series volume by disabling quantile exports for three per-transformation summaries while retaining _sum and _count for averages and alerts.
Changes:
- Sets
percentiles: []for batch size, function latency, and used heap size summaries. - Leaves request latency quantiles unchanged for the Global Transformer Latency dashboard.
| File | Description |
|---|---|
src/util/prometheus.js |
Disables quantiles for three user-transform summary metrics. |
Review effort: Balanced
fac6872 to
a0abdaf
Compare
There was a problem hiding this comment.
🟡 Changes recommended
When ENABLE_SUMMARY_METRICS=false, lazily created batch-size and heap-size summaries ignore USER_TRANSFORM_SUMMARY_PERCENTILES and export default percentiles, requiring a shared-helper fix and regression test.
1 open issue
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
a0abdaf to
6a5eb8e
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Lazy summary creation bypasses the percentile policy, so batch-size and heap-usage summaries still export quantiles when ENABLE_SUMMARY_METRICS=false and EMPTY_USER_TRANSFORM_PERCENTILES is unset or true.
2 open issues
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Regression tests are missing for the four pre-registered summaries under the default and rollback configurations, leaving quantile behavior and preserved _sum/_count metrics unverified.
1 open issue
2 resolved since last review
Review effort: Balanced
|





What are the changes introduced in this PR?
The four user transform summaries (
function_latency_summary,request_latency_summary,batch_size_summaryandused_heap_size) no longer export quantile series by default, only_sumand_count. This removes about 1M active series, or about 3.3M counting series from recently replaced pods that ingesters still hold in memory. SetEMPTY_USER_TRANSFORM_PERCENTILEStofalseto keep the default quantiles.What is the related Linear task?
n/a
Please explain the objectives of your changes below
These summaries are labelled per transformation and scraped per pod, so their three quantiles multiply across transformations and pods. Alerts use only
_sum,_countand counters.Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
The p50, p90 and p99 series for these metrics stop being exported unless
EMPTY_USER_TRANSFORM_PERCENTILESisfalse. Averages from_sum/_countkeep working. Queries against the quantile series, about 84 in the last 30 days, return no data, so the Global Transformer Latency panel must move to_sum/_countfirst.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
prom-client still maintains its t-digest for these summaries, so transformer CPU and memory are unchanged; the saving is in Mimir.
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.
🤖 Generated with Claude Code