cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No data available and nothing feeds dashboard after configure JavaScript Agent

Evan.Li
Explorer

I have injected adrum.js into my Front End page by modifying Apache following the official guideline.

 

<Location "/">
        AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html
        Substitute "s#<head>#<head><script>window['adrum-start-time'] = new Date().getTime();</script><script>(function(config){config.appKey='${APPD_BROWSER_APP_KEY}';})(window['adrum-config'] || (window['adrum-config'] = {}));</script><script src='https://cdn.appdynamics.com/adrum/adrum-latest.js'></script>#inq"
</Location>

 

 

And I can see the adrum-latest.js is successfully replace <head> label with the contents as expected, when I check page's element in browser's development mode.

 

After that I can see some data traffic like calling col.eum-appdynamics.com with
/eumcollector/beacons/browser/v1/MY_CORRECT_APP_KEY/adrum

And there is always a 200 OK response with no response body.

 

But I can't see anything in my app's dashboard in AppDynamic's controller. 

I mean no data at all, every column is 0.

 

And I also try changes this app's APP_KEY into another working perfectly normal app's APP_KEY.

But still, no data feeds to the 'working perfectly normal app'.

 

Can anyone gives me a hint that where should I begin troubleshooting this problem?

9 REPLIES 9

Rakesh.Maurya
Adventurer

Kindly help us on this as this is blocking critic feature in dev

Hi Guys

 

Can you advise on the following

 

1. Please provide the full script that has been added into your pages, the piece you used from the Controller

 

Will look something like this, might not have all

<script charset="UTF-8" type="text/javascript">
window["adrum-start-time"] = new Date().getTime();
(function(config){
config.appKey = "XX-EAQ-AAA";
config.adrumExtUrlHttp = "http://cdn.appdynamics.com";
config.adrumExtUrlHttps = "https://cdn.appdynamics.com";
config.beaconUrlHttp = "http://fra-col.eum-appdynamics.com";
config.beaconUrlHttps = "https://fra-col.eum-appdynamics.com";
})(window["adrum-config"] || (window["adrum-config"] = {}));
</script>
<script src="//cdn.appdynamics.com/adrum/adrum-20.9.0.3268.js"></script>

 

2. Is this a SaaS Controller? If so can you advise in which region is it hosted, Americas, EMEA, or APAC

3. Which version of the Controller an agent are you using?

 

Thanks



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Learn more about me in the Community Member Spotlight Q & A

Hello Mario,

Answer 1)

<script>window['adrum-start-time'] = new Date().getTime();</script><script>(function(config){config.appKey='EC-AAB-NWH';})(window['adrum-config'] || (window['adrum-config'] = {}));</script><script src='//cdn.appdynamics.com/adrum/adrum-20.12.0.3360.js'></script><script>window['adrum-start-time'] = new Date().getTime();</script><script>(function(config){config.appKey='EC-AAB-NWH';})(window['adrum-config'] || (window['adrum-config'] = {}));</script><script src='//cdn.appdynamics.com/adrum/adrum-20.12.0.3360.js'></script>

Answer 2)

Yes it is SaaS controller.  https://testpb.saas.appdynamics.com/controller (non-prod) hosted in EMEA 

Answer 3) The script is injected through apache 2.4 for EUM application. adrum version 20.12.0.33.60  we also tried with adrun_latest.js but nothing is reported

 

 

 
 
 

 

Hi Rakesh

 

You are missing the following sections in your script, the agent needs to know where to send the data to

 

Below is the EMEA Details, please add these in as my example above, redeploy and test again

 

config.adrumExtUrlHttp = "http://cdn.appdynamics.com";
config.adrumExtUrlHttps = "https://cdn.appdynamics.com";
config.beaconUrlHttp = "http://fra-col.eum-appdynamics.com";
config.beaconUrlHttps = "https://fra-col.eum-appdynamics.com";

 

When you open the web page, use developer options.

In the network options after reloading the page, you should see 3 adrum piecesAdrum_Checks.png Please see screenshot attached

 

I believe due to you not having the beacon section, it doesn't know where to send the data to.

 

The complete script with Beacon Details you should be able to find under Configuration of the EUM app, under Javascript instrumentation

 

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Learn more about me in the Community Member Spotlight Q & A

Capture1.JPG

i can see above in network options of browser. I have updated the script with Beacon details. No luck 

 

Below substitute i have added in my adrum.conf file in Apache 

s#<head>#<head><script charset='UTF-8' type='text/javascript'> window['adrum-start-time'] = new Date().getTime();(function(config){config.appKey='EC-AAB-NWH';config.adrumExtUrlHttp = 'http://cdn.appdynamics.com'; config.adrumExtUrlHttps = 'https://cdn.appdynamics.com';config.beaconUrlHttp = 'http://fra-col.eum-appdynamics.com';config.beaconUrlHttps = 'https://fra-col.eum-appdynamics.com';})(window['adrum-config'] || (window['adrum-config'] = {}));</script><script src='//cdn.appdynamics.com/adrum/adrum-20.12.0.3360.js'></script>#inq

hello,

I can see data getting reported. I think the issue is resolved. Just one point, I was following the guide 

https://docs.appdynamics.com/display/PRO21/Injection+Using+Apache

and here the sample script for a substitute is different and that caused the problem.

is it outdated or I am checking the wrong version?

 

Hi Rakesh

 

I believe there can be an improvement to that page of documentation:), It makes the assumption that you know how to put the full script in the place where it needs to go.

 

Going forward, always create the EUM Application and it will provide you with the complete script you need to inject into your application

 

You access this, by going into the EUM application, click on configuration and then selecting Configure JavaScript agent. 

 

ADRUM_Script.png



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Learn more about me in the Community Member Spotlight Q & A

Thanks for helping @Mario.Morelli!

 

@Rakesh.Maurya and @Mario.Morelli I will reach out to the Docs team to see if we can improve that document. If you have any further feedback on what was confusing/wrong or missing, please let me know so I can pass that along!


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

Hi @Rakesh.Maurya,

 

I wanted to let you know I worked with the Docs team to get the piece of documentation you mentioned above updated.

 

The update in the Documentation covers this:

 

 The misunderstanding is that the customer should copy the substitute script and only replace the EUM App Key, which might result in them not having all the configurations they might normally have in their application. 

 

Thanks for letting us know it was confusing and do let us know if you find things like this again.


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.