2017-11-17 01:43:38 +01:00
|
|
|
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)
|
2018-02-13 22:30:56 +01:00
|
|
|
|
|
|
|
// NotificationsNamespace is the prometheus namespace of notification related metrics
|
|
|
|
NotificationsNamespace = metrics.NewNamespace(NamespacePrefix, "notifications", nil)
|
2023-09-05 16:37:52 +02:00
|
|
|
|
|
|
|
// ProxyNamespace is the prometheus namespace of proxy related metrics
|
|
|
|
ProxyNamespace = metrics.NewNamespace(NamespacePrefix, "proxy", nil)
|
2017-11-17 01:43:38 +01:00
|
|
|
)
|