apm-server
apm-server copied to clipboard
Add include/exclude filtering for metrics to APM integration
When collecting metrics with the prometheus integration we have the option to specify include/exclude filters

We should probably have a similar mechanism when using APM server to collect metrics (for example, using OpenTelemetry metrics SDK). This should help control bandwidth between apm-server and elasticsearch when collecting telemetry from a thoroughly instrumented process.
@chrisdistasio @cyrille-leclerc any thoughts on this?
I had a new thought on this that it might also be beneficial to give the agents options to not send certain metrics. Though maybe this is too much to happen in-process.