PPascal Bleserfeat(proxy): add the service to the proxy metrics
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore: remove loop var references | 5 个月前 | |
use plain pkg module Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> | 1 年前 | |
refactor datagateway into proxy middleware Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> | 1 个月前 | |
feat(proxy): add the service to the proxy metrics Improve the metrics for the proxy service. * extend the instrumenter middleware to add a label with the name of the service the request is being dispatched to * add a native Prometheus histogram that tracks the durations and also includes a label for the name of the service the request is being dispatched to, as well as a 'result' label ('success', 'client-error', 'server-error') based on the HTTP status code of the response * add per-service gauge functions to count the number of in-flight requests * add a counter for routing failures, for when an inbound request cannot be mapped to a route * extend the route.RoutingInfo struct with a service attribute, and a Service() getter * remove the 'routing_failure_count' metric, as it is redundant | 7 天前 |