APM Filters, Sampling Grouping - How to reduce Sample Rate
mikeyg
Posted on
Jul 20 2022
Hi Raygun
We've recently enabled APM on our production environments and are trying to keep the sample rate & cost down using Filters, Sample Rate and URL Grouping.
We've started with: - a really low some low sample rate ( 1 sample per 24 hours ) - filtered out all the URL's we are not interested in - we are a SaaS provider so have heaps of subdomains with the same URL Path, so we added https://* to group all the subdomains together. - we have > 20 application servers with raygun installed
What we are seeing is > 1 sample rate per grouped URL per day.
Can you give us some tips on how we might reduce this? The only thing we can think of is that the sample limits applied per server and not per project.
Cheers, Mike
Deleted User
Raygun
Posted on
Jul 21 2022
Hi Mike,
The sample limits should be applied per Raygun application, but the effect you are seeing is likely because grouping is applied after sampling.
You could try a per-trace sampling rate? The per-trace sampling doesn't take URLs into account, so there's a chance that low-traffic URLs could be missed entirely, but that might be a better fit for you?
Kind regards, Deacon
mikeyg
Posted on
Jul 21 2022
Hi Duncan
That's good to know that grouping is done after sampling, will switch to a per-trace sampling and see what that gives us.
Thanks, Mike