Monitoring and automating infrastructure operations