Skip to content

Commit fc3c665

Browse files
committed
[ingester] fix handle ext metric panic
1 parent c860954 commit fc3c665

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

server/ingester/ext_metrics/decoder/decoder.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,17 @@ func NewDecoder(
8282
config *config.Config,
8383
) *Decoder {
8484
return &Decoder{
85-
index: index,
86-
msgType: msgType,
87-
platformData: platformData,
88-
inQueue: inQueue,
89-
debugEnabled: log.IsEnabledFor(logging.DEBUG),
90-
extMetricsWriter: extMetricsWriter,
91-
config: config,
92-
counter: &Counter{},
85+
index: index,
86+
msgType: msgType,
87+
platformData: platformData,
88+
inQueue: inQueue,
89+
debugEnabled: log.IsEnabledFor(logging.DEBUG),
90+
extMetricsWriter: extMetricsWriter,
91+
config: config,
92+
podNameToUniversalTag: make(map[string]*zerodoc.UniversalTag),
93+
instanceIPToUniversalTag: make(map[string]*zerodoc.UniversalTag),
94+
vtapIDToUniversalTag: make(map[uint16]*zerodoc.UniversalTag),
95+
counter: &Counter{},
9396
}
9497
}
9598

0 commit comments

Comments
 (0)