AppD Archive

Does AppDynamics allows to monitor Clojure Applications

CommunityUser
Splunk Employee
Splunk Employee

Hi all,

I have a JVM application writen in Clojure. It runs in an embedded Jetty (runs with ring.adapter.jetty).

I've attached the Java Agent, the server is listed in AppDynamics console, however no transactions or load data show up.

Does AppDynamics allows to monitor Clojure Applications? Any way to make it work?

Thanks.

1 Solution

Arun_Dasetty
Super Champion

Hi,

We should be able to monitor any java based webapp as long as the target compiled classes are .class , Can you define POJO rules on Clojure classes and see if that helps?

https://docs.appdynamics.com/display/PRO41/POJO+Entry+Points

In some cases, we might not auto discover BTs could be due to that we are hitting out of box supported entry points like servle, struts, JMS etc and we could still continue to define custom pojo rules on target class and monitor as BT

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

We should be able to monitor any java based webapp as long as the target compiled classes are .class , Can you define POJO rules on Clojure classes and see if that helps?

https://docs.appdynamics.com/display/PRO41/POJO+Entry+Points

In some cases, we might not auto discover BTs could be due to that we are hitting out of box supported entry points like servle, struts, JMS etc and we could still continue to define custom pojo rules on target class and monitor as BT

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Yes, it works!

For anyone interested in this, Clojure generates anonymous inner class for everyfunction declared in a given namespace and creates a method called "invoke" in it.

For instance if you have a function like the below:

(ns myproject)

(defn my-function [])

You should create the following rule in appdynamics:

class name contains: "myproject$my_function"

method name contains: invoke

Note that clojure replaces "-" by "_" when translating to java. I used contains rule just in case, but I think equals works also.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...