22
22
* List all Metric entities for router
23
23
*/
24
24
public enum RouterMetricEntity {
25
+ /**
26
+ * Count of all incoming requests in the request handling path
27
+ */
25
28
INCOMING_CALL_COUNT (
26
- MetricType .COUNTER , MetricUnit .NUMBER , "Count of all incoming requests" ,
29
+ MetricType .COUNTER , MetricUnit .NUMBER , "Count of all incoming requests in the request handling path " ,
27
30
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD )
28
31
),
32
+ /**
33
+ * Count of all requests in the response handling path along with response codes.
34
+ * This vs {@link #INCOMING_CALL_COUNT} will help to correlate the incoming vs properly handled requests.
35
+ */
29
36
CALL_COUNT (
30
- MetricType .COUNTER , MetricUnit .NUMBER , "Count of all requests with response details" ,
37
+ MetricType .COUNTER , MetricUnit .NUMBER ,
38
+ "Count of all requests in the response handling path along with response codes" ,
31
39
setOf (
32
40
VENICE_STORE_NAME ,
33
41
VENICE_CLUSTER_NAME ,
@@ -36,6 +44,9 @@ public enum RouterMetricEntity {
36
44
HTTP_RESPONSE_STATUS_CODE_CATEGORY ,
37
45
VENICE_RESPONSE_STATUS_CODE_CATEGORY )
38
46
),
47
+ /**
48
+ * Latency based on all responses
49
+ */
39
50
CALL_TIME (
40
51
MetricType .HISTOGRAM , MetricUnit .MILLISECOND , "Latency based on all responses" ,
41
52
setOf (
@@ -46,12 +57,19 @@ public enum RouterMetricEntity {
46
57
HTTP_RESPONSE_STATUS_CODE_CATEGORY ,
47
58
VENICE_RESPONSE_STATUS_CODE_CATEGORY )
48
59
),
60
+ /**
61
+ * Count of keys in incoming requests in the request handling path
62
+ */
49
63
INCOMING_KEY_COUNT (
50
- MetricType .MIN_MAX_COUNT_SUM_AGGREGATIONS , MetricUnit .NUMBER , "Count of keys in all requests" ,
64
+ MetricType .MIN_MAX_COUNT_SUM_AGGREGATIONS , MetricUnit .NUMBER ,
65
+ "Count of keys in incoming requests in the request handling path" ,
51
66
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD , VENICE_REQUEST_VALIDATION_OUTCOME )
52
67
),
68
+ /**
69
+ * Count of keys in the response handling path along with response codes.
70
+ */
53
71
KEY_COUNT (
54
- MetricType .HISTOGRAM , MetricUnit .NUMBER , "Count of keys in all responses " ,
72
+ MetricType .HISTOGRAM , MetricUnit .NUMBER , "Count of keys in the response handling path along with response codes " ,
55
73
setOf (
56
74
VENICE_STORE_NAME ,
57
75
VENICE_CLUSTER_NAME ,
@@ -60,25 +78,40 @@ public enum RouterMetricEntity {
60
78
HTTP_RESPONSE_STATUS_CODE_CATEGORY ,
61
79
VENICE_RESPONSE_STATUS_CODE_CATEGORY )
62
80
),
81
+ /**
82
+ * Count of retries triggered
83
+ */
63
84
RETRY_COUNT (
64
85
MetricType .COUNTER , MetricUnit .NUMBER , "Count of retries triggered" ,
65
86
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD , VENICE_REQUEST_RETRY_TYPE )
66
87
),
88
+ /**
89
+ * Count of allowed retry requests
90
+ */
67
91
ALLOWED_RETRY_COUNT (
68
92
MetricType .COUNTER , MetricUnit .NUMBER , "Count of allowed retry requests" ,
69
93
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD )
70
94
),
95
+ /**
96
+ * Count of disallowed retry requests
97
+ */
71
98
DISALLOWED_RETRY_COUNT (
72
99
MetricType .COUNTER , MetricUnit .NUMBER , "Count of disallowed retry requests" ,
73
100
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD )
74
101
),
75
- RETRY_DELAY (
76
- MetricType .MIN_MAX_COUNT_SUM_AGGREGATIONS , MetricUnit .MILLISECOND , "Retry delay time" ,
77
- setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD )
78
- ),
102
+ /**
103
+ * Count of aborted retry requests
104
+ */
79
105
ABORTED_RETRY_COUNT (
80
106
MetricType .COUNTER , MetricUnit .NUMBER , "Count of aborted retry requests" ,
81
107
setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD , VENICE_REQUEST_RETRY_ABORT_REASON )
108
+ ),
109
+ /**
110
+ * Retry delay time: Time in milliseconds between the original request and the retry request
111
+ */
112
+ RETRY_DELAY (
113
+ MetricType .MIN_MAX_COUNT_SUM_AGGREGATIONS , MetricUnit .MILLISECOND , "Retry delay time" ,
114
+ setOf (VENICE_STORE_NAME , VENICE_CLUSTER_NAME , VENICE_REQUEST_METHOD )
82
115
);
83
116
84
117
private final MetricEntity metricEntity ;
0 commit comments