amazon-cloudwatchamazon-kinesisamazon-cloudwatch-metrics

How to send cloudwatch metrics data to kinesis data stream


I am trying to send the perfmon data such as memory, disk space, CPUtilization data points to kinesis data stream.

in order to do that I installed CW agent on the EC2 instance and created a CW log group. the log group is subscribed to the kinesis stream. I can see the metrics getting populated in the CW however I don't have a way to send these metrics to the kinesis and the logs which are pushed to the stream doesn't help in my next steps.

Is there a straight forward way to send the metrics data to kinesis? I don't want to add an extra layer of script in between. Please suggest!


Solution

  • You can not directly stream CloudWatch metrics (data-points) to a Kinesis stream.

    CloudWatch Logs you can, by creating a subscription filter on the LogGroup with Kinesis.

    For most of the use cases involving metrics the API GetMetricData or GetMetricStatistic should be enough.