Skip to content

Commit d05ab8f

Browse files
plugin/apm/nomad: fix spelling mistake in log lines. (#654)
Co-authored-by: Juana De La Cuesta <[email protected]>
1 parent 12f053e commit d05ab8f

File tree

1 file changed

+3
-3
lines changed
  • plugins/builtin/apm/nomad/plugin

1 file changed

+3
-3
lines changed

plugins/builtin/apm/nomad/plugin/job.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (a *APMPlugin) getTaskGroupResourceUsage(query *taskGroupQuery) ([]float64,
7979
// does not vary between allocations.
8080
allocatedCPU, err := a.getAllocatedCPUForTaskGroup(query.job, query.group)
8181
if err != nil {
82-
return nil, fmt.Errorf("failed to get total alloacted CPU for taskgroup: %v", err)
82+
return nil, fmt.Errorf("failed to get total allocated CPU for taskgroup: %v", err)
8383
}
8484

8585
// Create the metric function now that the total allocated CPU is known
@@ -92,11 +92,11 @@ func (a *APMPlugin) getTaskGroupResourceUsage(query *taskGroupQuery) ([]float64,
9292
}
9393
case queryMetricMemAllocated:
9494

95-
// Similarly to `queryMetricCPUAllocated` we must calculate the alloacted
95+
// Similarly to `queryMetricCPUAllocated` we must calculate the allocated
9696
// memory since it's not provided as a metric.
9797
allocatedMem, err := a.getAllocatedMemForTaskGroup(query.job, query.group)
9898
if err != nil {
99-
return nil, fmt.Errorf("failed to get total alloacted memory for taskgroup: %v", err)
99+
return nil, fmt.Errorf("failed to get total allocated memory for taskgroup: %v", err)
100100
}
101101

102102
// Create the metric function now that the total allocated memory is known.

0 commit comments

Comments
 (0)