You are viewing docs for an older version of Linkerd. View the latest docs.
  • GitHub
  • Slack
  • Linkerd Forum

Getting Per-Route Metrics

To get per-route metrics, you must create HTTPRoute resources. If a route has a parent_ref which points to a Service resource, Linkerd will generate outbound per-route traffic metrics for all HTTP traffic that it sends to that Service. If a route has a parent_ref which points to a Server resource, Linkerd will generate inbound per-route traffic metrcs for all HTTP traffic that it receives on that Server. Note that an HTTPRoute can have multiple parent_refs which means that the same HTTPRoute resource can be used to describe both outbound and inbound routes.

For a tutorial that shows off per-route metrics, check out the books demo.

Note

Routes configured in service profiles are different from [HTTPRoute] resources. If a ServiceProfile is defined for a Service, proxies will ignore any [HTTPRoute] for that Service.