Monitoring of Cloud Custodian

Please visit my website and subscribe to my youtube channel for more articles

https://devops4solutions.com/

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.

Introduction

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.

Metrics

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

Image for post

Written by

Devops Automation Enginneer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store