Skip to content

Commit

Permalink
plugin/apm/nomad: fix spelling mistake in log lines. (#654)
Browse files Browse the repository at this point in the history
Co-authored-by: Juana De La Cuesta <[email protected]>
  • Loading branch information
jrasell and Juanadelacuesta authored Jul 4, 2023
1 parent 12f053e commit d05ab8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/builtin/apm/nomad/plugin/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (a *APMPlugin) getTaskGroupResourceUsage(query *taskGroupQuery) ([]float64,
// does not vary between allocations.
allocatedCPU, err := a.getAllocatedCPUForTaskGroup(query.job, query.group)
if err != nil {
return nil, fmt.Errorf("failed to get total alloacted CPU for taskgroup: %v", err)
return nil, fmt.Errorf("failed to get total allocated CPU for taskgroup: %v", err)
}

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

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

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

0 comments on commit d05ab8f

Please sign in to comment.