AppDynamics Knowledge Base

How do I set up SAP Hybris with AppDynamics to collect application data?

How do I set up SAP Hybris with AppDynamics to collect application data?

SAP Hybris with AppDynamics - Collect application data

Table of Contents

Sales and order volumes per currency

If the SAP Hybris installation uses the de.hybris.platform.commercefacades.order.CheckoutFacade, follow these instructions to track the details of orders placed in AppDynamics setup data collectors.

  1. Open the Data Collectors tab in the Configuration Instrumentation configuration page and add the following Method Invocation Data Collector:
    • Name: Placed Orders
    • Enable Data Collector for Transaction Snapshots
    • Enable Data Collector for Transaction Analytics
    • Class that implements an interface which equals de.hybris.platform.commercefacades.order.CheckoutFacade
    • Method Name placeOrder
    • Match Conditions: ReturnValue.getClass().getCanonicalName()
    • Contains OrderData
    • Data To Collect: TotalPrice: ReturnValue.getTotalPrice().getValue().longValue()
    • Currency: ReturnValue.getTotalPrice().getCurrencyIso()
    • UnitCount: ReturnValue.getTotalUnitCount().longValue()
    • Order ID: ReturnValue.getCode()
    • Payment Type: ReturnValue.getPaymentInfo().getCardType()
    • Site: ReturnValue.getSite()
    • User: ReturnValue.getUser().getName()
  2. You can use the same configuration to setup Information Points for the Revenue and Order Volume of each provided currency. Go to More Information Points and add the following for each currency provided:

    • Name Placed Orders (USD)
    • Agent Type: Java
    • Class that implements an interface which equals de.hybris.platform.commercefacades.order.CheckoutFacade
    • Method Name placeOrder
    • Match Conditions: ReturnValue.getClass().getCanonicalName()
    • Contains OrderData ReturnValue.getTotalPrice().getCurrencyIso() Equals USD
    • Custom Metrics: TotalPrice: ReturnValue.getTotalPrice().getValue().longValue()
    • UnitCount: ReturnValue.getTotalUnitCount().longValue()

  3. Repeat the information point configuration for every currency. The currency is given as ISO 4217 code, e.g. GBP, USD, EUR, CHF, JPY

User logins and registrations

To track registrations, open the Data Collectors tab in the Configuration and Instrumentation configuration page, and add the following Method Invocation Data Collector

  • Name: User Registrations
  • Enable Data Collector for Transaction Snapshots
  • Enable Data Collector for Transaction Analytics that implements an interface which equals de.hybris.platform.commerceservices.customer.CustomerAccountService.
  • Method Name register
  • Data To Collect:
  • Email: ParamIndex_0.getContactEmail()
  • CustomerID: ParamIndex_0.getCustomerID()

Use the same configuration to set up an information point for the number of registrations. Go to More Information Points and add the following:

  • Name User Registrations
  • Agent Type: Java
  • Class that implements an interface which equals de.hybris.platform.commerceservices.customer.CustomerAccountService
  • Method Name register

Cronjobs

To increase the insight into your CronJobs, open the Data Collectors tab in the Configuration Instrumentation configuration page and add the following Method Invocation Data Collector:

  • Name: Cronjobs
  • Enable Data Collector for Transaction Snapshots
  • Enable Data Collector for Transaction Analytics Class that extends a Super Class that equals de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
  • Method Name perform
  • Data To Collect:
  • Code: ParamIndex_0.getCode()
  • Email: ParamIndex_0.getEmailAddress()
  • LogText: ParamIndex_0.getLogText()
  • NodeID: ParamIndex_0.getNodeID()
  • Priority: ParamIndex_0.getPriority()
  • User: Paramindex_0.getSessionUser().getName()
  • Status: ReturnValue.getStatus().getCode()
  • Result: ReturnValue.getResult().getCode()
Labels (1)
Version history
Last update:
‎06-12-2017 11:11 AM
Updated by: