From 110cce24d93d884a6d938b028ca0806efb27151a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 21 Feb 2020 19:33:06 +0200 Subject: [PATCH] lib/storage: add vm_ prefix to `deduplicated_samples_total` metric --- lib/storage/dedup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/dedup.go b/lib/storage/dedup.go index 3d4dc3c74f..cc92b8c85c 100644 --- a/lib/storage/dedup.go +++ b/lib/storage/dedup.go @@ -58,7 +58,7 @@ func DeduplicateSamples(srcTimestamps []int64, srcValues []float64) ([]int64, [] return dstTimestamps, dstValues } -var dedupsDuringSelect = metrics.NewCounter(`deduplicated_samples_total{type="select"}`) +var dedupsDuringSelect = metrics.NewCounter(`vm_deduplicated_samples_total{type="select"}`) func deduplicateSamplesDuringMerge(srcTimestamps []int64, srcValues []int64) ([]int64, []int64) { if minScrapeInterval <= 0 { @@ -94,7 +94,7 @@ func deduplicateSamplesDuringMerge(srcTimestamps []int64, srcValues []int64) ([] return dstTimestamps, dstValues } -var dedupsDuringMerge = metrics.NewCounter(`deduplicated_samples_total{type="merge"}`) +var dedupsDuringMerge = metrics.NewCounter(`vm_deduplicated_samples_total{type="merge"}`) func needsDedup(timestamps []int64, minDelta int64) bool { if len(timestamps) == 0 {