feat(stats): support grpc status codes in metrics#2624
feat(stats): support grpc status codes in metrics#2624istio-testing merged 14 commits intoistio:masterfrom
Conversation
|
@douglas-reid do you want to redo it now on top of #2631 in order to get it into 1.5? |
|
yeah, i'll need to rebase, etc. |
|
@douglas-reid it's merged now. |
0c91848 to
8ac4ea3
Compare
|
@kyessenov @mandarjog please take a look at this PR now. There are a few important parts, but mostly, a decision is needed regarding the default behavior of The original proposal design doc was under-specified in this regard. In this PR, if the protocol is not gRPC, then the fallback will be the From http-grpc-status-mapping:
The spec for
as well as
We had previously discussed the following alternatives:
I rejected returning Returning an empty label is slightly clunky, as the code gets much more complicated, as do the regexes for generating prometheus labels and the weirdness of having non-populated labels for non-gRPC metrics. Thoughts? Note: this PR is blocked on a cherry-pick of @kyessenov's hardening PR of upstream Envoy. |
d9fcd65 to
89c156e
Compare
|
Update: After thinking about this again, I switched to |
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
fbf4f8a to
24341dc
Compare
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
|
/test test-asan_proxy |
|
/test test_proxy |
|
/test test-tsan_proxy |
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
src/envoy/http/alpn/alpn_test.cc
Outdated
| FilterConfig_AlpnOverride; | ||
| using testing::NiceMock; | ||
| using testing::Return; | ||
| using testing::ReturnPointee; |
kyessenov
left a comment
There was a problem hiding this comment.
LG. I think we need to de-duplicate all the templates at some point. It's PITA to update them once the deprecated fields stop working.
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
|
@kyessenov agreed on the templates. deprecation will hit us hard. |
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* feat(stats): support grpc status codes in metrics (#2624) * fix(stats): remove policy-related dimensions (#2647) * feat(stats): add support for canonical service labels (#2658) * update istio/envoy SHA Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com> * add missing deps for cel Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com> * buildifier lint fix WORKSPACE respositories.bzl Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com> * restore file test path * commenting out RBE stuff Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com> * skip http mxc test Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Companion PR to istio/istio#20036.
TODO:
response.grpc_status(https://sourcegraph.com/github.com/envoyproxy/envoy-wasm@542558a722e23225cb1f6e2c8194c093f993f9c8/-/blob/source/extensions/filters/common/expr/context.cc#L124-144)