example of diet sed and agents cooperating for distributed scheduling using custom metrics