@Bean
public NodeMetricsProcessor nodeMetricsProcessor(NodeAgent agent) throws Exception {
if (Utils.isLinux()) {
return new LinuxNodeMetricsProcessor(agent, "/proc/meminfo", "/proc/loadavg");
} else {
return new DefaultNodeMetricsProcessor(agent);
}
}