[#280] Add put requests to duration metric
All checks were successful
/ DCO (pull_request) Successful in 1m27s
/ Vulncheck (pull_request) Successful in 2m4s
/ Lint (pull_request) Successful in 3m2s
/ Tests (1.20) (pull_request) Successful in 2m44s
/ Tests (1.21) (pull_request) Successful in 2m23s
/ Builds (1.20) (pull_request) Successful in 2m42s
/ Builds (1.21) (pull_request) Successful in 2m6s
All checks were successful
/ DCO (pull_request) Successful in 1m27s
/ Vulncheck (pull_request) Successful in 2m4s
/ Lint (pull_request) Successful in 3m2s
/ Tests (1.20) (pull_request) Successful in 2m44s
/ Tests (1.21) (pull_request) Successful in 2m23s
/ Builds (1.20) (pull_request) Successful in 2m42s
/ Builds (1.21) (pull_request) Successful in 2m6s
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
4286f7945b
commit
87071e87ff
1 changed files with 2 additions and 4 deletions
|
@ -94,10 +94,8 @@ func stats(f http.HandlerFunc, resolveCID cidResolveFunc, appMetrics *metrics.Ap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.Method == http.MethodGet {
|
// Increment the prometheus http request response histogram with appropriate label
|
||||||
// Increment the prometheus http request response histogram with appropriate label
|
appMetrics.Statistic().RequestDurationsUpdate(reqInfo.API, durationSecs)
|
||||||
appMetrics.Statistic().RequestDurationsUpdate(reqInfo.API, durationSecs)
|
|
||||||
}
|
|
||||||
|
|
||||||
appMetrics.Statistic().TotalInputBytesAdd(in.countBytes)
|
appMetrics.Statistic().TotalInputBytesAdd(in.countBytes)
|
||||||
appMetrics.Statistic().TotalOutputBytesAdd(out.countBytes)
|
appMetrics.Statistic().TotalOutputBytesAdd(out.countBytes)
|
||||||
|
|
Loading…
Reference in a new issue