Please visit my website and subscribe to my youtube channel for more articles
Thank you for Subscribing! If you have not, Subscribe now! DevOps4Solutions helps in providing end to end solution and…
In this blog, we will explore how we can do the Monitoring of Cloud Custodian. How we can accomplish what resources is modified as per the Cloud Custodian policy.
Cloud Custodian generates a consistent set of outputs for any given policy.
Custodian automatically generates per policy outputs with resources metrics and archives serialization for all resources that match against a policy’s filters.
By default Cloud Custodian generates CloudWatch metrics on each policy for the number of resources that matched the set of filters, the time to retrieve and filter the resources, and the time to execute actions.
In order to enable metrics output, the boolean metrics flag needs to be specified when running Cloud Custodian:
c7n-org run -c policy/accounts.yml -s output --metrics -u policy/vpcFlowLog.yml
After this, you will see the below metrics created on your cloudwatch console