From 9d0507fc6222acbac14b159652ddab91ca6e56c8 Mon Sep 17 00:00:00 2001 From: Alexander Apalikov Date: Tue, 16 Jun 2020 23:42:21 +0300 Subject: [PATCH] Rename of StateDuration boundaries --- pkg/metrics/controller_metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/controller_metrics.go b/pkg/metrics/controller_metrics.go index 5e8562ddcb..33c4939e09 100644 --- a/pkg/metrics/controller_metrics.go +++ b/pkg/metrics/controller_metrics.go @@ -21,7 +21,7 @@ import ( ) var ( - distributionSeconds = []float64{0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384} + stateDurationSeconds = []float64{0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384} fleetsReplicasCountStats = stats.Int64("fleets/replicas_count", "The count of replicas per fleet", "1") fasBufferLimitsCountStats = stats.Int64("fas/buffer_limits", "The buffer limits of autoscalers", "1") fasBufferSizeStats = stats.Int64("fas/buffer_size", "The buffer size value of autoscalers", "1") @@ -116,7 +116,7 @@ var ( Name: "gameserver_state_duration", Measure: gsStateDurationSec, Description: "The time gameserver exists in the current state in seconds", - Aggregation: view.Distribution(distributionSeconds...), + Aggregation: view.Distribution(stateDurationSeconds...), TagKeys: []tag.Key{keyType, keyFleetName, keyNamespace}, }, }