Skip to content

ROX-28151: Custom Prometheus metrics minimal tracker#15785

Closed
parametalol wants to merge 4 commits intomichael/ROX-28151-minimal-aggregatorfrom
michael/ROX-28151-minimal-tracker
Closed

ROX-28151: Custom Prometheus metrics minimal tracker#15785
parametalol wants to merge 4 commits intomichael/ROX-28151-minimal-aggregatorfrom
michael/ROX-28151-minimal-tracker

Conversation

@parametalol
Copy link
Copy Markdown
Contributor

@parametalol parametalol commented Jun 18, 2025

Description

This PR adds base implementation for metrics tracker. A tracker is a process, configured with the list of labels, their order, and aggregation period. The label order is used for building a consistent aggregation key.

A tracker manages a ticker and the tracking loop goroutine.

Image vulnerabilities metrics will be handled by one tracker instance, policy violations — by another.

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

Unit tests.

Current dependencies on/for this PR:

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Jun 18, 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

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 18, 2025

Codecov Report

❌ Patch coverage is 83.62989% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.83%. Comparing base (f9ca62c) to head (82c9455).
⚠️ Report is 442 commits behind head on michael/ROX-28151-minimal-aggregator.

Files with missing lines Patch % Lines
central/metrics/aggregator/common/tracker_base.go 85.49% 14 Missing and 5 partials ⚠️
central/metrics/aggregator/common/validator.go 70.90% 16 Missing ⚠️
central/config/service/service.go 37.50% 5 Missing ⚠️
central/metrics/aggregator/common/aggregator.go 91.17% 2 Missing and 1 partial ⚠️
central/metrics/aggregator/common/configuration.go 84.21% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@                           Coverage Diff                            @@
##           michael/ROX-28151-minimal-aggregator   #15785      +/-   ##
========================================================================
+ Coverage                                 48.80%   48.83%   +0.03%     
========================================================================
  Files                                      2590     2598       +8     
  Lines                                    190522   190942     +420     
========================================================================
+ Hits                                      92983    93256     +273     
- Misses                                    90237    90378     +141     
- Partials                                   7302     7308       +6     
Flag Coverage Δ
go-unit-tests 48.83% <83.62%> (+0.03%) ⬆️

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.

@rhacs-bot
Copy link
Copy Markdown
Contributor

Images are ready for the commit at 82c9455.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-76-g82c9455faa.

@parametalol parametalol changed the title michael/ROX-28151-minimal-tracker ROX-28151: Custom Prometheus metrics minimal tracker Jun 18, 2025
@parametalol parametalol force-pushed the michael/ROX-28151-minimal-aggregator branch 3 times, most recently from 0d622e8 to 018086d Compare June 23, 2025 09:19
@parametalol parametalol force-pushed the michael/ROX-28151-minimal-aggregator branch 3 times, most recently from 7df7ad8 to 30cee42 Compare August 18, 2025 09:58
@parametalol
Copy link
Copy Markdown
Contributor Author

Closed in favour of #15796

@parametalol parametalol closed this Sep 8, 2025
@parametalol parametalol deleted the michael/ROX-28151-minimal-tracker branch September 16, 2025 21:31
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