Kibana version : 7.10.0
Elasticsearch version : 7.10.0
APM Server version : 7.10.1
APM Agent language and version : Java - elastic-apm-agent-1.19.0.jar
Browser version : Firefox 83.0
Original install method (e.g. download page, yum, deb, from source, etc.) and version :
- docker for elasticsearch, kibana, logstash and apm-server
- apt-get for tomcat9
Good day,
I'm trying to monitore an apache tomcat9, which I set up locally under Ubuntu and can successfully reach under http://localhost:8080
So I naturally followed these instructions: https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html
for the manuel setup with -javaagent
flag.
I downloaded the elastic-apm-agent-1.19.0.jar from maven central.
Then I created bin/setenv.sh
with the content:
export CATALINA_OPTS="$CATALINA_OPTS -javaagent:<path-to-my-elastic-apm-agent>.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"
Afterwards I made the setenv.sh executable with
chmod +x bin/setenv.sh
I executed the setenv.sh with sh setenv.sh
and restarted the tomcat server with
sudo service tomcat9 restart
But Kibana still tells me that: No data has been received from agents yet. The apm-server is reachable under http://apm-server:8200.
apm-server. yml:
apm-server:
host: "0.0.0.0:8200"
output.elasticsearch:
hosts: ["https://es01:9200"]
username: "elastic"
password: <my_pw>
ssl.certificate_authorities: ["/usr/share/elasticsearch/config/certificates/ca/ca.crt"]
The apm-server logs:
2020-12-14T13:11:01.980Z INFO [publisher_pipeline_output] pipeline/output.go:143 Connecting to backoff(elasticsearch(https://es01:9200))
2020-12-14T13:11:01.980Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2020-12-14T13:11:01.981Z INFO [publisher] pipeline/retry.go:223 done
2020-12-14T13:11:02.014Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.0
2020-12-14T13:11:02.100Z INFO [license] licenser/check.go:35 License is active for Basic
2020-12-14T13:11:02.100Z INFO [license] licenser/check.go:22 Trial license active
2020-12-14T13:11:02.100Z INFO [license] licenser/es_callback.go:51 Elasticsearch license: Trial
2020-12-14T13:11:02.102Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.0
2020-12-14T13:11:02.514Z INFO [index-management] idxmgmt/manager.go:84 Overwrite ILM setup is disabled.
2020-12-14T13:11:02.515Z INFO [index-management] idxmgmt/manager.go:203 Set setup.template.name to 'apm-%{[observer.version]}'.
2020-12-14T13:11:02.515Z INFO [index-management] idxmgmt/manager.go:205 Set setup.template.pattern to 'apm-%{[observer.version]}*'.
2020-12-14T13:11:02.545Z INFO template/load.go:97 Template apm-7.10.1 already exists and will not be overwritten.
2020-12-14T13:11:02.546Z INFO [index-management] idxmgmt/manager.go:211 Finished loading index template.
2020-12-14T13:11:02.551Z INFO [index-management.ilm] ilm/std.go:139 do not generate ilm policy: exists=true, overwrite=false
2020-12-14T13:11:02.551Z INFO [index-management] idxmgmt/manager.go:242 ILM policy apm-rollover-30-days successfully loaded.
2020-12-14T13:11:02.576Z INFO template/load.go:97 Template apm-7.10.1-error already exists and will not be overwritten.
2020-12-14T13:11:02.577Z INFO [index-management] idxmgmt/manager.go:223 Finished template setup for apm-7.10.1-error.
2020-12-14T13:11:02.584Z INFO [index-management] idxmgmt/manager.go:259 Write alias apm-7.10.1-error successfully generated.
2020-12-14T13:11:02.605Z INFO template/load.go:97 Template apm-7.10.1-metric already exists and will not be overwritten.
2020-12-14T13:11:02.606Z INFO [index-management] idxmgmt/manager.go:223 Finished template setup for apm-7.10.1-metric.
2020-12-14T13:11:02.612Z INFO [index-management] idxmgmt/manager.go:259 Write alias apm-7.10.1-metric successfully generated.
2020-12-14T13:11:02.633Z INFO template/load.go:97 Template apm-7.10.1-profile already exists and will not be overwritten.
2020-12-14T13:11:02.634Z INFO [index-management] idxmgmt/manager.go:223 Finished template setup for apm-7.10.1-profile.
2020-12-14T13:11:02.640Z INFO [index-management] idxmgmt/manager.go:259 Write alias apm-7.10.1-profile successfully generated.
2020-12-14T13:11:02.661Z INFO template/load.go:97 Template apm-7.10.1-span already exists and will not be overwritten.
2020-12-14T13:11:02.661Z INFO [index-management] idxmgmt/manager.go:223 Finished template setup for apm-7.10.1-span.
2020-12-14T13:11:02.667Z INFO [index-management] idxmgmt/manager.go:259 Write alias apm-7.10.1-span successfully generated.
2020-12-14T13:11:02.694Z INFO template/load.go:97 Template apm-7.10.1-transaction already exists and will not be overwritten.
2020-12-14T13:11:02.694Z INFO [index-management] idxmgmt/manager.go:223 Finished template setup for apm-7.10.1-transaction.
2020-12-14T13:11:02.700Z INFO [index-management] idxmgmt/manager.go:259 Write alias apm-7.10.1-transaction successfully generated.
2020-12-14T13:11:02.700Z INFO [index-management] idxmgmt/manager.go:126 Finished index management setup.
2020-12-14T13:11:02.706Z INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm
2020-12-14T13:11:02.709Z INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_user_agent
2020-12-14T13:11:02.712Z INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_user_geo
2020-12-14T13:11:02.716Z INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_ingest_timestamp
2020-12-14T13:11:02.718Z INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_remove_span_metadata
2020-12-14T13:11:02.719Z INFO [pipelines] pipeline/register.go:56 Registered Ingest Pipelines successfully.
2020-12-14T13:11:02.719Z INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(https://es01:9200)) established
I not sure where my error lies, therefore I looking forward to any help.