From c98725db55d4e49f536de3e2c11ed51b2ef1e3fb Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 26 Jul 2019 20:00:35 +0300 Subject: [PATCH] app/vmstorage: consistency renaming for `ignored rows` metrics vm_too_big_timestamp_rows_total -> vm_rows_ignored_total{reason="big_timestamp"} vm_too_small_timestamp_rows_total -> vm_rows_ignored_total{reason="small_timestamp"} --- app/vmstorage/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmstorage/main.go b/app/vmstorage/main.go index f6b45d764..e992e92e6 100644 --- a/app/vmstorage/main.go +++ b/app/vmstorage/main.go @@ -358,10 +358,10 @@ func registerStorageMetrics() { return float64(idbm().SizeBytes) }) - metrics.NewGauge(`vm_too_big_timestamp_rows_total`, func() float64 { + metrics.NewGauge(`vm_rows_ignored_total{reason="big_timestamp"}`, func() float64 { return float64(m().TooBigTimestampRows) }) - metrics.NewGauge(`vm_too_small_timestamp_rows_total`, func() float64 { + metrics.NewGauge(`vm_rows_ignored_total{reason="small_timestamp"}`, func() float64 { return float64(m().TooSmallTimestampRows) })