AppD Archive

Custome application performance metrics

Priya_Balan
Path Finder

Hi,

    is it possible to add custome application performance metrics. If so how to do it. What is the procedure to obatin license for analytics product.

Regards,

Priya

Tags (3)
0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

Check if information at doc link helps to provide insights and see if that is what you are looking for.

https://docs.appdynamics.com/display/PRO40/Extensions+and+Custom+Metrics

https://docs.appdynamics.com/display/PRO40/Build+a+Monitoring+Extension+Using+Scripts

https://docs.appdynamics.com/display/PRO40/Install+the+Standalone+Machine+Agent

Regarding other query on analytics license, we would request you to get in touch with your sales representative or account manager to assist you further. 

Regards,

Arun

Tags (3)
0 Karma

Priya_Balan
Path Finder

Hi,

  1. Custom Metrics

               I have already tried the otpions provided in the link. But when i try to view those metrics in the Metrics browser, its listed under the infrastructure performance. But i need these custom metrics to be listed under application performance. Is there any API or any other agents or any other options which can be used for this?  THe other problem is the metric is reported with the time when its posted to the controller. Is it possible to override this time stamp

2. Analytics license

             I have posted a query from the subscription portal last week. I have also mailed the sales person through mail last week. But i havent got any response till now.

Regards,

Priya

Tags (3)
0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

Regarding issue 1, please provide screenshots from controller UI depicting the issue and also send the machine agent logs and script used to create custom metrics for more clarity and to assist you further.

Regarding the license query, We see your email id spriyabalan@gmail.com is associated to self-service eval account type and we see you cannot raise help ticket for this, we request you to get in touch with sales representative or upgrade or try saas trial /pro version with analytics option selected Or once you have provisioned saas pro trial you should be able to raise help ticket so that we can assist with, Hope that is clear.

Regards,

Arun

Tags (3)
0 Karma

Priya_Balan
Path Finder

HI,

     I have a saas trial version also. The details are as below 

https://OtherNotListed5765.saas.appdynamics.com

Account - OtherNotListed5765

Tags (3)
0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

We have access to your saas UI but could not see any agent node under the apps testagentapp testsample in controller UI, please do send the latest agent logs if they could not register at UI?

Tags (3)
0 Karma

Priya_Balan
Path Finder

Please find the attached logs. The command i use are as below

java -jar machineagent.jar -Dappdynamics.https.proxyPort=value I have used in browser settings -Dappdynamics.https.proxyHost=value I have used in browser settings

java -jar machineagent.jar -Dappdynamics.http.proxyPort=value I have used in browser settings -Dappdynamics.http.proxyHost=value I have used in browser settings

java -jar machineagent.jar -Dappdynamics.https.proxyPort=value I have used in browser settings -Dappdynamics.https.proxyHost="value I have used in browser settings"

java -jar machineagent.jar -Dappdynamics.http.proxyPort=value I have used in browser settings -Dappdynamics.http.proxyHost="value I have used in browser settings"

0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

We do not see any jvm args passed part of java -jar machineagent.jar command as per logs provided:

[main] 19 Feb 2015 16:45:26,017 INFO SystemAgent - Full Agent Registration Info Resolver using node name [Node1]

..[main] 23 Feb 2015 16:21:41,905 INFO SystemAgent - JVM Args :

JVM args if passed are listed in above logs as below:

..[main] 23 Feb 2015 16:21:41,905 INFO SystemAgent - JVM Args : -Dappdynamics.https.proxyPort=80
..[main] 23 Feb 2015 16:21:42,955 INFO SystemAgent - Full Agent Registration Info Resolver using node name [null]

However we see that earlier you have started the machineagent with Node1 and h/w data reporting fine in your saas UI as referred in screenshot listed below, but we see in recent restart you started with node name null, please let us know if any disconnect.

image.png

 We understood that you are looking for custom metrics we see error related to SampleScriptMontior monitor in earlier restart but could not find any details on SampleScriptMontior script in latest machineagent restart logs, Can you attach th archive of directory "D:\Sofwares\Appian\MachineAgent-4.0.1.0\monitors\SampleScriptMontior" and also point the screenshot in Controller UI under metric browser for path issue you are referring initially?

Regards,

Arun

0 Karma

Priya_Balan
Path Finder

Hi,

    I am able to register and start the machine agent now. but when i try to do a post like below, the metrics is not displayed in the metrics browser

http://localhost:8293/machine%20agent/metrics?name=Custom%20%20Metrics|Sample%20App|CustMetric|value=300|type=average

Regards,

Priya

0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

We see other custom metrics are reporting fine in your saas controller UI as referred in screenshot listed below, Can you please send the machien agent logs once for our review?

image.png

Regards,

Arun

0 Karma

Priya_Balan
Path Finder

Hi,

                I was trying the three options for custome metrics listed in 

 https://docs.appdynamics.com/display/PRO40/Extensions+and+Custom+Metrics

1. Java Montior - Working as expected. you have shared the screen shot.

2. HttpListener - Not working. Started the machine agent with the following command

java -Dappdynamics.http.proxyHost=IpOfTheProxyHostUsedinBrowser -Dappdynamics.http.proxyPort=proxyPortconfiguredInBrowser -Dmetric.http.listener=true -jar machineagent.jar

Posted the url

http://localhost:8293/machine%20agent/metrics?name=Custom%20%20Metrics|Sample%20App|CustMetric|value=300|type=average

http://localhost:8293/machine%20agent/metrics?name=Custom%20%20Metrics|Sample%20App|CustMetric&value=300&type=average

3.Script Montior. Script and Monitor.xml attached.

         

 The logs are attached.

Regards,

Priya

0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

Trying to replicate the script in local environment, will keep you posted , thanks for your cooperation.

It looks as per machien agent errors the script syntax is not as expected as per docs.

0 Karma

Arun_Dasetty
Super Champion

Hi Priya,

Somehow i failed to get custom metric using the script provided though tried different syntax in same script , i will try afresh with new agent and new setup and will see how it goes. apologies to inform that could not get the resolution as of now

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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

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 ...