forked from TrueCloudLab/distribution
8b70616846
It adds notification related prometheus metrics, including: - total count for events/success/failure/error - total count for notification per each status code - gauge of the pending notification queue Signed-off-by: tifayuki <tifayuki@gmail.com>
16 lines
494 B
Go
16 lines
494 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)
|
|
|
|
// NotificationsNamespace is the prometheus namespace of notification related metrics
|
|
NotificationsNamespace = metrics.NewNamespace(NamespacePrefix, "notifications", nil)
|
|
)
|