Hi Team ,
Advance thanks for helping me out
andI am trying to monitor the flask application metrices I am getting an error like given below
Failed to submit message: "Unable to reach APM Server: HTTPSConnectionPool(host='IP', port=8300): Max retries exceeded with url: /intake/v2/events (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)'))) (url: https://IP:8300/intake/v2/events)"
The Flask code is
import requests
app = Flask(name)
app.config['ELASTIC_APM'] = {
'SERVICE_NAME': 'amtfleet',
'SECRET_TOKEN': 'hi',
'SERVER_URL': 'https://IP:8300',
'ENVIRONMENT': 'my-environment',
'LOG_LEVEL': 'debug',
'DEBUG': True
}
apm = ElasticAPM(app)
Let me know in the code what to add to get it verify the certificate for self-signed certificate I have a fleet-server.crt and key but I am not getting how to add it as trusted certificate.