1. A method comprising: determining, by a computer system, a set of values defining an anomaly bound for a metric related to a service provided by a cloud computer system, wherein the service is established by components in the cloud computer system, and wherein the components include a first container and a second container executing in the cloud computer environment, and wherein the first container is a child container in the second container; configuring the first container to include an anomaly detection and resolution component (ADRC); detecting, by the ADRC, in the first container, an anomaly event of an anomaly related to operation of the service in the cloud computer system, wherein the anomaly event is detected based on a value of the metric not satisfying the anomaly bound for the metric; identifying a policy for resolving the anomaly in the first container; determining that a rule in the policy is satisfied by the anomaly; and initiating a corrective action to resolve the anomaly, the corrective action being identified in the policy based on the rule being satisfied.