amazon-cloudwatch-agent icon indicating copy to clipboard operation
amazon-cloudwatch-agent copied to clipboard

Set sampling rate in CloudWatch agent

Open ShawneeY opened this issue 2 years ago • 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

ShawneeY avatar Jan 23 '24 06:01 ShawneeY

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

ShawneeY avatar Jan 23 '24 06:01 ShawneeY

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

okankoAMZ avatar Feb 07 '24 19:02 okankoAMZ