When following along with the booksapp demo, I don’t get any metrics from
» linkerd viz -n booksapp routes svc/webapp
ROUTE SERVICE SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99
GET / webapp - - - - -
GET /authors/{id} webapp - - - - -
GET /books/{id} webapp - - - - -
POST /authors webapp - - - - -
POST /authors/{id}/delete webapp - - - - -
POST /authors/{id}/edit webapp - - - - -
POST /books webapp - - - - -
POST /books/{id}/delete webapp - - - - -
POST /books/{id}/edit webapp - - - - -
[DEFAULT] webapp - - - - -
Any ideas on where to look to start troubleshooting this? linkerd check
doesn’t report any problems. I’m on stable-2.13.3
for all the components (control plane, proxies, and local client).
I do see an error in the tap deployment when I try to view routes in the dashboard.
time="2023-05-16T16:39:09Z" level=info msg="Tapping 3 pods for target: \"namespace:\\\"booksapp\\\" type:\\\"deployment\\\" name:\\\"webapp\\\"\""
time="2023-05-16T16:39:09Z" level=info msg="Establishing tap on 10.200.31.242:4190"
time="2023-05-16T16:39:09Z" level=info msg="Establishing tap on 10.200.42.95:4190"
time="2023-05-16T16:39:09Z" level=info msg="Establishing tap on 10.200.110.1:4190"
time="2023-05-16T16:39:12Z" level=error msg="[10.200.110.1] encountered an error: rpc error: code = Canceled desc = context canceled"
time="2023-05-16T16:39:12Z" level=error msg="[10.200.31.242] encountered an error: rpc error: code = Canceled desc = context canceled"
time="2023-05-16T16:39:12Z" level=error msg="[10.200.42.95] encountered an error: rpc error: code = Canceled desc = context canceled"
But I don’t get those errors when using the CLI. Just no data in the output.
I see no errors at all in the metrics-api
pod
When I run
linkerd viz tap deploy/webapp -o wide | grep req
rt_route
is missing from all the responses. The troubleshooting docs say
Getting regexes to match can be tough and the ordering is important. Pay attention to rt_route. If it is missing entirely, compare the :path to the regex you'd like for it to match, and use a tester with the Golang flavor of regex."
But as I said, I’m using the serviceprofile generated from the demo… so I have no idea what’s wrong here.
I tried simplifying the serviceprofile so it only has
spec:
routes:
- condition:
method: POST
pathRegex: /authors
name: POST /authors
- condition:
method: POST
pathRegex: /books
name: POST /books
but I’m still getting nothing, and no rt_route
in the taps