Reader small image

You're reading from  Kibana 7 Quick Start Guide

Product typeBook
Published inJan 2019
PublisherPackt
ISBN-139781789804034
Edition1st Edition
Tools
Right arrow
Author (1)
Anurag Srivastava
Anurag Srivastava
author image
Anurag Srivastava

Anurag Srivastava is a senior technical lead in a multinational software company. He has more than 12 years' experience in web-based application development. He is proficient in designing architecture for scalable and highly available applications. He has handled development teams and multiple clients from all over the globe over the past 10 years of his professional career. He has significant experience with the Elastic Stack (Elasticsearch, Logstash, and Kibana) for creating dashboards using system metrics data, log data, application data, and relational databases. He has authored three other booksMastering Kibana 6.x, and Kibana 7 Quick Start Guide, and Learning Kibana 7 - Second Edition, all published by Packt.
Read more about Anurag Srivastava

Right arrow

Configure Django application with APM

I will take an example of an application for blog creation and listing API using Python Django framework. First, we have to install the APM agent for Python Django:

pip install elastic-apm

Then, we have to configure the agent with the Django application; we need to make the following changes in the settings.py file:

# Add the agent to the installed apps
INSTALLED_APPS = (
'elasticapm.contrib.django',
# ...
)

ELASTIC_APM = {
# Set required service name. Allowed characters:
# a-z, A-Z, 0-9, -, _, and space
'SERVICE_NAME': 'django application',

# Use if APM Server requires a token
'SECRET_TOKEN': 'mysecrettoken',

# Set custom APM Server URL (default: http://localhost:8200)
'SERVER_URL': 'http://localhost:8200',
}

# To send performance metrics, add our tracing middleware...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Kibana 7 Quick Start Guide
Published in: Jan 2019Publisher: PacktISBN-13: 9781789804034

Author (1)

author image
Anurag Srivastava

Anurag Srivastava is a senior technical lead in a multinational software company. He has more than 12 years' experience in web-based application development. He is proficient in designing architecture for scalable and highly available applications. He has handled development teams and multiple clients from all over the globe over the past 10 years of his professional career. He has significant experience with the Elastic Stack (Elasticsearch, Logstash, and Kibana) for creating dashboards using system metrics data, log data, application data, and relational databases. He has authored three other booksMastering Kibana 6.x, and Kibana 7 Quick Start Guide, and Learning Kibana 7 - Second Edition, all published by Packt.
Read more about Anurag Srivastava