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

Remove non-specific webhook request metrics #1428

Merged

Conversation

julianKatz
Copy link
Contributor

As g8r once had only a validation webhook, certain metrics
(request_count, request_count_duration_seconds) were implemented without
qualifiers. i.e., the fact that they applied to the validation webhook
was assumed.

As g8r now has both validation and mutation webhooks, separate metrics
for both are required. These metrics have already been implemented, and
have been released since v3.4.0. The original metrics were deprecated
(but retained) at the time of that release.

As we are approaching v3.6, it is finally time to remove these metrics.
This PR removes the code and updates the metrics README.

Fixes #1010

Signed-off-by: juliankatz juliankatz@google.com

As g8r once had only a validation webhook, certain metrics
(request_count, request_count_duration_seconds) were implemented without
qualifiers.  i.e., the fact that they applied to the validation webhook
was _assumed_.

As g8r now has both validation and mutation webhooks, separate metrics
for both are required.  These metrics have already been implemented, and
have been released since v3.4.0.  The original metrics were deprecated
(but retained) at the time of that release.

As we are approaching v3.6, it is finally time to remove these metrics.
This PR removes the code and updates the metrics README.

Fixes open-policy-agent#1010

Signed-off-by: juliankatz <juliankatz@google.com>
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2021

Codecov Report

Merging #1428 (ba73714) into master (5776a6b) will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1428      +/-   ##
==========================================
- Coverage   50.04%   49.99%   -0.06%     
==========================================
  Files          75       75              
  Lines        5061     5047      -14     
==========================================
- Hits         2533     2523      -10     
+ Misses       2178     2175       -3     
+ Partials      350      349       -1     
Flag Coverage Δ
unittests 49.99% <ø> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
pkg/webhook/stats_reporter.go 86.36% <ø> (+0.15%) ⬆️
...onstrainttemplate/constrainttemplate_controller.go 57.92% <0.00%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5776a6b...ba73714. Read the comment docs.

… deprecate-non-specific-metrics

Signed-off-by: juliankatz <juliankatz@google.com>
Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
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

… deprecate-non-specific-metrics

Signed-off-by: juliankatz <juliankatz@google.com>
… deprecate-non-specific-metrics

Signed-off-by: juliankatz <juliankatz@google.com>
@julianKatz julianKatz merged commit 786e2db into open-policy-agent:master Jul 13, 2021
@julianKatz julianKatz deleted the deprecate-non-specific-metrics branch July 13, 2021 15:56
julianKatz added a commit to julianKatz/gatekeeper that referenced this pull request Jul 27, 2021
As g8r once had only a validation webhook, certain metrics
(request_count, request_count_duration_seconds) were implemented without
qualifiers.  i.e., the fact that they applied to the validation webhook
was _assumed_.

As g8r now has both validation and mutation webhooks, separate metrics
for both are required.  These metrics have already been implemented, and
have been released since v3.4.0.  The original metrics were deprecated
(but retained) at the time of that release.

As we are approaching v3.6, it is finally time to remove these metrics.
This PR removes the code and updates the metrics README.

Fixes open-policy-agent#1010

Signed-off-by: juliankatz <juliankatz@google.com>
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.

deprecate request_count/request_duration_seconds and document in release notes
4 participants