Add Prometheus Metrics
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>
This commit is contained in:
parent
3800056b88
commit
e3c37a46e2
118 changed files with 17182 additions and 1550 deletions
10
vendor/github.com/docker/go-metrics/helpers.go
generated
vendored
Normal file
10
vendor/github.com/docker/go-metrics/helpers.go
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
package metrics
|
||||
|
||||
func sumFloat64(vs ...float64) float64 {
|
||||
var sum float64
|
||||
for _, v := range vs {
|
||||
sum += v
|
||||
}
|
||||
|
||||
return sum
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue