You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HttpDurationfunc(HttpLabels) TimeHistogram`name:"feast_http_request_duration_seconds" help:"Time taken to serve HTTP requests" buckets:".005,.01,.025,.05,.1,.25,.5,1,2.5,5,10"`
14
+
15
+
GrpcDurationfunc(GrpcLabels) TimeHistogram`name:"feast_grpc_request_duration_seconds" help:"Time taken to serve gRPC requests" buckets:".005,.01,.025,.05,.1,.25,.5,1,2.5,5,10"`
16
+
17
+
HttpRequestsTotalfunc(HttpLabels) prometheus.Counter`name:"feast_http_requests_total" help:"Total number of HTTP requests"`
18
+
19
+
GrpcRequestsTotalfunc(GrpcLabels) prometheus.Counter`name:"feast_grpc_requests_total" help:"Total number of gRPC requests"`
20
+
}
21
+
22
+
typeHttpLabelsstruct {
23
+
Methodstring`label:"method"`
24
+
Statusint`label:"status"`
25
+
Pathstring`label:"path"`
26
+
}
27
+
28
+
typeGrpcLabelsstruct {
29
+
Servicestring`label:"service"`
30
+
Methodstring`label:"method"`
31
+
Codestring`label:"code"`
32
+
}
33
+
34
+
funcInitMetrics() {
35
+
gotoprom.MustInit(&Metrics, "feast")
36
+
}
37
+
38
+
// TimeHistogram boilerplate from gotoprom README
39
+
40
+
var (
41
+
// TimeHistogramType is the reflect.Type of the TimeHistogram interface
0 commit comments