I want to configure agent APM Python Django with Elastic Agent

I want to configure agent APM Python Django with Elastic Agent, but don't know where this configuration goes, what es the file or filepath please?

//

Add the agent to the installed apps

INSTALLED_APPS = (
'elasticapm.contrib.django',

...

)

ELASTIC_APM = {

Set the required service name. Allowed characters:

a-z, A-Z, 0-9, -, _, and space

#'SERVICE_NAME': 'unknown-python-service',

Use if APM Server requires a secret token

'SECRET_TOKEN': '******',

Set the custom APM Server URL (default: http://localhost:8200)

'SERVER_URL': '************',

Set the service environment

'ENVIRONMENT': 'production',
}

To send performance metrics, add our tracing middleware:

MIDDLEWARE = (
'elasticapm.contrib.django.middleware.TracingMiddleware',
#...
)
//

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.