forked from TrueCloudLab/distribution
e3c37a46e2
at the first iteration, only the following metrics are collected: - HTTP metrics of each API endpoint - cache counter for request/hit/miss - histogram of storage actions, including: GetContent, PutContent, Stat, List, Move, and Delete Signed-off-by: tifayuki <tifayuki@gmail.com>
10 lines
128 B
Go
10 lines
128 B
Go
package metrics
|
|
|
|
func sumFloat64(vs ...float64) float64 {
|
|
var sum float64
|
|
for _, v := range vs {
|
|
sum += v
|
|
}
|
|
|
|
return sum
|
|
}
|