Skip to content

ROX-28326: Support for multitenant scraping#15672

Closed
parametalol wants to merge 8 commits intomichael/ROX-28326-expose-cve-metricsfrom
michael/ROX-28326-multitenancy
Closed

ROX-28326: Support for multitenant scraping#15672
parametalol wants to merge 8 commits intomichael/ROX-28326-expose-cve-metricsfrom
michael/ROX-28326-multitenancy

Conversation

@parametalol
Copy link
Copy Markdown
Contributor

@parametalol parametalol commented Jun 10, 2025

Description

This PR changes the HTTP server routing defined in

The config.proto is augmented with registry name and exposure settings. Internal metrics are served on the existing default internal central endpoint. External — on the API endpoint, /metrics/<registry-name> path.

This allows users to serve different metrics on different URLs, and configure different Prometheus tenants to scrape from those URLs.

The labels and resource filtering is fully in the hands of the user.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

TBD

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Jun 10, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@parametalol parametalol changed the title /metrics/registry_name ROX-28326: Support for multitenant scraping Jun 10, 2025
@rhacs-bot
Copy link
Copy Markdown
Contributor

rhacs-bot commented Jun 10, 2025

Images are ready for the commit at 71aedc8.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.8.x-992-g71aedc8758.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.10%. Comparing base (7eaaf3e) to head (71aedc8).
Report is 6 commits behind head on michael/ROX-28326-expose-cve-metrics.

Additional details and impacted files
@@                           Coverage Diff                            @@
##           michael/ROX-28326-expose-cve-metrics   #15672      +/-   ##
========================================================================
- Coverage                                 48.22%   48.10%   -0.12%     
========================================================================
  Files                                       751      751              
  Lines                                     75033    74990      -43     
========================================================================
- Hits                                      36186    36077     -109     
- Misses                                    35605    35677      +72     
+ Partials                                   3242     3236       -6     
Flag Coverage Δ
go-unit-tests 48.10% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@parametalol parametalol requested a review from a team June 10, 2025 20:08
@parametalol parametalol deleted the michael/ROX-28326-multitenancy branch September 17, 2025 10:04
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.

3 participants