Skip to content

Commit 4555556

Browse files
committed
fix-init
1 parent 5d2e496 commit 4555556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ func NewPromAggGatewayServer(config PromAggGatewayServerConfig) PromAggGatewaySe
4343

4444
labelValuesForMetric := make(map[string]map[string]map[string]bool)
4545
for m, c := range config.Metrics {
46+
c.Init()
47+
4648
if c.Type == Histogram {
4749
labelValuesForMetric[m+"_bucket"] = c.LabelValues()
4850
}
4951

50-
c.Init()
5152
config.Metrics[m] = c
5253
}
5354

0 commit comments

Comments
 (0)