My current
amp-server.yml:
apm-server:
host: "0.0.0.0:8200"
kibana:
host: "https://kib01:5601"
username: "elastic"
password: <my-pw>
ssl.enabled: true
ssl.certificate_authorities: ["/usr/share/elasticsearch/config/certificates/ca/ca.crt"]
output.elasticsearch:
hosts: ["https://es01:9200"]
username: "elastic"
password: <my-pw>
ssl.certificate_authorities: ["/usr/share/elasticsearch/config/certificates/ca/ca.crt"]
And the current /usr/share/tomcat9/bin/setenv.sh:
export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/<path-to-my>/elastic-apm-agent-1.19.0.jar"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.service_name=my-cool-service"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.application_packages=org.example,org.another.example"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.server_urls=http://localhost:8200"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.log_level=DEBUG"
Although according to Kibana the agent status is "No data has been received from agents yet", I can load Kibana objects and launch an APM Dashboard in Kibana, with some information about requests per minute. I don't know how much it matters that my tomcat9 is currently "blank", i.e. that nothing happened to it after the install.