Hi all,
I need to collect data from java apm agent to apm server.
My jar is simple java application which has only internal db calls dont have any rest or serer and it is not a web application.
I need to monitor those db queries please help me with this.
Kibana version:7.2.1
Elasticsearch version:7.2.1
APM Server version:7.2.1
APM Agent language and version:1.14.0 java
Browser version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version:download page
**Fresh install or upgraded from other version?**fresh install
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
What is the nature of your application ? does it have a GUI or any command-line interface ?
Agent has two main concepts to represent what is being executed within the application:
transaction: enclosing scope of what is observed, mostly entry point to the application like "processing an http request for a web-application".
spans: unit of work, which is often delegated to another service, like a database query, calling another web-service, ...
Having only an "internal" database would not make much difference, but for example if you have an application with a GUI our agent won't provide out-of-the-box support for common GUI frameworks like Swing or AWT, and you'll have to use agent API to define transactions.
it dont have any gui i have one main class whish has db connection details and executing one query.i have export this project as jar and attached to elastic apm.no data is captured fron elastic agent am getting
Also, you have to make sure that elastic-apm-agent jar is not in your application dependencies, you should only add to the command line when starting the application using -javaagent argument.
ERROR:
2020-04-08 17:38:54.761 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
Error: Could not find or load main class sample_apm.com.MessengerMain
2020-04-08 17:38:57.109 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to STOPPED state
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.