Skip to content

chore: drop quantiles from user transform summaries - #5767

Merged
atzoum merged 1 commit into
developfrom
chore.user-transform-drop-quantiles
Nov 6, 2026
Merged

atzoum merged 1 commit into
developfrom
chore.user-transform-drop-quantiles

Conversation

@atzoum

@atzoum atzoum commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

The four user transform summaries (function_latency_summary, request_latency_summary, batch_size_summary and used_heap_size) no longer export quantile series by default, only _sum and _count. This removes about 1M active series, or about 3.3M counting series from recently replaced pods that ingesters still hold in memory. Set EMPTY_USER_TRANSFORM_PERCENTILES to false to 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, _count and 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_PERCENTILES is false. Averages from _sum / _count keep 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 / _count first.

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

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d91ab158-309b-441f-b9aa-f1587d14490c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.44%. Comparing base (5b82078) to head (6a5eb8e).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@atzoum
atzoum marked this pull request as ready for review November 4, 2026 15:04
@atzoum
atzoum requested review from a team as code owners November 4, 2026 15:04
Copilot AI balanced review requested due to automatic review settings November 4, 2026 15:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@atzoum
atzoum force-pushed the chore.user-transform-drop-quantiles branch from fac6872 to a0abdaf Compare November 4, 2026 15:06
Copilot AI balanced review requested due to automatic review settings November 4, 2026 15:06
fracasula
fracasula previously approved these changes Nov 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/util/prometheus.js Resolved
Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum force-pushed the chore.user-transform-drop-quantiles branch from a0abdaf to 6a5eb8e Compare November 4, 2026 15:10
Copilot AI balanced review requested due to automatic review settings November 4, 2026 15:10
@atzoum
atzoum requested a review from fracasula November 4, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/util/prometheus.js Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/util/prometheus.js Resolved
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@atzoum
atzoum merged commit bed27bd into develop Nov 6, 2026
57 of 58 checks passed
@atzoum
atzoum deleted the chore.user-transform-drop-quantiles branch November 6, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants