app/vmstorage: add missing _total suffixes to newly added metrics

This commit is contained in:
Aliaksandr Valialkin 2019-06-09 22:11:09 +03:00
parent d37924900b
commit 7354090aad

View file

@ -285,16 +285,16 @@ func registerStorageMetrics(strg *storage.Storage) {
metrics.NewGauge(`vm_missing_tsids_for_metric_id_total`, func() float64 { metrics.NewGauge(`vm_missing_tsids_for_metric_id_total`, func() float64 {
return float64(idbm().MissingTSIDsForMetricID) return float64(idbm().MissingTSIDsForMetricID)
}) })
metrics.NewGauge(`vm_recent_hour_metric_ids_search_calls`, func() float64 { metrics.NewGauge(`vm_recent_hour_metric_ids_search_calls_total`, func() float64 {
return float64(idbm().RecentHourMetricIDsSearchCalls) return float64(idbm().RecentHourMetricIDsSearchCalls)
}) })
metrics.NewGauge(`vm_recent_hour_metric_ids_search_hits`, func() float64 { metrics.NewGauge(`vm_recent_hour_metric_ids_search_hits_total`, func() float64 {
return float64(idbm().RecentHourMetricIDsSearchHits) return float64(idbm().RecentHourMetricIDsSearchHits)
}) })
metrics.NewGauge(`vm_date_metric_ids_search_calls`, func() float64 { metrics.NewGauge(`vm_date_metric_ids_search_calls_total`, func() float64 {
return float64(idbm().DateMetricIDsSearchCalls) return float64(idbm().DateMetricIDsSearchCalls)
}) })
metrics.NewGauge(`vm_date_metric_ids_search_hits`, func() float64 { metrics.NewGauge(`vm_date_metric_ids_search_hits_total`, func() float64 {
return float64(idbm().DateMetricIDsSearchHits) return float64(idbm().DateMetricIDsSearchHits)
}) })