Skip to content

Commit

Permalink
metrics names
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 16, 2022
1 parent 2ce942f commit 3e79cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func NewNode(log logrus.FieldLogger, config *Config, namespace string, options O
status: NewStatus(options.HealthCheck.SuccessfulResponses, options.HealthCheck.FailedResponses),
}

n.metrics = NewMetrics(n.log, namespace, config.Name, n)
n.metrics = NewMetrics(n.log, namespace+"_beacon", config.Name, n)

return n
}
Expand Down
2 changes: 2 additions & 0 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ func NewMetrics(log logrus.FieldLogger, namespace, nodeName string, beacon Node)
forks := NewForksJob(beacon, log, namespace, constLabels)
spec := NewSpecJob(beacon, log, namespace, constLabels)
sync := NewSyncJob(beacon, log, namespace, constLabels)
health := NewHealthMetrics(beacon, log, namespace, constLabels)

jobs := map[string]MetricsJob{
general.Name(): general,
event.Name(): event,
forks.Name(): forks,
spec.Name(): spec,
sync.Name(): sync,
health.Name(): health,
}

m := &Metrics{jobs}
Expand Down

0 comments on commit 3e79cb3

Please sign in to comment.