linkerd2/controller
Alex Leong ec51434eb9
Show traffic split metrics from sources in all namespaces (#3967)
Fixes #3562 

When a pod in one namespace sends traffic to a service which is the apex of a traffic split in another namespace, that traffic is not displayed in the `linkerd stat trafficsplit` output.  This is because when we do a Prometheus query for traffic to the traffic split, we supply a Prometheus label selector to only select traffic sources in the namespace of the traffic split.

Since any pod in any namespace can send traffic to the apex service of a traffic split, we must look at all possible sources of traffic, not just the ones in the same namespace.

Before:

```
$ bin/linkerd stat ts
NAME           APEX     LEAF       WEIGHT   SUCCESS   RPS   LATENCY_P50   LATENCY_P95   LATENCY_P99
webapp-split   webapp   webapp       900m         -     -             -             -             -
webapp-split   webapp   webapp-2     100m         -     -             -             -             -
```

After:

```
$ bin/linkerd stat ts
NAME           APEX     LEAF       WEIGHT   SUCCESS      RPS   LATENCY_P50   LATENCY_P95   LATENCY_P99
webapp-split   webapp   webapp       900m    80.00%   1.4rps          31ms          99ms        2530ms
webapp-split   webapp   webapp-2     100m    60.00%   0.2rps          35ms          93ms          99ms
```

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-02-12 09:21:59 -08:00
..
api Show traffic split metrics from sources in all namespaces (#3967) 2020-02-12 09:21:59 -08:00
cmd Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
gen Fix issue for debug containers when using custom Docker registry (#3873) 2020-01-17 10:18:03 -08:00
heartbeat Upgrade prometheus to v1.2.1 (#3541) 2019-12-11 15:26:16 -08:00
identity Cert manager support (#3600) 2019-10-24 13:15:14 -07:00
k8s Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
proxy-injector Changes for edge-20.1.3 (#3966) 2020-01-23 16:55:21 -08:00
script/destination-client Remove Discovery service leftovers (#3500) 2019-10-15 11:20:21 -05:00
sp-validator Have the proxy-injector emit events upon injection/skipping injection (#3316) 2019-08-26 13:34:36 -05:00
tap Use `t.Name()` instead of `t.Name` in tests (#3970) 2020-01-27 09:17:19 -05:00
webhook Shrink controller Docker image from 315MB to 38MB (#3378) 2019-09-05 11:44:03 -07:00
Dockerfile Use correct go module file syntax (#4021) 2020-02-07 07:58:54 -08:00