Elasticsearch APM usage for Custom java applicatio call methods

Hi,
I am using elasticsaerch APM to monitor certain custom metrics of my java application(tomcat).
ELK version - 6.7 with Xpack.
currently I am using APM agent standalone jar version 1.9.0
My requirement - We are planning to move to ELK stack and we wish to monitor few custom set of application metrics.
As in cloudwatch we create a metric and then emit those metrics using AWS sdk into custom namespaces, i wish to do the same here, but right now i am unable to see any of the custom metrics, all i can see on the apm dashboard PFA for image


i have some more metrics exposed in the application methods and classes to measure the latencies of those calls and i want to capture those metrics as well.
Any help will be highly appreciated. @spinscale
Thanks in advance

Currently, we don't have an API to programmatically capture metrics but we plan to integrate with Micrometer in the future.

What you can do now, especially if it's about response time for a method, is to use the tracer API to create a span for the method, for example with the @CaptureSpan annotatoin or the trace_methods configuration option.

What are some of the metrics you want to track and where/how would you like them to be visualized?

Already, you can use Micrometer's Elasticsearch registry to send metrics to Elasticsearch. You could then create a custom Kibana dashboard to visualize those metrics.

I hope that helps :slight_smile:

Cheers,
Felix

Thanks a lot @felixbarny for prompt reply, i was actually going through this link https://www.elastic.co/guide/en/apm/agent/java/master/public-api.html and by using annotations and start the counter.
We will be visualising them on kibana
My application has some latency metrics for few internal calls we want to create alarms on top of those metrics in case of threshold breach.
I will look into elasticsearch registry documentation if it serves my purpose, in case of any issues i will revert on this ticket itself.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.