Skip to content

Commit

Permalink
fix vm namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Jun 4, 2024
1 parent 487f6fb commit 4728e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chains/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1560,9 +1560,10 @@ func (m *manager) getOrMakeVMRegisterer(vmID ids.ID, chainAlias string) (metrics
vmGatherer, ok := m.vmGatherer[vmID]
if !ok {
vmName := constants.VMName(vmID)
vmNamespace := metric.AppendNamespace(constants.PlatformName, vmName)
vmGatherer = metrics.NewLabelGatherer(ChainLabel)
err := m.Metrics.Register(
vmName,
vmNamespace,
vmGatherer,
)
if err != nil {
Expand Down

0 comments on commit 4728e52

Please sign in to comment.