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>
13 lines
320 B
Go
13 lines
320 B
Go
package metrics
|
|
|
|
import "github.com/docker/go-metrics"
|
|
|
|
const (
|
|
// NamespacePrefix is the namespace of prometheus metrics
|
|
NamespacePrefix = "registry"
|
|
)
|
|
|
|
var (
|
|
// StorageNamespace is the prometheus namespace of blob/cache related operations
|
|
StorageNamespace = metrics.NewNamespace(NamespacePrefix, "storage", nil)
|
|
)
|