Prometheus define monitoring rules with code. This allows us to apply some DevOps principles to monitoring: source control, code review and continuous integration. Additionally terraform has a rich plugin system, allowing you to configure monitoring services (like pingdom) in code.