File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/builtin/apm/nomad/plugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func (a *APMPlugin) getTaskGroupResourceUsage(query *taskGroupQuery) ([]float64,
79
79
// does not vary between allocations.
80
80
allocatedCPU , err := a .getAllocatedCPUForTaskGroup (query .job , query .group )
81
81
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 )
83
83
}
84
84
85
85
// Create the metric function now that the total allocated CPU is known
@@ -92,11 +92,11 @@ func (a *APMPlugin) getTaskGroupResourceUsage(query *taskGroupQuery) ([]float64,
92
92
}
93
93
case queryMetricMemAllocated :
94
94
95
- // Similarly to `queryMetricCPUAllocated` we must calculate the alloacted
95
+ // Similarly to `queryMetricCPUAllocated` we must calculate the allocated
96
96
// memory since it's not provided as a metric.
97
97
allocatedMem , err := a .getAllocatedMemForTaskGroup (query .job , query .group )
98
98
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 )
100
100
}
101
101
102
102
// Create the metric function now that the total allocated memory is known.
You can’t perform that action at this time.
0 commit comments