control and metrics for distributed applications