fix cpu metric
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m32s

This commit is contained in:
Lee 2024-04-17 16:37:55 +01:00
parent a47db6d843
commit 3d17798f30

View File

@ -15,6 +15,11 @@ public class CpuUsageMetric extends DoubleMetric {
super("cpu_usage");
}
@Override
public boolean isCollector() {
return true;
}
@Override
public void collect() {
this.setValue(OS_BEAN.getProcessCpuLoad() * 100);