storage: register unique Prometheus metrics names

This commit is contained in:
Jimmy Zelinskie 2017-05-03 22:23:31 -04:00
parent 039f25f571
commit acf7e3c749
2 changed files with 4 additions and 4 deletions

View file

@ -28,13 +28,13 @@ func init() {
}
var promGCDurationMilliseconds = prometheus.NewHistogram(prometheus.HistogramOpts{
Name: "chihaya_storage_gc_duration_milliseconds",
Name: "chihaya_storage_memory_gc_duration_milliseconds",
Help: "The time it takes to perform storage garbage collection",
Buckets: prometheus.ExponentialBuckets(9.375, 2, 10),
})
var promInfohashesCount = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "chihaya_storage_infohashes_count",
Name: "chihaya_storage_memory_infohashes_count",
Help: "The number of infohashes tracked",
})

View file

@ -28,13 +28,13 @@ func init() {
}
var promGCDurationMilliseconds = prometheus.NewHistogram(prometheus.HistogramOpts{
Name: "chihaya_storage_gc_duration_milliseconds",
Name: "chihaya_storage_memorybysubnet_gc_duration_milliseconds",
Help: "The time it takes to perform storage garbage collection",
Buckets: prometheus.ExponentialBuckets(9.375, 2, 10),
})
var promInfohashesCount = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "chihaya_storage_infohashes_count",
Name: "chihaya_storage_memorybysubnet_infohashes_count",
Help: "The number of Infohashes tracked",
})