Fix bug with engineID
parent
8ca637bd80
commit
4e67e37ca6
|
@ -149,7 +149,7 @@ func (e *Engine) WithLogger(log *zap.Logger) {
|
|||
}
|
||||
|
||||
if e.engineID != nil {
|
||||
fields = append(fields, zap.Int("engine_id", *e.nodeID))
|
||||
fields = append(fields, zap.Int("engine_id", *e.engineID))
|
||||
}
|
||||
fields = append(fields, zap.String("service", "storage-engine"))
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ func newRetentionMetrics(labels prometheus.Labels) *retentionMetrics {
|
|||
sort.Strings(names)
|
||||
|
||||
return &retentionMetrics{
|
||||
labels: labels,
|
||||
Checks: prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: retentionSubsystem,
|
||||
|
|
Loading…
Reference in New Issue