Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit c69fd1f

Browse files
committed
Add support for routes
Signed-off-by: Alex Leong <[email protected]>
1 parent e3da65b commit c69fd1f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

traffic-metrics.md

+39
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,45 @@ metrics:
303303
value: 100
304304
```
305305

306+
### Routes
307+
308+
Some resources may break down their traffic metrics into logical groupings of
309+
requests called routes. For example, a web application might break down metrics
310+
by request path. If the `route` field is set, the traffic metrics apply to that
311+
route only. If the `route` field is empty, the traffic metrics apply to the
312+
resource as a whole.
313+
314+
```yaml
315+
apiVersion: metrics.smi-spec.io/v1alpha1
316+
kind: TrafficMetrics
317+
# See ObjectReference v1 core for full spec
318+
resource:
319+
name: web
320+
namespace: foobar
321+
kind: Deployment
322+
edge:
323+
direction: from
324+
side: server
325+
resource: {}
326+
route: "/api/vote"
327+
timestamp: 2019-04-08T22:25:55Z
328+
window: 30s
329+
metrics:
330+
- name: p99_response_latency
331+
unit: seconds
332+
value: 10m
333+
- name: p90_response_latency
334+
unit: seconds
335+
value: 10m
336+
- name: p50_response_latency
337+
unit: seconds
338+
value: 10m
339+
- name: success_count
340+
value: 100
341+
- name: failure_count
342+
value: 100
343+
```
344+
306345
## Use Cases
307346

308347
### Top

0 commit comments

Comments
 (0)