aws/amazon-cloudwatch-agent

Set sampling rate in CloudWatch agent

ShawneeY opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
A way to set sampling_rate in CloudWatch agent.

Previous feture_request was closed. It was suggested to implement sampling in application_code and leverage the added filters to mimic sampling logs.

Describe the solution you'd like
First-class support of setting sampling_rate as part of the agent config file

Describe alternatives you've considered
Implementing sampling in application_code by flagging sampled/unsampled logs; then instruct CWAgent to only include sampled log_lines via the filters configuration.

Additional context
Support setting sampling rate is a common feature in log_systems. E.g. Sentry

Also, what is the default sampling rate in CloudWatch ? is it 100% since cofiguring sampling_rate is not directly supported ?

Hi!
Thank you for bringing this to our attention. I have created a feature request ticket for this.