I signed up for Elasticsearch (hosted) a week ago. I have installed the latest python clients and am using a supported Django version (2.2). I cannot for the life of me get an error to propagate to the dashboard. What's going on?
(env) james@Jamess-MacBook-Pro src % python manage.py elasticapm test --environment develop
Could not register elasticapm.metrics.sets.cpu.CPUMetricSet metricset: psutil not found. Install it to get system and process metrics
Could not register elasticapm.metrics.sets.cpu.CPUMetricSet metricset: psutil not found. Install it to get system and process metrics
Trying to send a test error to APM Server using these settings:
SERVICE_NAME: default
SECRET_TOKEN: XXXXXXXXXXXXXXXXXX
SERVER: https://XXXXXXXXXXXXXXXXXXXXXXXXXXXX.us-central1.gcp.cloud.es.io:9243
Success! We tracked the error successfully!
You should see it in the APM app in Kibana momentarily.
Look for "TestException: Hi there!" in the Errors tab of the default app
Failed to submit message: 'HTTP 404: {"statusCode":404,"error":"Not Found","message":"Not Found"}'
Traceback (most recent call last):
File "/Users/james/Repos/DivDot/api/env/lib/python3.8/site-packages/elasticapm/transport/base.py", line 227, in _flush
self.send(data)
File "/Users/james/Repos/DivDot/api/env/lib/python3.8/site-packages/elasticapm/transport/http.py", line 106, in send
raise TransportException(message, data, print_trace=print_trace)
elasticapm.transport.base.TransportException: HTTP 404: {"statusCode":404,"error":"Not Found","message":"Not Found"}
I have been unable to find in the documentation any sign of how or why this error is coming about. I found one related issue on github, but it was closed after the original poster updated to the latest version (which I am currently using).
Any help is greatly appreciated.