Hi
I work on CentOS7 VmWARE virtual machine :
Django + apm-agent : Machine 1 ip : 192.168.232.135
Apm-server + Elasticsearch + Kibana : 192.168.232.131
I try to configure stack Django == Apm-agent == Apm-Server == Elasticsearch == Kibana.
But when i click on apm menu in Kibana, I get :
No services were found
By clicking on "setup Instructions" I get :
For Server status : You have correctly setup APM-Server
For Agent status : Data successfully received from one or more agents
For Load Kibana objects : 16 saved objects successfully added
But when i click on launch APM i get nothing in APM kibana's page, no agent.
My APM-agent configuration :
My django version is :
[root@localhost ~]# python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.import django
django.VERSION
(1, 8, 18, 'final', 0)
I follow install instruction from here APM avec Elastic Observability | Elastic for django app :
I install elastic-apm in my django virtualenv :
pip install elastic-apm
version of elastic-apm :
(django_pod) [pod@localhost root]$ pip list | grep elastic-apm
elastic-apm 3.0.1
Installed applications list
INSTALLED_APPS = (
# put it in first !!
# Installation — django-modeltranslation dev documentation
'modeltranslation',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# Pages statiques
'django.contrib.sites',
'django.contrib.flatpages',
# Applications tierces
'ckeditor',
'filer',
'easy_thumbnails',
'elasticapm.contrib.django',
# https://bitbucket.org/cpcc/django-cas -> application modifiée pour ajout
# gateway et double authentification
'django_cas_gateway',
'taggit',
'taggit_templatetags',
'djangoformsetjs',
'captcha',
'bootstrap3',
'rest_framework',
'rest_framework.authtoken',
'lti_provider',
# Applications locales
'pods',
'core',
'h5pp',
)
Activated middleware components
MIDDLEWARE_CLASSES = (
'elasticapm.contrib.django.middleware.TracingMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Pages statiques
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
Configuration ELASTIC_APM
ELASTIC_APM = {
'DEBUG' : True,
'SERVICE_NAME':'PODv1',
'SERVER_URL' : 'http://192.168.232.131:8200',
}
I split my post cause of post caractère limit