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

Monitoring third party API

cristian_vanti1
Participant

Our webapp uses several third-party API calls directly from the user browser. Of course we can't install an agent in the third party servers so we can only use UEM to monitor them.

How can we define measures to have statistics for each API methods?

9 REPLIES 9

Nathan_mcclain
Dynatrace Pro
Dynatrace Pro

Cristian,

Have you defined that particular API within your system profile? If you were to do that you could create measures based off that and take advantage of our API breakdown dashlet. Here is a link to the API breakdown Dashlet for reference. API Breakdown

Nathan,

I was talking about external supplier API, like Facebook API, Janrain, Apigee.

Some of the services for our customers are implemented by third parties. We need to monitor if our customers experience is good but we don't have access to these third parties servers. In the User Action Purepaths dashboard, in the lower panel, I can see the calls to these services but I don't know how to create measures on them.

david_n
Inactive

Hello Cristian,

There are some measures that you can define via the system profile settings that should help you in this situation.

If you edit the system profile -> measures -> create measure -> search for third party. You will see two measures that will help you to track the third party contributions to your web page.

Third party content count - Represents the count of third party resources during a user action.

Third party content load time - Represents the duration of third party content during a user action.

There is also an out of the box business transaction called: Page actions by Third Party Hotspot.

Hope that helps,

David Nicholls

cristian_vanti1
Participant

Thanks for your answers but I need to monitor every API methods. I'll try to explain with an example.

My system is www.mysite.com

The browser uses:

  • api.site-a.com/v1/authenticate/login
  • api.site-a.com/v1/authenticate/change-password
  • api.site-a.com/v1/authenticate/create-profile
  • api.site-a.com/v1/track-user-action
  • ...

I need stats for each method because site-a is for us a gateway to several distinct service providers that must be monitored individually. I already tried to use the third party measures but they have filters on the host only and, you understand, it's not enough.

I can see every distinct calls in the user action pure path details pane but I don't know how to calculate statistics on them. Must I use the ADK and the custom events?

Thanks

Search the URL's of Third party API in the Web Request (User actions) , you can get in Purepath. Then right click on the URL in purepath create custom measure "WebRequest - URI" and add this measure in BT to track these 3rd party URLS. Hope it helps!!

Thanks

Soorya Mohan

Hi Soorya,

Third party calls from the browser do not create any Web Request or PurePath since they do not hit the monitored servers on the first party domain, but go to external domains not controlled by the first party.

Thanks,

dave

dave_mauney
Dynatrace Champion
Dynatrace Champion

Hi Cristian,

I would suggest that you open an enhancement request to get more fine grained filters (other than just host) on the third party calls. Currently, these measures are limited to host, resource type and resource state filtering.

Thanks,

dave

Hi Dave,

so you confirm that there is no way at the moment. I wasn't very lucky so far with the enhancement requests so I may try using the ADK and custom events

piyush_jain
Participant

Hi Dave-

We have similar situation where we include third component directly on the web page using CORS call. These components not only generate resource calls during page load but user can perform additional transactions which results in XHR calls. ex:- Chat component

We are using DT SaaS and My question is

1) How can we track these third party resource calls and XHR calls to track success/failure, volume, respone time. I see resource calls are tracked (everything together though) but not these kind of XHR calls.

2) How can we generate report and alerts on these third party resource and XHR calls.

Thanks,

Piyush