We are using the Elastic APM agent to monitor our applications. However, we only want to collect metrics and do not want to capture traces for the transactions.
Is there a way to disable trace collection while retaining metrics in the Elastic APM agent? If so, could you please guide us on how to configure this?
Unfortunately there is no simple way to do that with the "classic" APM agents currently. You could however drop data with an ingest pipeline, so it would not consume any storage.
As a probably simpler alternative, the OpenTelemetry agent allows to distinguish the collection on a per-signal basis, so using any of the Elastic distributions (EDOT) or the upstream OpenTelemetry distributions/agents would allow to do that easily.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.