Grpc status codes in telemetry

#1

Question on grpc status codes - particular within the telemetry as stored in prometheus.

Currently the outer http2 connection is always a 200 even if the “inside” grpc call is failing. i.e. The response code for grpc protocol seems to always be 200 in telemetry.

Is it possible to somehow get the true grpc status code in telemetry somewhere?

#2

Yes. See: response.grpc_status and response.grpc_message (https://preliminary.istio.io/docs/reference/config/policy-and-telemetry/attribute-vocabulary/)

#3

Hi Doug, Is there any plan to have istio_requests_total.response_code be set to response.grpc_status when istio_requests_total.request_protocol=“grpc”?

1 Like
#4

@douglas-reid, Any follow-up here? Should I convert this to a github issue?

#5

@jshaughn yes, please convert to a GH issue. that will make it much easier to track.

#6

@douglas-reid Thanks, here you go: https://github.com/istio/istio/issues/12846