mirror of
https://github.com/distribution/distribution
synced 2025-02-23 06:49:36 +01:00

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>
17 lines
494 B
Go
17 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)
|
|
)
|