refactor: Review metrics endpoints (#1770)

Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
Alexei Dodon
2023-09-15 14:49:34 +03:00
committed by GitHub
parent aae8b7b4e3
commit 14206dd6f3
9 changed files with 76 additions and 80 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func SessionLogger(ctlr *Controller) mux.MiddlewareFunc {
path = path + "?" + raw
}
if path != "/v2/metrics" {
if path != "/metrics" {
// In order to test metrics feture,the instrumentation related to node exporter
// should be handled by node exporter itself (ex: latency)
monitoring.IncHTTPConnRequests(ctlr.Metrics, method, strconv.Itoa(statusCode))