@@ -1118,14 +1118,14 @@ func (tr *TaskRunner) UpdateStats(ru *cstructs.TaskResourceUsage) {
1118
1118
//TODO Remove Backwardscompat or use tr.Alloc()?
1119
1119
func (tr * TaskRunner ) setGaugeForMemory (ru * cstructs.TaskResourceUsage ) {
1120
1120
if ! tr .clientConfig .DisableTaggedMetrics {
1121
- metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "rss" },
1122
- float32 (ru .ResourceUsage .MemoryStats .RSS ), tr .baseLabels )
1123
1121
metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "rss" },
1124
1122
float32 (ru .ResourceUsage .MemoryStats .RSS ), tr .baseLabels )
1125
1123
metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "cache" },
1126
1124
float32 (ru .ResourceUsage .MemoryStats .Cache ), tr .baseLabels )
1127
1125
metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "swap" },
1128
1126
float32 (ru .ResourceUsage .MemoryStats .Swap ), tr .baseLabels )
1127
+ metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "usage" },
1128
+ float32 (ru .ResourceUsage .MemoryStats .Usage ), tr .baseLabels )
1129
1129
metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "max_usage" },
1130
1130
float32 (ru .ResourceUsage .MemoryStats .MaxUsage ), tr .baseLabels )
1131
1131
metrics .SetGaugeWithLabels ([]string {"client" , "allocs" , "memory" , "kernel_usage" },
@@ -1138,6 +1138,7 @@ func (tr *TaskRunner) setGaugeForMemory(ru *cstructs.TaskResourceUsage) {
1138
1138
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "rss" }, float32 (ru .ResourceUsage .MemoryStats .RSS ))
1139
1139
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "cache" }, float32 (ru .ResourceUsage .MemoryStats .Cache ))
1140
1140
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "swap" }, float32 (ru .ResourceUsage .MemoryStats .Swap ))
1141
+ metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "usage" }, float32 (ru .ResourceUsage .MemoryStats .Usage ))
1141
1142
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "max_usage" }, float32 (ru .ResourceUsage .MemoryStats .MaxUsage ))
1142
1143
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "kernel_usage" }, float32 (ru .ResourceUsage .MemoryStats .KernelUsage ))
1143
1144
metrics .SetGauge ([]string {"client" , "allocs" , tr .alloc .Job .Name , tr .alloc .TaskGroup , tr .allocID , tr .taskName , "memory" , "kernel_max_usage" }, float32 (ru .ResourceUsage .MemoryStats .KernelMaxUsage ))
0 commit comments