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

ext_authz: Allow to set additional prefix for HTTP filter stats #13215

Merged
merged 7 commits into from
Sep 30, 2020
Merged

ext_authz: Allow to set additional prefix for HTTP filter stats #13215

merged 7 commits into from
Sep 30, 2020

Conversation

dio
Copy link
Member

@dio dio commented Sep 22, 2020

Commit Message:
This patch allows setting an additional prefix for HTTP filter stats. This lets the emitted statistics from configured ext_authz HTTP filters in an HTTP filter chain can be distinguished from each other.

Risk Level: Low
Testing: Added a test on additional prefix.
Docs Changes: Added
Release Notes: Added
Fixes #12666

dio added 2 commits September 22, 2020 12:19
This allows to set additional prefix for ext_authz HTTP filter.

Signed-off-by: Dhi Aurrahman <[email protected]>
Signed-off-by: Dhi Aurrahman <[email protected]>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #13215 was opened by dio.

see: more, trace.

@dio dio marked this pull request as ready for review September 22, 2020 22:27
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Looks good, some minor comment.
/wait

test/extensions/filters/http/ext_authz/ext_authz_test.cc Outdated Show resolved Hide resolved
// "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz
// stat_prefix: blocker # This emits ext_authz.blocker.ok, ext_authz.blocker.denied, etc.
//
string stat_prefix = 13;
Copy link
Member

Choose a reason for hiding this comment

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

This is consistent with what we do in HCM, so seems totally fair. I could imagine having a more generic filter wrapper that included a stat prefix, but I think that's total overkill at this point.

@htuch htuch self-assigned this Sep 23, 2020
htuch
htuch previously approved these changes Sep 29, 2020
Copy link
Member

@htuch htuch 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!

@htuch
Copy link
Member

htuch commented Sep 29, 2020

@dio needs master merge :)

@dio
Copy link
Member Author

dio commented Sep 30, 2020

Thanks for the review, @htuch! Merged master to this branch. :)

@htuch htuch removed the api label Sep 30, 2020
@htuch htuch merged commit 720348b into envoyproxy:master Sep 30, 2020
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.

ext_authz: Support filter naming and per-filter statistics
2 participants