I'm supposed to work on an existing product which is using ELK. The product has APM support for web services. Now my task is to develop a Batch framework for to be used by that product. Is it possible to configure the APM for batch programs??
If possible, please share me the docs for it.
I've been searching for it, but most of the results were like ELK's APM supports only for spring boot and servlets.
I've gone through the docs you have been referred. But Still I can't fall into a conclusion for my problem.
Look into the following code. I have a java project using maven with following main method.
package self.library.spark.batch;
public class MySampleBatch {
public static void main(String[] args) {
MySampleBatch mySampleBatch = new MySampleBatch();
mySampleBatch.execute(args[0], args[1], args[2]);
}
private void execute(String param1, String param2, String param3) {
// HTTP REST calls using SpringRestTemplates
// Reads data from DB using SpringJDBCTemplate
// Performs JAVA Logics
// Writes data into DB using SpringJDBCTemplate
}
}
And I've built a jar my-sample-batch.jar.
Now I'm using the following command to execute my program MySampleBatch.java,
That's because nothing is starting and ending a transaction in this batch. So, add the API as a maven dependency and go over the documentation to see how to use it. For example, annotating your execute method with @CaptureTransaction should do the trick.
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.