# create configmap for cwagent config
apiVersion: v1
kind: ConfigMap
metadata:
  name: cwagentconfig
  namespace: amazon-cloudwatch
data:
  # Configuration is in Json format. No matter what configure change you make,
  # please keep the Json blob valid.
  cwagentconfig.json: |
    {
        "agent": {
            "region": "us-east-1"
        },
        "logs": {
            "metrics_collected": {
                "kubernetes": {
                    "cluster_name": "cloudwatch-example-cluster",
                    "metrics_collection_interval": 60
                }
            },
            "force_flush_interval": 5
        }
    }
