mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
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>
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)
|
|
)
|