Skip to content

Commit

Permalink
Rename of StateDuration boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
aLekSer committed Jun 16, 2020
1 parent ba3c47d commit 9d0507f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/controller_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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},
},
}
Expand Down

0 comments on commit 9d0507f

Please sign in to comment.