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 new request_origin to metrics baggage #600

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Nov 24, 2023

Description

Relates to #597

This new request_origin field informs if the policy request was a validate one (going through the k8s apiserver) or an audit one (synthetic evaluation requests generated by the audit scanner).

Test

Tested successfully with docker compose, by adding a new grafana visualization such as
sum(kubewarden_policy_evaluations_total{request_origin="validate"}).

Additional Information

Tradeoff

Potential improvement

This new `request_origin` field informs if the policy request was a
`validate` one (going through the k8s apiserver) or an `audit` one
(synthetic evaluation requests generated by the audit scanner).

Signed-off-by: Víctor Cuadrado Juan <[email protected]>
@viccuad viccuad requested a review from a team as a code owner November 24, 2023 08:46
@viccuad viccuad changed the title feat Add new request_origin to metrics baggage feat: Add new request_origin to metrics baggage Nov 24, 2023
Copy link
Member

@flavio flavio 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 the fix

@viccuad
Copy link
Member Author

viccuad commented Nov 24, 2023

merging already because it's a somewhat simple thing, and I want an image from it.

@viccuad viccuad merged commit e0775c1 into kubewarden:main Nov 24, 2023
14 checks passed
@viccuad viccuad deleted the feat-request-origin branch July 17, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants