We have enabled APM on our Nest Backend, the agent is hosted separately on a Machine and we communicate via Hostname and URL, but we see Our CPU and Memory chocking with agent in a regular pattern, we even doubled our APM app resources(CPU and Memory) but it somehow again expand to crash, we disable initializing datadog apm and our application works fine. We have attached a screenshot for the trend being observed
This is our configuration for datadog
import tracer from 'dd-trace';
export function initDatadog() {
tracer.init({
service: 'popstack-api',
env: process.env.DD_ENV,
version: '1.0.0',
logInjection: true,
startupLogs: true,
url: process.env.DD_URL,
hostname: process.env.DD_HOSTNAME || 'localhost',
tags: {
service: 'popstack-api',
env: process.env.DD_ENV || 'development'
},
runtimeMetrics: true
});
console.log('Datadog APM initialized');
}
We appreciate help to find the root cause and get this fix, so we can continue our monitoring.