mirror of https://github.com/linkerd/linkerd2.git
We updated the `linkerd viz stat` command so that it may target ServerAuthorization and HTTPRoute resources. For HTTPRoute, we also add an `Unauthorized` column which mirrors the column of the same name when printing stats for `Servers`. This shows the RPS of denied requests to the target HTTPRoute. Furthermore, we also add a "Server" column which shows which Server the route is attached to. Sample output: ```console > linkerd -n emojivoto viz stat authorizationpolicies NAME SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 emoji-grpc 100.00% 2.0rps 1ms 1ms 1ms linkerd-metrics 100.00% 0.4rps 1ms 1ms 1ms linkerd-probes 100.00% 0.8rps 1ms 1ms 1ms prom - - - - - web-public 50.00% 2.0rps 1ms 2ms 2ms > linkerd -n emojivoto viz stat httproutes NAME SERVER UNAUTHORIZED SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 linkerd-metrics linkerd-admin 0.0rps 100.00% 0.4rps 1ms 1ms 1ms linkerd-probes linkerd-admin 0.0rps 100.00% 0.8rps 1ms 1ms 1ms ``` Signed-off-by: Alex Leong <alex@buoyant.io> |
||
|---|---|---|
| .. | ||
| resource | ||
| testdata | ||
| api.go | ||
| api_test.go | ||
| authz.go | ||
| authz_test.go | ||
| completion.go | ||
| fake.go | ||
| fake_test.go | ||
| k8s.go | ||
| k8s_test.go | ||
| kubectl.go | ||
| kubectl_test.go | ||
| labels.go | ||
| labels_test.go | ||
| metrics.go | ||
| policy.go | ||
| portforward.go | ||
| portforward_test.go | ||
| version.go | ||
| version_test.go | ||