summaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/distribution/metrics
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/distribution/metrics')
-rw-r--r--vendor/github.com/docker/distribution/metrics/prometheus.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/docker/distribution/metrics/prometheus.go b/vendor/github.com/docker/distribution/metrics/prometheus.go
new file mode 100644
index 000000000..b5a532144
--- /dev/null
+++ b/vendor/github.com/docker/distribution/metrics/prometheus.go
@@ -0,0 +1,13 @@
+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)
+)