This repository was archived by the owner on Oct 20, 2023. It is now read-only.
File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,45 @@ metrics:
303
303
value: 100
304
304
` ` `
305
305
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
+
306
345
# # Use Cases
307
346
308
347
# ## Top
You can’t perform that action at this time.
0 commit comments