Fix bug with engineID

pull/10616/head
Edd Robinson 2018-11-07 17:30:12 +00:00
parent 8ca637bd80
commit 4e67e37ca6
2 changed files with 2 additions and 1 deletions

View File

@ -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"))

View File

@ -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,