mirror of https://github.com/linkerd/linkerd2.git
When viewing the output of `linkerd stat` for services which do not have a selector (such as services created by the service-mirror, for example) the meshed count column shows the total number which exist, even though the service actually selects no pods at all. We update the StatSummary implementation to account for services which have no selector. Additionally, we update the logic of the `--unmeshed` flag. When the `--unmeshed` flag is not set, we typically skip rows for unmeshed resources because those resources would have no stats. This is not appropriate to do when the `--from` flag is also set because in this case, metrics are not collected on the target resource but are instead collected on the client-side. This means that stats can be present, even for unmeshed resources and these resources should still be displayed, even if the `--unmeshed` flag is not set. Signed-off-by: Alex Leong <alex@buoyant.io> |
||
---|---|---|
.. | ||
api | ||
cmd | ||
gen | ||
heartbeat | ||
identity | ||
k8s | ||
proxy-injector | ||
script/destination-client | ||
sp-validator | ||
tap | ||
webhook | ||
Dockerfile |