Not getting apm service environment

I am not getting the service.environment in kibana/elasticsearch as expected,
My config in django settings

ELASTIC_APM = {
    'SERVICE_NAME': 'backend',
    'SECRET_TOKEN': 'myroken',
    'SERVER_URL': 'myaddress',
    'ELASTIC_APM_ENVIRONMENT': 'DEV',
    'DJANGO_TRANSACTION_NAME_FROM_ROUTE': True,
}

APM
Kibana version: 7.9.2

Elasticsearch version: 7.9.2

APM Server version: 7.9.2

APM Agent language and version: django2.2 /python3.6 elastic-apm==5.10.0

Hi @soudhaf Welcome to the community.

I think per this it should just look like below

ELASTIC_APM = {
   'SERVICE_NAME': 'backend',
   'SECRET_TOKEN': 'myroken',
   'SERVER_URL': 'myaddress',
   'ENVIRONMENT': 'DEV',
   'DJANGO_TRANSACTION_NAME_FROM_ROUTE': True,
}
1 Like

Thanks, worked.

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