Skip to content

Commit

Permalink
CgroupCpuSetMonitor: Initialize the cgroup discoverer (#16621)
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyachakilam authored Jun 20, 2024
1 parent ae70e18 commit 35709de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.apache.druid.java.util.emitter.service.ServiceMetricEvent;
import org.apache.druid.java.util.metrics.cgroups.CgroupDiscoverer;
import org.apache.druid.java.util.metrics.cgroups.CpuSet;
import org.apache.druid.java.util.metrics.cgroups.ProcSelfCgroupDiscoverer;

import java.util.Map;

Expand All @@ -41,7 +42,7 @@ public CgroupCpuSetMonitor(CgroupDiscoverer cgroupDiscoverer, final Map<String,

public CgroupCpuSetMonitor(final Map<String, String[]> dimensions, String feed)
{
this(null, dimensions, feed);
this(new ProcSelfCgroupDiscoverer(), dimensions, feed);
}

public CgroupCpuSetMonitor(final Map<String, String[]> dimensions)
Expand Down

0 comments on commit 35709de

Please sign in to comment.