forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add trafficsplit metrics to CLI (linkerd#3176)
This PR adds `trafficsplit` as a supported resource for the `linkerd stat` command. Users can type `linkerd stat ts` to see the apex and leaf services of their trafficsplits, as well as metrics for those leaf services.
- Loading branch information
Carol A. Scott
authored
Aug 14, 2019
1 parent
9826cbd
commit 0043770
Showing
11 changed files
with
722 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NAME APEX LEAF WEIGHT SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 | ||
foo-split apex_name service-1 900m 100.00% 2.0rps 123ms 123ms 123ms | ||
foo-split apex_name service-2 100m 100.00% 2.0rps 123ms 123ms 123ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"namespace": "default", | ||
"kind": "trafficsplit", | ||
"name": "foo-split", | ||
"success": 1, | ||
"rps": 2.05, | ||
"latency_ms_p50": 123, | ||
"latency_ms_p95": 123, | ||
"latency_ms_p99": 123, | ||
"apex": "apex_name", | ||
"leaf": "service-1", | ||
"weight": "900m" | ||
}, | ||
{ | ||
"namespace": "default", | ||
"kind": "trafficsplit", | ||
"name": "foo-split", | ||
"success": 1, | ||
"rps": 2.05, | ||
"latency_ms_p50": 123, | ||
"latency_ms_p95": 123, | ||
"latency_ms_p99": 123, | ||
"apex": "apex_name", | ||
"leaf": "service-2", | ||
"weight": "100m" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.