Skip to content

feat: Add metric reporting to ExpansionTemplate controller#2276

Merged
davis-haba merged 4 commits into
open-policy-agent:masterfrom
davis-haba:expansion-metrics
Sep 29, 2022
Merged

feat: Add metric reporting to ExpansionTemplate controller#2276
davis-haba merged 4 commits into
open-policy-agent:masterfrom
davis-haba:expansion-metrics

Conversation

@davis-haba
Copy link
Copy Markdown
Contributor

Signed-off-by: davis-haba davishaba@google.com

What this PR does / why we need it:

Adds metric reporting to the ExpansionTemplate Controller. The controller will simply report a count of the number of ExpansionTemplates on the cluster.

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 #

Special notes for your reviewer:

Signed-off-by: davis-haba <davishaba@google.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 20, 2022

Codecov Report

Base: 53.36% // Head: 53.35% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (9f7901e) compared to base (3fde9bd).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2276      +/-   ##
==========================================
- Coverage   53.36%   53.35%   -0.01%     
==========================================
  Files         116      116              
  Lines       10161    10161              
==========================================
- Hits         5422     5421       -1     
- Misses       4319     4320       +1     
  Partials      420      420              
Flag Coverage Δ
unittests 53.35% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
pkg/readiness/list.go 79.41% <0.00%> (-11.77%) ⬇️
...onstrainttemplate/constrainttemplate_controller.go 55.50% <0.00%> (+0.71%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for doing this!

Signed-off-by: davis-haba <davishaba@google.com>
@sozercan sozercan added this to the v3.10.0 milestone Sep 28, 2022
Comment thread website/docs/metrics.md
Copy link
Copy Markdown
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@davis-haba davis-haba merged commit 099d71d into open-policy-agent:master Sep 29, 2022
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.

5 participants