Skip to content

Commit 1c9b007

Browse files
authored
Fix resource based tuner metrics missing temporal_ prefix (#2710)
1 parent b160fb0 commit 1c9b007

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

temporal-sdk/src/main/java/io/temporal/worker/MetricsType.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,12 @@ private MetricsType() {}
191191
// Resource tuner
192192
//
193193
// Tagged with namespace & task_queue
194-
public static final String RESOURCE_MEM_USAGE = "resource_slots_mem_usage";
195-
public static final String RESOURCE_CPU_USAGE = "resource_slots_cpu_usage";
196-
public static final String RESOURCE_MEM_PID = "resource_slots_mem_pid_output";
197-
public static final String RESOURCE_CPU_PID = "resource_slots_cpu_pid_output";
194+
public static final String RESOURCE_MEM_USAGE =
195+
TEMPORAL_METRICS_PREFIX + "resource_slots_mem_usage";
196+
public static final String RESOURCE_CPU_USAGE =
197+
TEMPORAL_METRICS_PREFIX + "resource_slots_cpu_usage";
198+
public static final String RESOURCE_MEM_PID =
199+
TEMPORAL_METRICS_PREFIX + "resource_slots_mem_pid_output";
200+
public static final String RESOURCE_CPU_PID =
201+
TEMPORAL_METRICS_PREFIX + "resource_slots_cpu_pid_output";
198202
}

0 commit comments

Comments
 (0)