Skip to content
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

feat: Add status metric to config #3656

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abhipatnala
Copy link
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #2918

Special notes for your reviewer:

Avinash Patnala added 2 commits October 21, 2024 17:20
Signed-off-by: Avinash Patnala <avinashpatnala@google.com>
Signed-off-by: Avinash Patnala <avinashpatnala@google.com>
@abhipatnala abhipatnala requested a review from a team as a code owner October 21, 2024 17:44
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 76.92308% with 9 lines in your changes missing coverage. Please review.

Project coverage is 47.82%. Comparing base (3350319) to head (1ce8461).
Report is 162 commits behind head on master.

Files with missing lines Patch % Lines
pkg/controller/config/config_controller.go 53.84% 4 Missing and 2 partials ⚠️
pkg/controller/config/stats_reporter.go 88.46% 2 Missing and 1 partial ⚠️

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (1ce8461). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (1ce8461)
unittests 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3656      +/-   ##
==========================================
- Coverage   54.49%   47.82%   -6.68%     
==========================================
  Files         134      222      +88     
  Lines       12329    18738    +6409     
==========================================
+ Hits         6719     8961    +2242     
- Misses       5116     8936    +3820     
- Partials      494      841     +347     
Flag Coverage Δ
unittests 47.82% <76.92%> (-6.68%) ⬇️

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.

@@ -93,13 +94,19 @@ func newReconciler(mgr manager.Manager, cm *cm.CacheManager, cs *watch.Controlle
return nil, fmt.Errorf("cacheManager must be non-nil")
}

r, err := newStatsReporter()
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the observability goals for this metric? As in: what kinds of conclusions should consumers be able to draw by observing this metric? Is the data we are expressing sufficient to support those goals?

What are the gaps in reporting present in this current code?

Copy link
Contributor

Choose a reason for hiding this comment

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

If GK admin and consumer of metrics are two different users, then I think having number of kinds getting synced in config resource might be helpful when access to config resource is resticted?

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.

Add status to config
4 participants