gateway
gateway copied to clipboard
feat: route stat name
What type of PR is this?
What this PR does / why we need it:
Add support for determining route stat names in BackendTrafficPolicy
Supported: xRoute Supported Formatters: %ROUTE_KIND%, %ROUTE_NAME%, %ROUTE_NAMESPACE%, %ROUTE_RULE_NAME%, %ROUTE_RULE_NUMBER%
Which issue(s) this PR fixes:
Fixes https://github.com/envoyproxy/gateway/issues/6190
Release Notes: Yes
Codecov Report
:x: Patch coverage is 88.88889% with 7 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 71.15%. Comparing base (a9fa022) to head (1e6d51f).
:warning: Report is 6 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #6310 +/- ##
==========================================
- Coverage 72.31% 71.15% -1.16%
==========================================
Files 231 274 +43
Lines 34084 34857 +773
==========================================
+ Hits 24647 24802 +155
- Misses 7664 8260 +596
- Partials 1773 1795 +22
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
/retest
seeing the API being added to BTP, is the use case to enable this only on some routes or all ? If all is the most common use case, , then lets start with a field in EnvoyProxy and later one in BTP
seeing the API being added to BTP, is the use case to enable this only on some routes or all ? If all is the most common use case, , then lets start with a field in
EnvoyProxyand later one in BTP
Hi, I thought we agreed to add stats only in BTP), i.e., only for a specific route using the template. I don't quite understand how the settings of EnvoyProxy and BTP will work together. It seems that in the discussion it was decided that this should be opt-in, as enabling it for all routes through EnvoyProxy could lead to a large number of metrics, which might affect the performance of Envoy (and it's unclear how to disable the option at the EnvoyProxy level for a specific route). Additionally, with BTP, you can specify more specific things, such as the name of the route (routeStatPrefix: name=/route), as well as more concrete business-related aspects, like tenant, for example.
okay, lets start with BTP first
/retest
@arkodg PTAL
/retest
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!
Hey @Inode1 are you still working on this?
Hey @Inode1 are you still working on this?
As far as I understand, @arkodg doesn’t agree to pass the fields into the metadata and suggests making this configuration at the EnvoyProxy level.
hey @Inode1 do you have a use case for using %ROUTE_RULE_NUMBER% instead of %ROUTE_SECTION_NAME% which is already available in the IR today ? my preference would be to avoid adding RuleIndex to the IR unless we absolutely need it
hey @Inode1 do you have a use case for using
%ROUTE_RULE_NUMBER%instead of%ROUTE_SECTION_NAME%which is already available in the IR today ? my preference would be to avoid addingRuleIndexto the IR unless we absolutely need it
No, to be honest, I don't need formatters tags at all, just a custom stats name string).
Done, delete ROUTE_RULE_NUMBER
thanks @Inode1, will take a look at this PR next week, after v1.6 is out
@Inode1 can you fix the DCO?